« Previous Next »

Thread: IIS 7 and System.IO.FileNotFoundException: Could not load file or assembly Error

Last post 11-06-2009 10:05 AM by CloudIX. 5 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (6 items)

Sort Posts:

  • 11-05-2009, 9:52 AM

    • CloudIX
    • Not Ranked
    • Joined on 11-05-2009, 9:46 AM
    • Posts 4

    IIS 7 and System.IO.FileNotFoundException: Could not load file or assembly Error

     I have a web site that works perfectly in IIS 6. But when i try to run the exact same code on IIS 7 i get the error "System.IO.FileNotFoundException: Could not load file or assembly". This is a clean install of 2008 server. I copy the deployed code from the IIS 7 server to another IIS 6 server and all is good, so i dont think the problem is related to code, but more a configuration issue. Can anyone help on this?

  • 11-05-2009, 10:33 AM In reply to

    Re: IIS 7 and System.IO.FileNotFoundException: Could not load file or assembly Error

    Silly question maybe, but did you check the list of breaking changes in IIS 7 for ASP.NET?

    Jeff

    Look for Wrox's new book Professional IIS 7 in your local bookstore, or order now at Amazon.com
  • 11-05-2009, 10:36 AM In reply to

    • CloudIX
    • Not Ranked
    • Joined on 11-05-2009, 9:46 AM
    • Posts 4

    Re: IIS 7 and System.IO.FileNotFoundException: Could not load file or assembly Error

     No i have not. Where is this list at? I seen a link in the iis 6 forum, but the site was not working. Do you have a good link?

  • 11-05-2009, 11:26 AM In reply to

    • anilr
    • Top 10 Contributor
    • Joined on 05-23-2006, 6:13 PM
    • Redmond, WA
    • Posts 2,343

    Re: IIS 7 and System.IO.FileNotFoundException: Could not load file or assembly Error

    What is the full name of the file or assembly that it is complaining about?  Using process monitor may help.

    Anil Ruia
    Senior Software Design Engineer
    IIS Core Server
  • 11-05-2009, 11:57 AM In reply to

    • CloudIX
    • Not Ranked
    • Joined on 11-05-2009, 9:46 AM
    • Posts 4

    Re: IIS 7 and System.IO.FileNotFoundException: Could not load file or assembly Error

     It's a class file thats in my App_Code folder it's looking for (YAF.Classes.Base). But that is compled to a DLL and put in my bin folder, so it should be able to find it. IIS 6 locates it, not sure why IIS 7 wont.

  • 11-06-2009, 10:05 AM In reply to

    • CloudIX
    • Not Ranked
    • Joined on 11-05-2009, 9:46 AM
    • Posts 4

    Re: IIS 7 and System.IO.FileNotFoundException: Could not load file or assembly Error

     Ok i fixed this problem by putting the apppool in classic pipeline mode.

Page 1 of 1 (6 items)
Microsoft Communities