Pages

Friday, November 26, 2010

Issue with /Bin Dlls in IIS7

Problem:  I have created  one .NET 4.0 c# webApp using VS2010. The application  runs on  the internal VS web server for test but I face issues while trying to get WebApp running on IIS7.

I have 3 DLLs within my /Bin directory and I am not sure how to "register" them.



Error: Server Error in '/XXX' Application. Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information. 
Exception Details: System.NullReferenceException: Object reference not set to ab instance of an object.
Stack Trace: [NullReferenceException: Object reference not set to an instance of an object.]

Solution: Instead of that Build the project, and then Publish it to a directory somewhere and copy the contents of that publish folder. It sounds like you may have just copied the contents of the development project instead, rather than the build output. 

**** AS IS **** ; Please apply at your own risk.

No comments:

Post a Comment