Publishing ASP.NET 1.1 App to Windows Sharepoint Services Web Site

Yesterday I built a small web site and I tried to publish it to my usual web site  This site has been entirely running Windows Sharepoint Services until now.  I used Sharepoint Central Administration to exclude my virtual directory from WSS and I ran my MSI installer on the machine.  The WSS web site is the default and my MSI which was created with Visual Studio .NET 2003 only installs to the default web site.  My server is running Windows Server 2003 and is also a domain controller.

Well it all turned to custard and I had to create a new web site on the machine, differentialted by a new host header.  So now to isntall updates I have to run the MSI and then manually copy the files from the default web site to the alternate.  Also, I can't use the dotnetlounge URL.

How can you install an ASP.NET application to a virtual directory that's under a Windows Sharepoint Services web site?

Here's the error that I got.  Clearly my web site can't get System.Web.AspNetHostingPermission.  I played around with the settings for a while and did a few google searches but no result so far.   I believe it's something to do with the custom security settings created by Windows Sharepoint Services, the web site isn't on a network share.

I'll keep researching...

Server Error in '/NZSurvey' Application.

Security Exception

Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file.

Exception Details: System.Security.SecurityException: Request for the permission of type System.Web.AspNetHostingPermission, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 failed.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

 [SecurityException: Request for the permission of type System.Web.AspNetHostingPermission, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 failed.]   System.Security.CodeAccessSecurityEngine.CheckHelper(PermissionSet grantedSet, PermissionSet deniedSet, CodeAccessPermission demand, PermissionToken permToken) +666   System.Security.CodeAccessSecurityEngine.Check(PermissionToken permToken, CodeAccessPermission demand, StackCrawlMark& stackMark, Int32 checkFrames, Int32 unrestrictedOverride) +0   System.Security.CodeAccessSecurityEngine.Check(CodeAccessPermission cap, StackCrawlMark& stackMark) +88   System.Security.CodeAccessPermission.Demand() +62   System.Web.HttpRequest.get_Params() +91   ASPNetPortal.WebForm1.OnInit(EventArgs e)   System.Web.UI.Control.InitRecursive(Control namingContainer) +241   System.Web.UI.Page.ProcessRequestMain() +2106   System.Web.UI.Page.ProcessRequest() +218   System.Web.UI.Page.ProcessRequest(HttpContext context) +18   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication+IExecutionStep.Execute() +179   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +87

Version Information:  Microsoft .NET Framework Version:1.1.4322.573; ASP.NET Version:1.1.4322.573