Can't get PTWeb running-Webconfig file error on authentication line

Can't get PTWeb running-Webconfig file error on authentication line

Old forum URL: forums.lhotka.net/forums/t/284.aspx


Cider posted on Tuesday, June 06, 2006

I have followed the directions for starting the PTracker application and got PTWin working fine.  I installed IIS on my computer created a virtual directory for PTWeb, created an application name of PTWeb and set it to VB.NET version 2.0.  I also ran regsvcs for the enterprisehostvb.dll as instructed.  I am allowing anonomous users.  I changed the startup to use a custom server and set it to point to http://localhost/PTWeb.  If I try to debug the program I get the error:Error 1 It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level.  This error can be caused by a virtual directory not being configured as an application in IIS. C:\inetpub\wwwroot\ProjectTracker20vb\www\PTWeb\web.config 77.

Can I even debug because I not using ASP.NET Development Server?

When I select view in browser I get a message saying I am not authorized to use this page.  I am sure it is something simple that I am not using.  I usually struggle getting my web apps up and going anyway.  I appreciate any ideas to fix this problem.  Thanks. 

 

 

C

RockfordLhotka replied on Tuesday, June 06, 2006

It sounds like you need to make your new virtual directory an "application". You do this in the IIS console by bringing up the properties for the virtual root and clicking the button on the first page to create an "application" for the directory.

Cider replied on Tuesday, June 06, 2006

Thanks for your quick response.  I believe that it is set up as an application.  In IIS when I press properties under by virtual root PTWeb the form that pops up has a section called Application Settings.  It lists the Application Name as PTWeb.  Doesn't this mean that it is set up as an application?

I should also mention that I reinstalled IIS and that (along with adding file myinfo.dll to C:\windows\system32 and registering myinfo.dll and scrrun.dll) I no longer get the application error.  I only get the error that I am not authorized to use this page.

 

Copyright (c) Marimer LLC