Routing with Web Forms - Could not load System.Web.Routing

Discussion in 'General troubleshooting' started by ncakmak, Dec 11, 2010.

  1. Hello,

    I am using:

    - ASP.NET 3.5 SP1 with Web Forms
    - Routing thru Global.asax (System.Web.Routing and RegisterRoutes)

    Everything is working fine in my local machine, but it gives the following error in my Winhost environment:

    Could not load file or assembly 'System.Web.Routing, Version=3.5.0.0, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.

    Do I need to put the dll file into my Bin folder in the Winhost environment?

    If not, is there anything special that needs to be added to the config file or that needs to be done in the IIS level?


    PS: I found the following links from the forum and implemented the things suggested in them:

    http://forum.Winhost.com/showthread.php?t=3860

    http://msdn.microsoft.com/en-us/library/cc668202(VS.90).aspx

    But I am still getting the above error.


    Thank you for your help!


    UPDATE:

    I just checked via my Control Panel that Application Pool Pipeline Mode is set to Integrated, so I believe "Classic Mode" is not the cause for the above error message.
     
    Last edited by a moderator: Oct 14, 2015
  2. Ray

    Ray

    Yes, make sure you upload the assembly/component/dll file in your applications Bin folder.
     
  3. That didn't work. System.Web.Routing.dll assembly is actually a part of .NET 3.5 SP1.

    Is it possible on your end to see if the dll exists on the server at C://Windows/assembly?

    I am out of solution, and any help would be greatly appreciated.

    Thank you.
     
  4. Ray,

    Instead of just copying and pasting it, I redeployed the application after putting the dll into the Bin directory.

    It is now working.

    Thanks for your help.
     
  5. Ray

    Ray

    It sounded like you just needed to recycle the application pool.
     

Share This Page