Last post Jan 19, 2014 09:23 PM by Angie xu - MSFT
Jan 14, 2014 07:21 AM|Vishnu.Y|LINK
I have an ASP.NET 4.0 Web Application hosted on a Windows Server 2003 machine with IIS v6. After hosting, when I browse the application its generating an error
"The given assembly name or codebase, 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Runtime.DurableInstancing\v4.0_188.8.131.52__31bf3856ad364e35\System.Runtime.DurableInstancing.dll', was invalid." I am using System.IO.Compression.FileSystem.dll
in the project which is actually coming with .NET 4.5 (will this cause such an issue?) and Telerik RadControls for ASP.NET AJAX. The application is developed using Visual Studio 2010 and is running fine locally as well as in the IIS-7 on my development machine
(Windows 7, .NET 4.5).
What can be the possible reason behind such an error and how can I fix this issue?
Jan 14, 2014 08:16 AM|PatriceSc|LINK
I believe you can't do so. Basically you are trying to use a 4.5 DLLs with only .NET Framework 4.0 installed. It may appear to work on your PC because you likely have 4.5 installed which is basically a replacement for 4.0 so actually you are using entirely
4.5 (which can't be installed on Windows Server 2003).
For now I don't see anything else than either using a 3rd party ZIP library that supports 4.0 or using another server host.
Jan 14, 2014 11:19 PM|Vishnu.Y|LINK
@PatriceSc, I have removed the .Net 4.5 DLL(System.IO.Compression.FileSystem) and related codes from my Web Application and hosted it again. But still I am getting the same error
and I have noticed that the error is related to some other DLL(System.Runtime.DurableInstancing.dll) which seems to be invalid. The given assembly name or codebase, 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Runtime.DurableInstancing\v4.0_184.108.40.206__31bf3856ad364e35\System.Runtime.DurableInstancing.dll',
Jan 15, 2014 12:27 AM|Ben_HFL|LINK
Are you using .net 4.5 or .net 4? If you use .net 4.5 on windows 2003, it wont work. You need to find the hosting provider that support
Jan 15, 2014 06:17 AM|Vishnu.Y|LINK
My Web Application targets .Net framework 4.0. I have used a .NET 4.5 DLL in this project but later I have removed it and still the issue persists.
Jan 15, 2014 06:20 AM|Vishnu.Y|LINK
I simply removed the following line from the web.config file and now everything works fine.
<identity impersonate="true" />
Still I didnt get what this particular setting has to do with System.Runtime.DurableInstancing.dll !
Jan 19, 2014 09:23 PM|Angie xu - MSFT|LINK
identity impersonate="true" />
To impersonate the Microsoft Internet Information Services (IIS) authenticating user on every request for every page in an ASP.NET application, we must include an
<identity> tag in the Web.config file of this application and set the impersonate attribute to
true. For example:
You can learn more about impersonation here:
How to implement impersonation in an ASP.NET application
Supported client operating systems:
Windows 8.1, Windows 8, Windows 7 SP1, Windows Vista SP2
Supported server operating systems:
Windows Server 2012 R2(64 bit), Windows Server 2012 (64-bit edition), Windows Server 2008 R2 SP1, Windows Server 2008 SP2.
So we can't install .NET framework 4.5 on Windows Server 2003.