Developer forum

Forum » Development » Could not load type 'Dynamicweb.Ecommerce.Feeds.FeedContextConfiguration' from assembly 'Dynamicweb.Ecommerce, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.

Could not load type 'Dynamicweb.Ecommerce.Feeds.FeedContextConfiguration' from assembly 'Dynamicweb.Ecommerce, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.

Marie Louise Veigert
Reply

Hi,

I have set up a blank new Dynamicweb 9.5.1. from the ZIP file from the doc site.

It works, but as soon as I build the project in Visual Studio with no edit to the projekt, I get this error:

Server Error in '/' Application.


Could not load type 'Dynamicweb.Ecommerce.Feeds.FeedContextConfiguration' from assembly 'Dynamicweb.Ecommerce, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.TypeLoadException: Could not load type 'Dynamicweb.Ecommerce.Feeds.FeedContextConfiguration' from assembly 'Dynamicweb.Ecommerce, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.

Source Error: 
 

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.


Stack Trace: 
 

[TypeLoadException: Could not load type 'Dynamicweb.Ecommerce.Feeds.FeedContextConfiguration' from assembly 'Dynamicweb.Ecommerce, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.]
   System.Signature.GetSignature(Void* pCorSig, Int32 cCorSig, RuntimeFieldHandleInternal fieldHandle, IRuntimeMethodInfo methodHandle, RuntimeType declaringType) +0
   System.Reflection.RuntimeMethodInfo.get_ReturnType() +61
   System.Web.Http.Controllers.ReflectedHttpActionDescriptor.GetReturnType(MethodInfo methodInfo) +24
   System.Web.Http.Controllers.ReflectedHttpActionDescriptor.InitializeProperties(MethodInfo methodInfo) +39
   System.Web.Http.Controllers.ReflectedHttpActionDescriptor..ctor(HttpControllerDescriptor controllerDescriptor, MethodInfo methodInfo) +46
   System.Web.Http.Controllers.ActionSelectorCacheItem..ctor(HttpControllerDescriptor controllerDescriptor) +267
   System.Web.Http.Controllers.ApiControllerActionSelector.GetInternalSelector(HttpControllerDescriptor controllerDescriptor) +58
   System.Web.Http.Controllers.ApiControllerActionSelector.GetActionMapping(HttpControllerDescriptor controllerDescriptor) +15
   System.Web.Http.Routing.AttributeRoutingMapper.AddRouteEntries(SubRouteCollection collector, HttpConfiguration configuration, IInlineConstraintResolver constraintResolver, IDirectRouteProvider directRouteProvider) +218
   System.Web.Http.Routing.<>c__DisplayClass4.<MapAttributeRoutes>b__1() +75
   System.Web.Http.Routing.RouteCollectionRoute.EnsureInitialized(Func`1 initializer) +66
   System.Web.Http.Routing.<>c__DisplayClass2.<MapAttributeRoutes>b__0(HttpConfiguration config) +125
   Dynamicweb.AspNet.Notifications.FirstRequestInitialization.InitializeMvc() +11
   Dynamicweb.AspNet.Notifications.FirstRequestInitialization.Initialize() +176
   Dynamicweb.Extensibility.Notifications.NotificationManager.Notify(String notification, NotificationArgs eventArgs) +866
   Dynamicweb.Frontend.GlobalAsaxHandler.Application_Start(Object sender, EventArgs e) +186

[HttpException (0x80004005): Could not load type 'Dynamicweb.Ecommerce.Feeds.FeedContextConfiguration' from assembly 'Dynamicweb.Ecommerce, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.]
   System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app) +520
   System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +176
   System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +165
   System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +267
   System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +341

[HttpException (0x80004005): Could not load type 'Dynamicweb.Ecommerce.Feeds.FeedContextConfiguration' from assembly 'Dynamicweb.Ecommerce, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.]
   System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +523
   System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +107
   System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +688

 

Anyone else who get this error? And know how to solve it?


Replies

 
Marie Louise Veigert
Reply

I have solved the problem :)

I just removed all dll's from the bin folder and replaced them from the ZIP folder.

Then I removed all the references in Visual Studio and only refereed 'Dynamicweb.dll'.
After a build it worked :)

 

You must be logged in to post in the forum