Problem with Web Application Project...

Last post 10-26-2008 9:42 PM by Thomas Sun – MSFT. 4 replies.

Sort Posts:

  • Problem with Web Application Project...

    10-21-2008, 10:44 AM
    • Member
      9 point Member
    • vikaskolluri
    • Member since 05-06-2008, 11:15 AM
    • Hyderabad
    • Posts 66

    Hi Everyone,

    I have been given a Web Application Project (to work on) which has a Class Library project in it. It also has a BACKUP folder. So, I assume that its being converted into a Web application project. I had to do some modifications to the existing application. So, I commented some of the code and tried to run the project and to my surprise the debuger doesnt see the comments that I have mentioned for the code and instead runs the commented code too! I have seen in my Solution Explorer, and in my BIN folder, I have a DLL file for Class Library Project, one more dll file for the Web app. I have checked the time when it was modified and it shows the previous date when it was compiled. I need some help on this. What ever the changes I need to make to the existing web pages, do I need to recompile them all using a separate command... Any help is appreciated.

    Thanks,

    VK

    DotNetPrince
  • Re: Problem with Web Application Project...

    10-23-2008, 11:42 PM

    Hi,

    From your description, I understand that you have two projects: Web Application project and Class Library project, in the solution, and Web Application references to this Class Library.

    Firstly, please try to rebuild your solution.

    If we modify the code in the Class Library, we can remove reference of this dll and then re-add it in the Web Application.

    We also can try to check Require source files to exactly match the original version (Tools -> Options -> Debugging ), which tells the debugger to verify that a source file matches the version of the source code used to build the executable you are debugging, while debugging session.

    We also can try to create new project and then copy the source files such as .aspx page and .aspx.cs (.vb) from that project to this new one, and then rebuild this new one. 

     

    I look forward to hearing from you.  

     

     

    Thomas Sun
    Microsoft Online Community Support

    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question.
  • Re: Problem with Web Application Project...

    10-24-2008, 2:35 PM
    Answer
    • Member
      9 point Member
    • vikaskolluri
    • Member since 05-06-2008, 11:15 AM
    • Hyderabad
    • Posts 66

    Hi Thomas,

    Thanks a lot for your reply. While working on this, I figured out that CodeBhind is no longer supported in WAP. I changed the CodeBehind to CodeFile and now, the compiler picks code from the .aspx.cs file. Actually, this project is converted from VS2003 to VS2005 Web Application Project. Making the change I mentioned above solved my problem. Thanks again for your reply.

    VK

    DotNetPrince
  • Re: Problem with Web Application Project...

    10-25-2008, 2:32 PM
    • Member
      9 point Member
    • vikaskolluri
    • Member since 05-06-2008, 11:15 AM
    • Hyderabad
    • Posts 66

    But one question remains, how do I compile the WAP into a single DLL...? can you pls point me to a link which clearly explains me the comilation of WAP..

    DotNetPrince
  • Re: Problem with Web Application Project...

    10-26-2008, 9:42 PM
    Answer

    Hi,

    I am glad to see that you have resolve that issue.

    vikaskolluri:

    But one question remains, how do I compile the WAP into a single DLL...? can you pls point me to a link which clearly explains me the comilation of WAP..

    With Web Deployment project (http://msdn.microsoft.com/en-us/library/aa479568.aspx), we can select "Merge all outputs to a single assembly" from "Output Assemblies" of WDP's properties page.

     

    I look forward to hearing from you.  

     

    Thomas Sun
    Microsoft Online Community Support

    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question.
Page 1 of 1 (5 items)