Click here to Skip to main content
15,879,095 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
pl help me to resolve this error.
this error come after uploaded on server.
after adding ajax dll this error generates.

pl help

error URL :http://tacglobal.in/CRM/
error in details

<pre lang="HTML">
Could not load file or assembly 'App_Licenses' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.

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.BadImageFormatException: Could not load file or assembly 'App_Licenses' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.

Source Error:
C#
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.


Assembly Load Trace: The following information can be helpful to determine why the assembly 'App_Licenses' could not be loaded.


WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

Stack Trace:

CSS
[BadImageFormatException: Could not load file or assembly 'App_Licenses' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.]
   System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) +0
   System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) +43
   System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +127
   System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +142
   System.Reflection.Assembly.Load(String assemblyString) +28
   System.Web.Compilation.BuildManager.LoadLicensesAssemblyIfExists() +8933616
   System.Web.Compilation.BuildManager.Initialize() +492
   System.Web.Compilation.BuildManager.InitializeBuildManager() +267
   System.Web.HttpRuntime.HostingInit(HostingEnvironmentFlags hostingFlags) +224

[HttpException (0x80004005): Could not load file or assembly 'App_Licenses' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.]
   System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +8921835
   System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +85
   System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +333
Posted
Comments
Nandakishore G N 11-Jun-14 8:40am    
Did you check this link ?
http://stackoverflow.com/questions/5229310/system-badimageformatexception-could-not-load-file-or-assembly
SRS(The Coder) 11-Jun-14 9:34am    
Please check if you are having any App_Licenses.dll file in your Bin folder then just delete it.
Now rebuild the web site and deploy it to the server.

Hope this will work for you.
Member 8825505 13-Jun-14 0:32am    
thank you Smruti(The Coder) this soln work for me...
Member 10854765 11-Jun-14 10:52am    
Check Nandakishore's link as well, but it could be as simple as changing IIS to use .NET 4. The webserver is currently using Microsoft .NET Framework Version:2.0.50727.5466; ASP.NET Version:2.0.50727.5456 .
Kyle Moyer 11-Jun-14 13:47pm    
You are correct 'Member 10854765', you should post that as an answer.

Please check if you are having any 'App_Licenses.dll' file in your Bin folder then just delete it.
Now rebuild the web site and deploy it to the server.

Hope this will work for you.

Please mark as answer if it works for you. :)
 
Share this answer
 
Check Nandakishore's link in the comments as well, but it could be as simple as changing IIS to use .NET 4. The webserver is currently using Microsoft .NET Framework Version:2.0.50727.5466; ASP.NET Version:2.0.50727.5456 .
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900