Bronco Solutions

Knowledge Management and Collaboration Platform
Welcome to Bronco Solutions Sign in | Join | Help
in Search

Andrew Renner

Debugging Community Server 2.0 with VS 2005 and Web Application Projects

  1. Download the source http://communityserver.com/files/40/releases/default.aspx
  2. Download the latest release of Web Application Projects http://msdn.microsoft.com/asp.net/reference/infrastructure/wap/default.aspx
  3. Download the VS 2005 Update to support Web Application Projects http://www.microsoft.com/downloads/details.aspx?FamilyId=8B05EE00-9554-4733-8725-3CA89DD9BFCA&displaylang=en
  4. Install the VS 2005 Update
  5. Install the Web Application Projects
  6. Load the solution <path>\CS_2.0.60217.2664_SDK\src\Community Server 20.sln
  7. Right click on the CommunityServerWeb20 project and click unload project
  8. Right click on the same project again and click Edit CommunityServerWeb20.csproj
  9. Change the following line from

    <ProjectType>Local</ProjectType>

    to

    <ProjectTypeGuids>{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>

    From: Scott Gu's site
    This instructs VS 2005 to treat this project not as a regular class library project, but rather as a VS 2005 Web Application Project (this will cause the web-items to by added to your new item dialog, support running the application using the built-in VS web-server or IIS, and enable auto-attaching to web-servers for debug scenarios among other things).

  10. Close the opened project file and click save
  11. Right click the same project again and click reload project
  12. Right click the same project again and click Properties
  13. You should now notice a WEB option on the left side
  14. Set the start page option to current page (this allows you to hit F5 on any page and it will start there)
  15. Set the servers options to Use IIS Web Server
  16. Set the starting URL to http://localhost/community or whatever your url maybe in IIS (you have to put the http:// in or it will fail)
  17. Leave the debuggers section unchanged (ASP.NET)
  18. Save changes (Almost Done)
  19. Right click the same project again and click Set as startup project
  20. Open the web.config file
    1. Change the compilation debug setting from false to true
      <compilation defaultLanguage="c#" debug="true" />
  21. Last Step: open IIS and go to your website/virtual directory
    1. Click the directory security tab
    2. Click the Edit button under Anonymous Access and Authentication Control
    3. Check the check box at the bottom for Integrated Windows Authentication

NOTE: Be sure that IIS is pointing to your source (SDK) web directory

NOTE 2: If you find debugging to be slow... change your compilation options and tell VS not to rebuild the entire solution every time.  This will significantly speed things up.  Just be sure to rebuild the projects that you change.

To do this:

  1. Right  Click on the solution
  2. Click Configuration Manager
  3. Choose debug as the Active Solution Configuration
  4. In the build column only leave the projects checked that you want to build everytime you hit F5
  5. Click Close

References:

http://webproject.scottgu.com/CSharp/Migration/Migration.aspx

http://communityserver.org/forums/thread/522403.aspx

http://developer.communityserver.org/default.aspx/CS.DebuggingInVS2005


Published Wednesday, April 05, 2006 1:16 PM by rennera

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

 

ghj1976 said:

Cool
April 14, 2006 7:47 AM
 

蝈蝈俊.net said:


由于 Community Server 2.0 的Web项目建立成了 Library 的项目.他的调试就是一个麻烦.
附加到进程的调试方式请看下面Blog,适用于 VS2003 和 VS2005:使用这个技术请参看下面Blog:...
April 20, 2006 3:59 AM
 

Russell said:

Thanks for the guide :)
April 21, 2006 10:54 PM
 

YK said:

Thanks for the guide. It helped a lot.

August 22, 2006 4:22 PM
 

Wallace said:

nice

April 18, 2007 11:17 PM
 

Netprawn said:

由于CommunityServer2.0的Web项目建立成了Library的项目.他的调试就是一个麻烦.

附加到进程的调试方式请看下面Blog,适用于VS2003和VS2005:使...

December 21, 2007 1:09 AM

Leave a Comment

(required) 
(optional)
(required) 
Submit