none
Published Web Project cannot find .dll in the bin folder RRS feed

  • Question

  • I have published a web app to the production server.  there is an assembly, telerik.web.ui, in the bin folder.  In the Web Config there is a reference  to this assembly under <httpModules>.   I have tried everything.  The only thing that works is if I copy the assembly to the GAC and restart IIS, then it works.  Why can't the application find the assembly in the Bin folder?  The original reference was to a folder that does not exist on the production machine.  I fear that the Application takes a quick look there then goes straight for the GAC.  Why won't/can't it look in the bin folder.  Believe me, it is in the bin folder.

    • Edited by Mattaniah Friday, January 9, 2009 9:00 AM Correct Error
    Thursday, January 8, 2009 12:03 PM

Answers

  • Hi!

    This is not a .NET Frmeaork Setup issue. Ask you question in the appropriate asp.net forum: http://forums.asp.net/

    Regards,
    Lucian Baciu, http://studentclub.ro/lucians_weblog
    • Marked as answer by YiChun Chen Friday, January 9, 2009 2:05 AM
    Thursday, January 8, 2009 12:17 PM
  • This is because GAC always wins! If you do not want to load the assembly from GAC, then remove it from GAC. In addition, if you want to load assembly from some specifc folder, you can add an app config file that sits next to your exe. In the app config file you can specify the probing path. Probing path is the list of folders where the runtime searches for the assemblies. You may find this useful :

    http://msdn.microsoft.com/en-us/library/yx7xezcf.aspx

    • Marked as answer by YiChun Chen Friday, January 9, 2009 2:05 AM
    Thursday, January 8, 2009 11:30 PM

All replies

  • Hi!

    This is not a .NET Frmeaork Setup issue. Ask you question in the appropriate asp.net forum: http://forums.asp.net/

    Regards,
    Lucian Baciu, http://studentclub.ro/lucians_weblog
    • Marked as answer by YiChun Chen Friday, January 9, 2009 2:05 AM
    Thursday, January 8, 2009 12:17 PM
  • This is because GAC always wins! If you do not want to load the assembly from GAC, then remove it from GAC. In addition, if you want to load assembly from some specifc folder, you can add an app config file that sits next to your exe. In the app config file you can specify the probing path. Probing path is the list of folders where the runtime searches for the assemblies. You may find this useful :

    http://msdn.microsoft.com/en-us/library/yx7xezcf.aspx

    • Marked as answer by YiChun Chen Friday, January 9, 2009 2:05 AM
    Thursday, January 8, 2009 11:30 PM