2013年10月18日星期五

C# Debug an ASP Project with Visual Studio 2003

When I try to debug the project, it always say "Unable to find project on the web server. Unable to set server into correct debugging state.".

In order to debug the ASP project, I have to change the following setting:
  • In VS 2003:
    
    -------------
       Project - properties
          Configuration Properties
             Debugging
                - Enable ASP Debugging
                - Enable ASP.NET Debugging
    
  • In the IIS:
    
    ----------------------
       Default Website - Properties
          Home Directory Tab
             Application Settings - Configuration Button
                Debugging Tab
                   - Enable ASP server-side script debugging
    
       Website (the project you want to debug) - Properties
          Directory tab
             Application Settings - Create Button
    
    This sets an application name for the Website and changes the icon from a default folder icon to a Website icon.
  • Add IIS process account to Debugger Users group:
    
    ---------------------------------------------------
       In Computer Management:
          System Tools
             Local Users and Groups
                Groups
                   Debugger Users - properties
                      Add user IWAM_machine-name (the "Launch IIS process account")
    
  • Now, to debug in VS 2003:
    
    ------------------------
       right-click the .asp page that the application should start from
          select "Set as Start Page"

沒有留言:

發佈留言