![]() |
|
|
|||||||
![]() |
ASP Net - RE: Strange problem running app remotely |
|
|
Thread Tools | Search this Thread |
|
|
#1 |
|
John,
Did you make the indicated changes to the web.config file? Jim Cheshire [MSFT] MCP+I, MCSE, MCSD, MCDBA Microsoft Developer Support This post is provided "AS-IS" with no warranties and confers no rights. -------------------- >From: "John" <> >Subject: Strange problem running app remotely >Date: Wed, 21 Jul 2004 14:28:34 +0100 >Lines: 346 >X-Priority: 3 >X-MSMail-Priority: Normal >X-Newsreader: Microsoft Outlook Express 6.00.2800.1437 >X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 >Message-ID: <#> >Newsgroups: microsoft.public.dotnet.framework.aspnet >NNTP-Posting-Host: 81-86-132-31.dsl.pipex.com 81.86.132.31 >Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP12.phx.gbl >Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework.aspnet:248782 >X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet > >Hi > >I have a very simply app (attached) which works fine on my local win2k >server but when I upload to a remote server I get the error given at the >end. As I can see no specific error message, I have no idea what the problem >is. How can I proceed form here to solve this problem? > >Thanks > >Regards > > >Server Error in '/' Application. > >Runtime Error >Description: An application error occurred on the server. The current custom >error settings for this application prevent the details of the application >error from being viewed remotely (for security reasons). It could, however, >be viewed by browsers running on the local server machine. > >Details: To enable the details of this specific error message to be viewable >on remote machines, please create a <customErrors> tag within a "web.config" >configuration file located in the root directory of the current web >application. This <customErrors> tag should then have its "mode" attribute >set to "Off". > > > > Jim Cheshire [MSFT] |
|
|
|
|
#2 |
|
Posts: n/a
|
I think I have done it correctly. Here is the web.config. file I am using. <?xml version="1.0" encoding="utf-8" ?> <configuration> <system.web> <compilation defaultLanguage="vb" debug="true" /> <customErrors mode="Off" /> <authentication mode="None" /> <authorization> <allow users="*" /> <!-- Allow all users --> </authorization> <trace enabled="true" requestLimit="10" pageOutput="true" traceMode="SortByTime" localOnly="true" /> <sessionState mode="InProc" stateConnectionString="tcpip=127.0.0.1:42424" sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes" cookieless="false" timeout="20" /> <globalization requestEncoding="utf-8" responseEncoding="utf-8" /> </system.web> </configuration> "Jim Cheshire [MSFT]" <> wrote in message news:... > John, > > Did you make the indicated changes to the web.config file? > > Jim Cheshire [MSFT] > MCP+I, MCSE, MCSD, MCDBA > Microsoft Developer Support > > > This post is provided "AS-IS" with no warranties and confers no rights. > > > -------------------- > >From: "John" <> > >Subject: Strange problem running app remotely > >Date: Wed, 21 Jul 2004 14:28:34 +0100 > >Lines: 346 > >X-Priority: 3 > >X-MSMail-Priority: Normal > >X-Newsreader: Microsoft Outlook Express 6.00.2800.1437 > >X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 > >Message-ID: <#> > >Newsgroups: microsoft.public.dotnet.framework.aspnet > >NNTP-Posting-Host: 81-86-132-31.dsl.pipex.com 81.86.132.31 > >Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP12.phx.gbl > >Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework.aspnet:248782 > >X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet > > > >Hi > > > >I have a very simply app (attached) which works fine on my local win2k > >server but when I upload to a remote server I get the error given at the > >end. As I can see no specific error message, I have no idea what the > problem > >is. How can I proceed form here to solve this problem? > > > >Thanks > > > >Regards > > > > > >Server Error in '/' Application. > > > >Runtime Error > >Description: An application error occurred on the server. The current > custom > >error settings for this application prevent the details of the application > >error from being viewed remotely (for security reasons). It could, however, > >be viewed by browsers running on the local server machine. > > > >Details: To enable the details of this specific error message to be > viewable > >on remote machines, please create a <customErrors> tag within a > "web.config" > >configuration file located in the root directory of the current web > >application. This <customErrors> tag should then have its "mode" attribute > >set to "Off". > > > > > > > > > John |
|
|
|
#3 |
|
Posts: n/a
|
John,
If you made that change and this is still happening, it indicates an error occurring before the processing of the web.config file. Can you browse the server from the console? If not, can you try an ASPX page in a different site on the same box? Jim Cheshire [MSFT] MCP+I, MCSE, MCSD, MCDBA Microsoft Developer Support This post is provided "AS-IS" with no warranties and confers no rights. -------------------- >From: "John" <> >References: <#> <> >Subject: Re: Strange problem running app remotely >Date: Wed, 21 Jul 2004 19:26:30 +0100 >Lines: 95 >X-Priority: 3 >X-MSMail-Priority: Normal >X-Newsreader: Microsoft Outlook Express 6.00.2800.1437 >X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 >Message-ID: <> >Newsgroups: microsoft.public.dotnet.framework.aspnet >NNTP-Posting-Host: 81-86-132-31.dsl.pipex.com 81.86.132.31 >Path: cpmsftngxa06.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFT NGP08.phx.gbl!TK2MSFTNGP10 .phx.gbl >Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework.aspnet:248917 >X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet > > >I think I have done it correctly. Here is the web.config. file I am using. > ><?xml version="1.0" encoding="utf-8" ?> ><configuration> > <system.web> > <compilation defaultLanguage="vb" debug="true" /> > <customErrors mode="Off" /> > <authentication mode="None" /> > <authorization> > <allow users="*" /> <!-- Allow all users --> > </authorization> > <trace enabled="true" requestLimit="10" pageOutput="true" >traceMode="SortByTime" localOnly="true" /> > <sessionState > mode="InProc" > stateConnectionString="tcpip=127.0.0.1:42424" > sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes" > cookieless="false" > timeout="20" > /> > <globalization requestEncoding="utf-8" responseEncoding="utf-8" /> > </system.web> ></configuration> > >"Jim Cheshire [MSFT]" <> wrote in message >news:... >> John, >> >> Did you make the indicated changes to the web.config file? >> >> Jim Cheshire [MSFT] >> MCP+I, MCSE, MCSD, MCDBA >> Microsoft Developer Support >> >> >> This post is provided "AS-IS" with no warranties and confers no rights. >> >> >> -------------------- >> >From: "John" <> >> >Subject: Strange problem running app remotely >> >Date: Wed, 21 Jul 2004 14:28:34 +0100 >> >Lines: 346 >> >X-Priority: 3 >> >X-MSMail-Priority: Normal >> >X-Newsreader: Microsoft Outlook Express 6.00.2800.1437 >> >X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 >> >Message-ID: <#> >> >Newsgroups: microsoft.public.dotnet.framework.aspnet >> >NNTP-Posting-Host: 81-86-132-31.dsl.pipex.com 81.86.132.31 >> >Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP12.phx.gbl >> >Xref: cpmsftngxa06.phx.gbl >microsoft.public.dotnet.framework.aspnet:248782 >> >X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet >> > >> >Hi >> > >> >I have a very simply app (attached) which works fine on my local win2k >> >server but when I upload to a remote server I get the error given at the >> >end. As I can see no specific error message, I have no idea what the >> problem >> >is. How can I proceed form here to solve this problem? >> > >> >Thanks >> > >> >Regards >> > >> > >> >Server Error in '/' Application. >> > >> >Runtime Error >> >Description: An application error occurred on the server. The current >> custom >> >error settings for this application prevent the details of the >application >> >error from being viewed remotely (for security reasons). It could, >however, >> >be viewed by browsers running on the local server machine. >> > >> >Details: To enable the details of this specific error message to be >> viewable >> >on remote machines, please create a <customErrors> tag within a >> "web.config" >> >configuration file located in the root directory of the current web >> >application. This <customErrors> tag should then have its "mode" >attribute >> >set to "Off". >> > >> > >> > >> > >> > > > Jim Cheshire [MSFT] |
|
|
|
#4 |
|
Posts: n/a
|
The app doesn't run from the site root folder as well. Any ideas?
Thanks Regards "Jim Cheshire [MSFT]" <> wrote in message news:... > John, > > If you made that change and this is still happening, it indicates an error > occurring before the processing of the web.config file. Can you browse the > server from the console? If not, can you try an ASPX page in a different > site on the same box? > > Jim Cheshire [MSFT] > MCP+I, MCSE, MCSD, MCDBA > Microsoft Developer Support > > > This post is provided "AS-IS" with no warranties and confers no rights. > > > -------------------- > >From: "John" <> > >References: <#> > <> > >Subject: Re: Strange problem running app remotely > >Date: Wed, 21 Jul 2004 19:26:30 +0100 > >Lines: 95 > >X-Priority: 3 > >X-MSMail-Priority: Normal > >X-Newsreader: Microsoft Outlook Express 6.00.2800.1437 > >X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 > >Message-ID: <> > >Newsgroups: microsoft.public.dotnet.framework.aspnet > >NNTP-Posting-Host: 81-86-132-31.dsl.pipex.com 81.86.132.31 > >Path: > cpmsftngxa06.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFT NGP08.phx.gbl!TK2MSFTNGP10 > phx.gbl > >Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework.aspnet:248917 > >X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet > > > > > >I think I have done it correctly. Here is the web.config. file I am using. > > > ><?xml version="1.0" encoding="utf-8" ?> > ><configuration> > > <system.web> > > <compilation defaultLanguage="vb" debug="true" /> > > <customErrors mode="Off" /> > > <authentication mode="None" /> > > <authorization> > > <allow users="*" /> <!-- Allow all users --> > > </authorization> > > <trace enabled="true" requestLimit="10" pageOutput="true" > >traceMode="SortByTime" localOnly="true" /> > > <sessionState > > mode="InProc" > > stateConnectionString="tcpip=127.0.0.1:42424" > > sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes" > > cookieless="false" > > timeout="20" > > /> > > <globalization requestEncoding="utf-8" responseEncoding="utf-8" /> > > </system.web> > ></configuration> > > > >"Jim Cheshire [MSFT]" <> wrote in message > >news:... > >> John, > >> > >> Did you make the indicated changes to the web.config file? > >> > >> Jim Cheshire [MSFT] > >> MCP+I, MCSE, MCSD, MCDBA > >> Microsoft Developer Support > >> > >> > >> This post is provided "AS-IS" with no warranties and confers no rights. > >> > >> > >> -------------------- > >> >From: "John" <> > >> >Subject: Strange problem running app remotely > >> >Date: Wed, 21 Jul 2004 14:28:34 +0100 > >> >Lines: 346 > >> >X-Priority: 3 > >> >X-MSMail-Priority: Normal > >> >X-Newsreader: Microsoft Outlook Express 6.00.2800.1437 > >> >X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 > >> >Message-ID: <#> > >> >Newsgroups: microsoft.public.dotnet.framework.aspnet > >> >NNTP-Posting-Host: 81-86-132-31.dsl.pipex.com 81.86.132.31 > >> >Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP12.phx.gbl > >> >Xref: cpmsftngxa06.phx.gbl > >microsoft.public.dotnet.framework.aspnet:248782 > >> >X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet > >> > > >> >Hi > >> > > >> >I have a very simply app (attached) which works fine on my local win2k > >> >server but when I upload to a remote server I get the error given at the > >> >end. As I can see no specific error message, I have no idea what the > >> problem > >> >is. How can I proceed form here to solve this problem? > >> > > >> >Thanks > >> > > >> >Regards > >> > > >> > > >> >Server Error in '/' Application. > >> > > >> >Runtime Error > >> >Description: An application error occurred on the server. The current > >> custom > >> >error settings for this application prevent the details of the > >application > >> >error from being viewed remotely (for security reasons). It could, > >however, > >> >be viewed by browsers running on the local server machine. > >> > > >> >Details: To enable the details of this specific error message to be > >> viewable > >> >on remote machines, please create a <customErrors> tag within a > >> "web.config" > >> >configuration file located in the root directory of the current web > >> >application. This <customErrors> tag should then have its "mode" > >attribute > >> >set to "Off". > >> > > >> > > >> > > >> > > >> > > > > > > > John |
|
|
|
#5 |
|
Posts: n/a
|
OK. I am using a second remote server and am getting the below message. Any
ideas? Thanks Parser Error Message: 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. Source Error: Line 4: <compilation defaultLanguage="vb" debug="true" /> Line 5: <customErrors mode="Off" /> Line 6: <authentication mode="None" /> Line 7: <authorization> Line 8: <allow users="*" /> <!-- Allow all users --> "Jim Cheshire [MSFT]" <> wrote in message news:... > John, > > If you made that change and this is still happening, it indicates an error > occurring before the processing of the web.config file. Can you browse the > server from the console? If not, can you try an ASPX page in a different > site on the same box? > > Jim Cheshire [MSFT] > MCP+I, MCSE, MCSD, MCDBA > Microsoft Developer Support > > > This post is provided "AS-IS" with no warranties and confers no rights. > > > -------------------- > >From: "John" <> > >References: <#> > <> > >Subject: Re: Strange problem running app remotely > >Date: Wed, 21 Jul 2004 19:26:30 +0100 > >Lines: 95 > >X-Priority: 3 > >X-MSMail-Priority: Normal > >X-Newsreader: Microsoft Outlook Express 6.00.2800.1437 > >X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 > >Message-ID: <> > >Newsgroups: microsoft.public.dotnet.framework.aspnet > >NNTP-Posting-Host: 81-86-132-31.dsl.pipex.com 81.86.132.31 > >Path: > cpmsftngxa06.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFT NGP08.phx.gbl!TK2MSFTNGP10 > phx.gbl > >Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework.aspnet:248917 > >X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet > > > > > >I think I have done it correctly. Here is the web.config. file I am using. > > > ><?xml version="1.0" encoding="utf-8" ?> > ><configuration> > > <system.web> > > <compilation defaultLanguage="vb" debug="true" /> > > <customErrors mode="Off" /> > > <authentication mode="None" /> > > <authorization> > > <allow users="*" /> <!-- Allow all users --> > > </authorization> > > <trace enabled="true" requestLimit="10" pageOutput="true" > >traceMode="SortByTime" localOnly="true" /> > > <sessionState > > mode="InProc" > > stateConnectionString="tcpip=127.0.0.1:42424" > > sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes" > > cookieless="false" > > timeout="20" > > /> > > <globalization requestEncoding="utf-8" responseEncoding="utf-8" /> > > </system.web> > ></configuration> > > > >"Jim Cheshire [MSFT]" <> wrote in message > >news:... > >> John, > >> > >> Did you make the indicated changes to the web.config file? > >> > >> Jim Cheshire [MSFT] > >> MCP+I, MCSE, MCSD, MCDBA > >> Microsoft Developer Support > >> > >> > >> This post is provided "AS-IS" with no warranties and confers no rights. > >> > >> > >> -------------------- > >> >From: "John" <> > >> >Subject: Strange problem running app remotely > >> >Date: Wed, 21 Jul 2004 14:28:34 +0100 > >> >Lines: 346 > >> >X-Priority: 3 > >> >X-MSMail-Priority: Normal > >> >X-Newsreader: Microsoft Outlook Express 6.00.2800.1437 > >> >X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 > >> >Message-ID: <#> > >> >Newsgroups: microsoft.public.dotnet.framework.aspnet > >> >NNTP-Posting-Host: 81-86-132-31.dsl.pipex.com 81.86.132.31 > >> >Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP12.phx.gbl > >> >Xref: cpmsftngxa06.phx.gbl > >microsoft.public.dotnet.framework.aspnet:248782 > >> >X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet > >> > > >> >Hi > >> > > >> >I have a very simply app (attached) which works fine on my local win2k > >> >server but when I upload to a remote server I get the error given at the > >> >end. As I can see no specific error message, I have no idea what the > >> problem > >> >is. How can I proceed form here to solve this problem? > >> > > >> >Thanks > >> > > >> >Regards > >> > > >> > > >> >Server Error in '/' Application. > >> > > >> >Runtime Error > >> >Description: An application error occurred on the server. The current > >> custom > >> >error settings for this application prevent the details of the > >application > >> >error from being viewed remotely (for security reasons). It could, > >however, > >> >be viewed by browsers running on the local server machine. > >> > > >> >Details: To enable the details of this specific error message to be > >> viewable > >> >on remote machines, please create a <customErrors> tag within a > >> "web.config" > >> >configuration file located in the root directory of the current web > >> >application. This <customErrors> tag should then have its "mode" > >attribute > >> >set to "Off". > >> > > >> > > >> > > >> > > >> > > > > > > > John |
|
|
|
#6 |
|
Posts: n/a
|
PS: The error is on line 6. The site url is;
http://yahya01.europe.webmatrixhosti.../webform1.aspx "John" <> wrote in message news:O63U3$... > OK. I am using a second remote server and am getting the below message. Any > ideas? > > Thanks > > Parser Error Message: 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. > > Source Error: > > Line 4: <compilation defaultLanguage="vb" debug="true" /> > Line 5: <customErrors mode="Off" /> > Line 6: <authentication mode="None" /> > Line 7: <authorization> > Line 8: <allow users="*" /> <!-- Allow all users --> > > > "Jim Cheshire [MSFT]" <> wrote in message > news:... > > John, > > > > If you made that change and this is still happening, it indicates an error > > occurring before the processing of the web.config file. Can you browse > the > > server from the console? If not, can you try an ASPX page in a different > > site on the same box? > > > > Jim Cheshire [MSFT] > > MCP+I, MCSE, MCSD, MCDBA > > Microsoft Developer Support > > > > > > This post is provided "AS-IS" with no warranties and confers no rights. > > > > > > -------------------- > > >From: "John" <> > > >References: <#> > > <> > > >Subject: Re: Strange problem running app remotely > > >Date: Wed, 21 Jul 2004 19:26:30 +0100 > > >Lines: 95 > > >X-Priority: 3 > > >X-MSMail-Priority: Normal > > >X-Newsreader: Microsoft Outlook Express 6.00.2800.1437 > > >X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 > > >Message-ID: <> > > >Newsgroups: microsoft.public.dotnet.framework.aspnet > > >NNTP-Posting-Host: 81-86-132-31.dsl.pipex.com 81.86.132.31 > > >Path: > > > cpmsftngxa06.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFT NGP08.phx.gbl!TK2MSFTNGP10 > > phx.gbl > > >Xref: cpmsftngxa06.phx.gbl > microsoft.public.dotnet.framework.aspnet:248917 > > >X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet > > > > > > > > >I think I have done it correctly. Here is the web.config. file I am > using. > > > > > ><?xml version="1.0" encoding="utf-8" ?> > > ><configuration> > > > <system.web> > > > <compilation defaultLanguage="vb" debug="true" /> > > > <customErrors mode="Off" /> > > > <authentication mode="None" /> > > > <authorization> > > > <allow users="*" /> <!-- Allow all users --> > > > </authorization> > > > <trace enabled="true" requestLimit="10" pageOutput="true" > > >traceMode="SortByTime" localOnly="true" /> > > > <sessionState > > > mode="InProc" > > > stateConnectionString="tcpip=127.0.0.1:42424" > > > sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes" > > > cookieless="false" > > > timeout="20" > > > /> > > > <globalization requestEncoding="utf-8" responseEncoding="utf-8" /> > > > </system.web> > > ></configuration> > > > > > >"Jim Cheshire [MSFT]" <> wrote in message > > >news:... > > >> John, > > >> > > >> Did you make the indicated changes to the web.config file? > > >> > > >> Jim Cheshire [MSFT] > > >> MCP+I, MCSE, MCSD, MCDBA > > >> Microsoft Developer Support > > >> > > >> > > >> This post is provided "AS-IS" with no warranties and confers no rights. > > >> > > >> > > >> -------------------- > > >> >From: "John" <> > > >> >Subject: Strange problem running app remotely > > >> >Date: Wed, 21 Jul 2004 14:28:34 +0100 > > >> >Lines: 346 > > >> >X-Priority: 3 > > >> >X-MSMail-Priority: Normal > > >> >X-Newsreader: Microsoft Outlook Express 6.00.2800.1437 > > >> >X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 > > >> >Message-ID: <#> > > >> >Newsgroups: microsoft.public.dotnet.framework.aspnet > > >> >NNTP-Posting-Host: 81-86-132-31.dsl.pipex.com 81.86.132.31 > > >> >Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP12.phx.gbl > > >> >Xref: cpmsftngxa06.phx.gbl > > >microsoft.public.dotnet.framework.aspnet:248782 > > >> >X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet > > >> > > > >> >Hi > > >> > > > >> >I have a very simply app (attached) which works fine on my local win2k > > >> >server but when I upload to a remote server I get the error given at > the > > >> >end. As I can see no specific error message, I have no idea what the > > >> problem > > >> >is. How can I proceed form here to solve this problem? > > >> > > > >> >Thanks > > >> > > > >> >Regards > > >> > > > >> > > > >> >Server Error in '/' Application. > > >> > > > >> >Runtime Error > > >> >Description: An application error occurred on the server. The current > > >> custom > > >> >error settings for this application prevent the details of the > > >application > > >> >error from being viewed remotely (for security reasons). It could, > > >however, > > >> >be viewed by browsers running on the local server machine. > > >> > > > >> >Details: To enable the details of this specific error message to be > > >> viewable > > >> >on remote machines, please create a <customErrors> tag within a > > >> "web.config" > > >> >configuration file located in the root directory of the current web > > >> >application. This <customErrors> tag should then have its "mode" > > >attribute > > >> >set to "Off". > > >> > > > >> > > > >> > > > >> > > > >> > > > > > > > > > > > > > John |
|
|
|
#7 |
|
Posts: n/a
|
You can have have web.config in subdirectories of your Virtual Directory.
But those web.config can only be a subset of your main one at the top level. In other words, you cannot have most of that stuff in a sub web.config. Hope that was clear. Greg "John" <> wrote in message news:O63U3$... > OK. I am using a second remote server and am getting the below message. Any > ideas? > > Thanks > > Parser Error Message: 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. > > Source Error: > > Line 4: <compilation defaultLanguage="vb" debug="true" /> > Line 5: <customErrors mode="Off" /> > Line 6: <authentication mode="None" /> > Line 7: <authorization> > Line 8: <allow users="*" /> <!-- Allow all users --> > > > "Jim Cheshire [MSFT]" <> wrote in message > news:... > > John, > > > > If you made that change and this is still happening, it indicates an error > > occurring before the processing of the web.config file. Can you browse > the > > server from the console? If not, can you try an ASPX page in a different > > site on the same box? > > > > Jim Cheshire [MSFT] > > MCP+I, MCSE, MCSD, MCDBA > > Microsoft Developer Support > > > > > > This post is provided "AS-IS" with no warranties and confers no rights. > > > > > > -------------------- > > >From: "John" <> > > >References: <#> > > <> > > >Subject: Re: Strange problem running app remotely > > >Date: Wed, 21 Jul 2004 19:26:30 +0100 > > >Lines: 95 > > >X-Priority: 3 > > >X-MSMail-Priority: Normal > > >X-Newsreader: Microsoft Outlook Express 6.00.2800.1437 > > >X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 > > >Message-ID: <> > > >Newsgroups: microsoft.public.dotnet.framework.aspnet > > >NNTP-Posting-Host: 81-86-132-31.dsl.pipex.com 81.86.132.31 > > >Path: > > > cpmsftngxa06.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFT NGP08.phx.gbl!TK2MSFTNGP10 > > phx.gbl > > >Xref: cpmsftngxa06.phx.gbl > microsoft.public.dotnet.framework.aspnet:248917 > > >X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet > > > > > > > > >I think I have done it correctly. Here is the web.config. file I am > using. > > > > > ><?xml version="1.0" encoding="utf-8" ?> > > ><configuration> > > > <system.web> > > > <compilation defaultLanguage="vb" debug="true" /> > > > <customErrors mode="Off" /> > > > <authentication mode="None" /> > > > <authorization> > > > <allow users="*" /> <!-- Allow all users --> > > > </authorization> > > > <trace enabled="true" requestLimit="10" pageOutput="true" > > >traceMode="SortByTime" localOnly="true" /> > > > <sessionState > > > mode="InProc" > > > stateConnectionString="tcpip=127.0.0.1:42424" > > > sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes" > > > cookieless="false" > > > timeout="20" > > > /> > > > <globalization requestEncoding="utf-8" responseEncoding="utf-8" /> > > > </system.web> > > ></configuration> > > > > > >"Jim Cheshire [MSFT]" <> wrote in message > > >news:... > > >> John, > > >> > > >> Did you make the indicated changes to the web.config file? > > >> > > >> Jim Cheshire [MSFT] > > >> MCP+I, MCSE, MCSD, MCDBA > > >> Microsoft Developer Support > > >> > > >> > > >> This post is provided "AS-IS" with no warranties and confers no rights. > > >> > > >> > > >> -------------------- > > >> >From: "John" <> > > >> >Subject: Strange problem running app remotely > > >> >Date: Wed, 21 Jul 2004 14:28:34 +0100 > > >> >Lines: 346 > > >> >X-Priority: 3 > > >> >X-MSMail-Priority: Normal > > >> >X-Newsreader: Microsoft Outlook Express 6.00.2800.1437 > > >> >X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 > > >> >Message-ID: <#> > > >> >Newsgroups: microsoft.public.dotnet.framework.aspnet > > >> >NNTP-Posting-Host: 81-86-132-31.dsl.pipex.com 81.86.132.31 > > >> >Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP12.phx.gbl > > >> >Xref: cpmsftngxa06.phx.gbl > > >microsoft.public.dotnet.framework.aspnet:248782 > > >> >X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet > > >> > > > >> >Hi > > >> > > > >> >I have a very simply app (attached) which works fine on my local win2k > > >> >server but when I upload to a remote server I get the error given at > the > > >> >end. As I can see no specific error message, I have no idea what the > > >> problem > > >> >is. How can I proceed form here to solve this problem? > > >> > > > >> >Thanks > > >> > > > >> >Regards > > >> > > > >> > > > >> >Server Error in '/' Application. > > >> > > > >> >Runtime Error > > >> >Description: An application error occurred on the server. The current > > >> custom > > >> >error settings for this application prevent the details of the > > >application > > >> >error from being viewed remotely (for security reasons). It could, > > >however, > > >> >be viewed by browsers running on the local server machine. > > >> > > > >> >Details: To enable the details of this specific error message to be > > >> viewable > > >> >on remote machines, please create a <customErrors> tag within a > > >> "web.config" > > >> >configuration file located in the root directory of the current web > > >> >application. This <customErrors> tag should then have its "mode" > > >attribute > > >> >set to "Off". > > >> > > > >> > > > >> > > > >> > > > >> > > > > > > > > > > > > > Greg Burns |
|
![]() |
| Thread Tools | Search this Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Strange problem with PS/2 mouse & keyboard | Hamadamoh | Hardware | 0 | 04-26-2009 06:04 PM |
| Re: Strange E-mail Problem | SBFan2000 | A+ Certification | 0 | 09-14-2005 03:30 AM |
| Strange DVD Diagnostic Problem... | Jack | DVD Video | 11 | 12-19-2004 02:43 PM |
| strange pc problem | billybronco | A+ Certification | 4 | 09-18-2004 05:16 PM |
| Strange legacy software problem - can anyone help? | Barry Watzman | A+ Certification | 0 | 08-04-2003 03:20 PM |