Developer forum

Forum » Development » 359 / App 19.1.0.0.

359 / App 19.1.0.0.


Reply
Get te following error after deploaying the newest dw solution to our server:

[BadImageFormatException: Could not load file or assembly 'microsoft.crm.sdk' or one of its dependencies. An attempt was made to load a program with an incorrect format.]
   System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) +0
   System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +416
   System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +166
   System.Reflection.Assembly.Load(String assemblyString) +35
   System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +190


Have:

microsoft.crm.sdk.dll
microsoft.crm.sdktyupeproxy.dll
microsoft.crm.sdktypeproxy.xmlserliazer.dll

In both my admin and solution folder.  (i've coped all dlls from the admin bin folder over to the custom solution bin folder)

Replies

 
Nicolai Høeg Pedersen
Reply
.NET 3.5 app pool?
 
Reply
Almost forgot to enable 32 bit applications in the pool (running 64bit server setup) :)

However now i get a new error

Request is not available in this context
 
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.Web.HttpException: Request is not available in this context
 
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: 
 
 
[HttpException (0x80004005): Request is not available in this context]
   System.Web.HttpApplication.get_Request() +8808000
   Dynamicweb.Admin.Global.Application_AuthenticateRequest(Object sender, EventArgs e) +213
   CustomModules.Global.Application_AuthenticateRequest(Object sender, EventArgs e) in D:\Development\Dynamicweb\customSolutions\demo.dw.oroi.com\Global.asax.cs:39
   System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +68
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75
 
Version Information: Microsoft .NET Framework Version:2.0.50727.3603; ASP.NET Version:2.0.50727.4049
 
Reply
Backend works just frontend that dont wanna work now on normal pages atleast (the 404 page displays though)
 
Nicolai Høeg Pedersen
Reply
If you are running in integrated pipeline, it could be an outdated global.asax.cs - download a new custom project and have a look in that.

Otherwise try an classic pipeline.

 

You must be logged in to post in the forum