Hi,
I have a solution which consists of class library project and one web application. I created a dll from the class library project and add it as a reference to web application. I am really having difficulty in debugging. When i run default.aspx page it display error as "Value cannot be null.
Parameter name: format".
I am quite sure this error comes from DLL file. So could anyone help me to understand how to debug class libraries or DLL files together with web application side by side.
Javeed M ShaikhPosted Oct 24, 2011, 10:35 PM
try the following:
Open your dll class library project and web form application with Visual Studio. Set the breakpoint in your dll project. Run your web application in the web form IDE, which is used to run the WebDev.WebServer.EXE process. And close the .aspx (Stop debugging in the web form IDE). In the dll IDE, from the Debug menu, choose Attach to Process. In the Attach to Process dialog box, find WebDev.WebServer.EXE from the Available Processes list and Click the Attach button.Open a new IE and enter the URL (http://localhost:6028/MyWebapp/) in the address and then press Enter.The breakpoint inserted in the dll source code will be hit when the web application invokes the function which is defined in the dll project. And then you can debug the dll.
Please do not forget to mark "Accepted Answer".