locked
Error hosting ASP.NET Web application on IIS 6 RRS feed

  • Question

  • User-1497865751 posted

    Hi


    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_4.0.0.0__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?

    Thanks
    Vishnu.Y

    Tuesday, January 14, 2014 7:21 AM

Answers

  • User-166373564 posted

    HI Vishnu.Y

    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:

    <identity impersonate="true" />
    

    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.

    Best regards

    Angie

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Sunday, January 19, 2014 9:23 PM

All replies

  • User753101303 posted

    Hi,

    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.

    Tuesday, January 14, 2014 8:16 AM
  • User-1497865751 posted

    @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_4.0.0.0__31bf3856ad364e35\System.Runtime.DurableInstancing.dll', was invalid.

    Tuesday, January 14, 2014 11:19 PM
  • User-1378019758 posted

    Hi Vishnu,

    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 asp.net 4.5

    Wednesday, January 15, 2014 12:27 AM
  • User-1497865751 posted

    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.

    Wednesday, January 15, 2014 6:17 AM
  • User-1497865751 posted

    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 !

    Wednesday, January 15, 2014 6:20 AM
  • User-166373564 posted

    HI Vishnu.Y

    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:

    <identity impersonate="true" />
    

    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.

    Best regards

    Angie

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Sunday, January 19, 2014 9:23 PM