Welcome to AddressOf.com Sign in | Join | Help

Community Server - Running *another* application in the CS folder

After browsing (over and over again) through the CS forums and guessing as to what the meaning of the various answer were, I think I've found the *actual* answer to running another ASP.NET 2.0 application within an existing CS application folder.

  • Copy the CommunityServer.ASPNet20MemberRole.dll and CommunityServer.Components.dll to the "new" applications bin folder.  These files need to be copied since ASP.NET 2.0 apparently will load existing HttpModules and HttpHandlers prior to allowing you to remove them.  Umm... I'm really feeling the ASP.NET love right now...
  • Modify the Web.config file under the <system.web> section:
    • Add (or modify accordingly) the following:

             <httpModules>
                <remove name="CommunityServer" />
             </
      httpModules>

             <
      httpHandlers>
             </
      httpHandlers>

    • Modify the pages section to "reset" the pageBaseType to "System.Web.UI.Page".  Community Server uses a custom base page type, so you need to reset it back to the default (assuming this is what you want to accomplish).
  • In the SiteUrls.config file, add a new location section to the <locations>.

       <location name="someApplicationName" path="/theappvirtualfolder/" exclude = "true" />

    This will tell Community Server to not try to do any url rewriting for the folder you specified.

After doing these steps (which I couldn't seem to find completely outlined anywhere... everyone seemed to have answer like "you'll need to copy some files to the bin folder" and "read this document on xml where it tells you how to modify the web.config" (where the pointed document never even mentions web.config).  Extremely frustrating... but at least hopefully this will serve to help others in the same situation. 

At the end of the day, this post is more so a reminder to me so I don't have to go through the torture of trial and error to do this again. ;-)

Published Friday, November 3, 2006 8:28 PM by CorySmith

Comments

# Community Server - Running *another* application in the CS folder

Saturday, November 4, 2006 3:04 PM by It's Way Too Early For This

# Community Server 2.1 SP1 Available

Saturday, November 4, 2006 5:45 PM by It's Way Too Early For This

Because I run CS2.1, I try to keep up on its development as much as possible. I just saw recently that

# Community Server Daily News for Monday, November 6, 2006

Monday, November 6, 2006 2:00 PM by Community Server Daily News

news of the day a grab bag for what's happening in Community Server Steve Kaschimer describes a very

# The configuration instructions on Running Another Application in Community Server

Wednesday, November 22, 2006 7:59 AM by Daily News Faq List

Cory Smith with the configuration instructions on "Running Another Application in Community Server."

# re: Community Server - Running *another* application in the CS folder

Sunday, December 10, 2006 12:07 PM by Ian Nelson

Thanks Cory, you just saved me many hours and much hair-pulling!

# The configuration instructions on Running Another Application in Community Server

Monday, March 12, 2007 5:20 AM by Community Server Bits

Cory Smith with the configuration instructions on "Running Another Application in Community Server."

Anonymous comments are disabled