Showing posts with label config. Show all posts
Showing posts with label config. Show all posts

Saturday, March 24, 2012

Strange Error - When Subfolder is converted to virutal folder

Let me explain step wise.
1.. I have a site running on port 5555
2.. If contains web.config file with contains <Forms> authentication.
3.. The site contains a sub-folder named "MembersArea" which contains ss.aspx
4.. ss.aspx contains page_load event which prints
Response.Write(Page.User.Identity.Name);
5.. Everything work proper untill here
6.. Now i want to have one more web.config file for folder "MembersArea" , I know i just cannot put web.config file into any sub-folder unless the folder is a "virtual folder"
7.. so i converted the "subfolder" into "virtual folder" from IIS Manager. (Note: I have not yet created any web.config in this subfolder)
8.. Now when i try to execute ss.aspx it throws strange error ... ( you can see the screen dump in the attached file)
9.. The Erorr message is: "Could not load type 'hs.ss'."
10.. When i remove the "virtual folder" it works again.
Can some one tell me what's actuall happening.When you set up another virtual folder, the ASP.NET runtime thinks that you
have an entirely separate ASP.NET application, and any data from the root
application is no longer available to you. In this case, your compiled code
is sitting in the root directory's bin subdirectory, and is not accessible
to the new application that you have created. Just leave it set up to not be
a virtual folder, and you will be fine. Also, you are absolutely able to
override settings in the web.config of your child folders - there are some
settings that are only held at the root level, these settings are inherited,
and you simply override those settings you need modified for a subfolder.
Most commonly, what I do is change access permissions for subfolders in a
child web.config, and leave everything else as the inherited values.

--
Chris Jackson
Software Engineer
Microsoft MVP - Windows Client
Windows XP Associate Expert
--
More people read the newsgroups than read my email.
Reply to the newsgroup for a faster response.
(Control-G using Outlook Express)
--

<Jignesh> wrote in message news:OAA5puswDHA.1088@.tk2msftngp13.phx.gbl...
Let me explain step wise.
1.. I have a site running on port 5555
2.. If contains web.config file with contains <Forms> authentication.
3.. The site contains a sub-folder named "MembersArea" which contains
ss.aspx
4.. ss.aspx contains page_load event which prints
Response.Write(Page.User.Identity.Name);
5.. Everything work proper untill here
6.. Now i want to have one more web.config file for folder "MembersArea" ,
I know i just cannot put web.config file into any sub-folder unless the
folder is a "virtual folder"
7.. so i converted the "subfolder" into "virtual folder" from IIS
Manager. (Note: I have not yet created any web.config in this subfolder)
8.. Now when i try to execute ss.aspx it throws strange error ... ( you
can see the screen dump in the attached file)
9.. The Erorr message is: "Could not load type 'hs.ss'."
10.. When i remove the "virtual folder" it works again.
Can some one tell me what's actuall happening.
I have a situation as follows. please suggest what shall i do.
a.. To login into the main site users need passwords. Its simple i have done this using asp.net forms authentication method.
b.. The site has "admin" section. which is to be protected by one more password level. Even if the user tries to access any admin pages directly by typing in url it should ask user "special" password to access pages.
c.. I thought by making it virtual directory i will be able to add web.config file with <authentication> tags for this sub-virtual folder.
But now it seems it will not be possible to do this. can u tell me any other way to implement this?

Regards,

"Chris Jackson" <chrisjATmvpsDOTorgNOSPAM> wrote in message news:%23af0bfywDHA.3116@.tk2msftngp13.phx.gbl...
> When you set up another virtual folder, the ASP.NET runtime thinks that you
> have an entirely separate ASP.NET application, and any data from the root
> application is no longer available to you. In this case, your compiled code
> is sitting in the root directory's bin subdirectory, and is not accessible
> to the new application that you have created. Just leave it set up to not be
> a virtual folder, and you will be fine. Also, you are absolutely able to
> override settings in the web.config of your child folders - there are some
> settings that are only held at the root level, these settings are inherited,
> and you simply override those settings you need modified for a subfolder.
> Most commonly, what I do is change access permissions for subfolders in a
> child web.config, and leave everything else as the inherited values.
>
> --
> Chris Jackson
> Software Engineer
> Microsoft MVP - Windows Client
> Windows XP Associate Expert
> --
> More people read the newsgroups than read my email.
> Reply to the newsgroup for a faster response.
> (Control-G using Outlook Express)
> --
>
> <Jignesh> wrote in message news:OAA5puswDHA.1088@.tk2msftngp13.phx.gbl...
> Let me explain step wise.
> 1.. I have a site running on port 5555
> 2.. If contains web.config file with contains <Forms> authentication.
> 3.. The site contains a sub-folder named "MembersArea" which contains
> ss.aspx
> 4.. ss.aspx contains page_load event which prints
> Response.Write(Page.User.Identity.Name);
> 5.. Everything work proper untill here
> 6.. Now i want to have one more web.config file for folder "MembersArea" ,
> I know i just cannot put web.config file into any sub-folder unless the
> folder is a "virtual folder"
> 7.. so i converted the "subfolder" into "virtual folder" from IIS
> Manager. (Note: I have not yet created any web.config in this subfolder)
> 8.. Now when i try to execute ss.aspx it throws strange error ... ( you
> can see the screen dump in the attached file)
> 9.. The Erorr message is: "Could not load type 'hs.ss'."
> 10.. When i remove the "virtual folder" it works again.
> Can some one tell me what's actuall happening.
>
>

Strange error handling problem

hi guys,

I have enabled error handling in my application through web.config and also using global.asax file.. but whenever there's any error in my application I am just transferred to default error page which is defined in web.config..

I want the code in global.asax file to take care of the error message as compared to web.config file..

what am i missing ??

web.config


<customErrors mode="RemoteOnly" defaultRedirect="~/Error/Default.aspx"/>

Global.asax


' Fires when an error occurs
Dim ptr As New SystemFunctions
ptr.SendExceptionReport(Session, Request, Server.GetLastError().InnerException, "MyWebApp")
Response.Redirect("~/Error/")
Hi,

Remove the Response.Redirect in the Global.asax file.

The default error page will anyway be shown since you specify it in the web.config. The problem is when there is a response.redirect, it is first executed irrespective of other statements.

Try removing the response.redirect.

write back if it doesn't help.

thanks.

Thursday, March 22, 2012

strange login occurrence

hey all,

i have an asp.net app and i create a login.aspx page for it, i changed the
web.config to windows forms authentication and deny users="?" for
authorization. i browsed to a page and got redirected to login several times.
that's perfect.

well, i had to run the data adapter wizard again to bring in some database
changes i made and now i don't get redirected to the login page when i try to
browse directly to a page.aspx.

any ideas why the login isn't working all of a sudden?
thanks,
rodchari think i may have figured it out. when i delete my cookies it works the way
it should. can you tell how new i am to this?

thanks.

"rodchar" wrote:

> hey all,
> i have an asp.net app and i create a login.aspx page for it, i changed the
> web.config to windows forms authentication and deny users="?" for
> authorization. i browsed to a page and got redirected to login several times.
> that's perfect.
> well, i had to run the data adapter wizard again to bring in some database
> changes i made and now i don't get redirected to the login page when i try to
> browse directly to a page.aspx.
> any ideas why the login isn't working all of a sudden?
> thanks,
> rodchar

strange login occurrence

hey all,
i have an asp.net app and i create a login.aspx page for it, i changed the
web.config to windows forms authentication and deny users="?" for
authorization. i browsed to a page and got redirected to login several times
.
that's perfect.
well, i had to run the data adapter wizard again to bring in some database
changes i made and now i don't get redirected to the login page when i try t
o
browse directly to a page.aspx.
any ideas why the login isn't working all of a sudden?
thanks,
rodchari think i may have figured it out. when i delete my cookies it works the way
it should. can you tell how new i am to this?
thanks.
"rodchar" wrote:

> hey all,
> i have an asp.net app and i create a login.aspx page for it, i changed the
> web.config to windows forms authentication and deny users="?" for
> authorization. i browsed to a page and got redirected to login several tim
es.
> that's perfect.
> well, i had to run the data adapter wizard again to bring in some database
> changes i made and now i don't get redirected to the login page when i try
to
> browse directly to a page.aspx.
> any ideas why the login isn't working all of a sudden?
> thanks,
> rodchar

Tuesday, March 13, 2012

Strange Problem

foreach(XmlNode xn in N)
{
config.AddModule(TabID, Convert.ToInt32(xn.Attributes["ModuleOrder"].Value),xn.Attributes["PaneName"].Value, xn.Attributes["ModuleTitle"].Value, Convert.ToInt32(xn.Attributes["ModuleDefId"].Value), Convert.ToInt32(xn.Attributes["CacheTimeout"].Value), xn.Attributes["EditRoles"].Value);
}

Sometimes this function executes well and stores all the values in the xmlfiles. But sometimes, it writes only half the value and disconnects. What to do?

Raja PandianCould you elaborate a little bit on your application?
I am calling a fuction inside a for loop. The function somewhat a big one which stores data to XML file. Sometimes, the function executes correct and gives me the desiered output. But manytimes I can see only half of the function executed.

Any help plz

Raja Pandian
What happens when the function doesn't execute properly? Does it throw an exception, or does it just silently miss out a whole lot of data? I see you're making some assumptions about the structure of the XML file you're reading -- e.g. ModuleOrder, ModuleDefID and CacheTimeout are integers -- if this isn't the case you may be getting NullReferenceExceptions or FormatExceptions.

If it's just silently discarding data the problem is more likely to be in your config.AddModule() method -- try stepping through it in the debugger to see what's going on.

Strange problem running app remotely

John,

Did you make the indicated changes to the web.config file?

Jim Cheshire [MSFT]
MCP+I, MCSE, MCSD, MCDBA
Microsoft Developer Support
jamesche@dotnet.itags.org.online.microsoft.com

This post is provided "AS-IS" with no warranties and confers no rights.

-------
>From: "John" <john@dotnet.itags.org.nospam.infovis.co.uk>
>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: <#gTKDcybEHA.3664@dotnet.itags.org.TK2MSFTNGP12.phx.gbl>
>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".
>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]" <jamesche@.online.microsoft.com> wrote in message
news:6QyuMo0bEHA.320@.cpmsftngxa06.phx.gbl...
> John,
> Did you make the indicated changes to the web.config file?
> Jim Cheshire [MSFT]
> MCP+I, MCSE, MCSD, MCDBA
> Microsoft Developer Support
> jamesche@.online.microsoft.com
> This post is provided "AS-IS" with no warranties and confers no rights.
>
> -------
> >From: "John" <john@.nospam.infovis.co.uk>
> >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: <#gTKDcybEHA.3664@.TK2MSFTNGP12.phx.gbl>
> >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,

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
jamesche@.online.microsoft.com

This post is provided "AS-IS" with no warranties and confers no rights.

-------
>From: "John" <john@.nospam.infovis.co.uk>
>References: <#gTKDcybEHA.3664@.TK2MSFTNGP12.phx.gbl>
<6QyuMo0bEHA.320@.cpmsftngxa06.phx.gbl>
>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: <uyOQiC1bEHA.2908@.TK2MSFTNGP10.phx.gbl>
>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]" <jamesche@.online.microsoft.com> wrote in message
>news:6QyuMo0bEHA.320@.cpmsftngxa06.phx.gbl...
>> John,
>>
>> Did you make the indicated changes to the web.config file?
>>
>> Jim Cheshire [MSFT]
>> MCP+I, MCSE, MCSD, MCDBA
>> Microsoft Developer Support
>> jamesche@.online.microsoft.com
>>
>> This post is provided "AS-IS" with no warranties and confers no rights.
>>
>>
>> -------
>> >From: "John" <john@.nospam.infovis.co.uk>
>> >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: <#gTKDcybEHA.3664@.TK2MSFTNGP12.phx.gbl>
>> >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".
>>>>>>
The app doesn't run from the site root folder as well. Any ideas?

Thanks

Regards

"Jim Cheshire [MSFT]" <jamesche@.online.microsoft.com> wrote in message
news:mGdf2i1bEHA.320@.cpmsftngxa06.phx.gbl...
> 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
> jamesche@.online.microsoft.com
> This post is provided "AS-IS" with no warranties and confers no rights.
>
> -------
> >From: "John" <john@.nospam.infovis.co.uk>
> >References: <#gTKDcybEHA.3664@.TK2MSFTNGP12.phx.gbl>
> <6QyuMo0bEHA.320@.cpmsftngxa06.phx.gbl>
> >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: <uyOQiC1bEHA.2908@.TK2MSFTNGP10.phx.gbl>
> >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]" <jamesche@.online.microsoft.com> wrote in message
> >news:6QyuMo0bEHA.320@.cpmsftngxa06.phx.gbl...
> >> John,
> >>
> >> Did you make the indicated changes to the web.config file?
> >>
> >> Jim Cheshire [MSFT]
> >> MCP+I, MCSE, MCSD, MCDBA
> >> Microsoft Developer Support
> >> jamesche@.online.microsoft.com
> >>
> >> This post is provided "AS-IS" with no warranties and confers no rights.
> >>
> >>
> >> -------
> >> >From: "John" <john@.nospam.infovis.co.uk>
> >> >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: <#gTKDcybEHA.3664@.TK2MSFTNGP12.phx.gbl>
> >> >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".
> >> >> >> >> >
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]" <jamesche@.online.microsoft.com> wrote in message
news:mGdf2i1bEHA.320@.cpmsftngxa06.phx.gbl...
> 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
> jamesche@.online.microsoft.com
> This post is provided "AS-IS" with no warranties and confers no rights.
>
> -------
> >From: "John" <john@.nospam.infovis.co.uk>
> >References: <#gTKDcybEHA.3664@.TK2MSFTNGP12.phx.gbl>
> <6QyuMo0bEHA.320@.cpmsftngxa06.phx.gbl>
> >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: <uyOQiC1bEHA.2908@.TK2MSFTNGP10.phx.gbl>
> >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]" <jamesche@.online.microsoft.com> wrote in message
> >news:6QyuMo0bEHA.320@.cpmsftngxa06.phx.gbl...
> >> John,
> >>
> >> Did you make the indicated changes to the web.config file?
> >>
> >> Jim Cheshire [MSFT]
> >> MCP+I, MCSE, MCSD, MCDBA
> >> Microsoft Developer Support
> >> jamesche@.online.microsoft.com
> >>
> >> This post is provided "AS-IS" with no warranties and confers no rights.
> >>
> >>
> >> -------
> >> >From: "John" <john@.nospam.infovis.co.uk>
> >> >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: <#gTKDcybEHA.3664@.TK2MSFTNGP12.phx.gbl>
> >> >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".
> >> >> >> >> >
PS: The error is on line 6. The site url is;
http://yahya01.europe.webmatrixhost...2/webform1.aspx

"John" <john@.nospam.infovis.co.uk> wrote in message
news:O63U3$4bEHA.3148@.TK2MSFTNGP10.phx.gbl...
> 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]" <jamesche@.online.microsoft.com> wrote in message
> news:mGdf2i1bEHA.320@.cpmsftngxa06.phx.gbl...
> > 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
> > jamesche@.online.microsoft.com
> > This post is provided "AS-IS" with no warranties and confers no rights.
> > -------
> > >From: "John" <john@.nospam.infovis.co.uk>
> > >References: <#gTKDcybEHA.3664@.TK2MSFTNGP12.phx.gbl>
> > <6QyuMo0bEHA.320@.cpmsftngxa06.phx.gbl>
> > >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: <uyOQiC1bEHA.2908@.TK2MSFTNGP10.phx.gbl>
> > >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]" <jamesche@.online.microsoft.com> wrote in message
> > >news:6QyuMo0bEHA.320@.cpmsftngxa06.phx.gbl...
> > >> John,
> > >>
> > >> Did you make the indicated changes to the web.config file?
> > >>
> > >> Jim Cheshire [MSFT]
> > >> MCP+I, MCSE, MCSD, MCDBA
> > >> Microsoft Developer Support
> > >> jamesche@.online.microsoft.com
> > >>
> > >> This post is provided "AS-IS" with no warranties and confers no
rights.
> > >>
> > >>
> > >> -------
> > >> >From: "John" <john@.nospam.infovis.co.uk>
> > >> >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: <#gTKDcybEHA.3664@.TK2MSFTNGP12.phx.gbl>
> > >> >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".
> > >> > >> > >> > >> > >>
> > >
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" <john@.nospam.infovis.co.uk> wrote in message
news:O63U3$4bEHA.3148@.TK2MSFTNGP10.phx.gbl...
> 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]" <jamesche@.online.microsoft.com> wrote in message
> news:mGdf2i1bEHA.320@.cpmsftngxa06.phx.gbl...
> > 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
> > jamesche@.online.microsoft.com
> > This post is provided "AS-IS" with no warranties and confers no rights.
> > -------
> > >From: "John" <john@.nospam.infovis.co.uk>
> > >References: <#gTKDcybEHA.3664@.TK2MSFTNGP12.phx.gbl>
> > <6QyuMo0bEHA.320@.cpmsftngxa06.phx.gbl>
> > >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: <uyOQiC1bEHA.2908@.TK2MSFTNGP10.phx.gbl>
> > >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]" <jamesche@.online.microsoft.com> wrote in message
> > >news:6QyuMo0bEHA.320@.cpmsftngxa06.phx.gbl...
> > >> John,
> > >>
> > >> Did you make the indicated changes to the web.config file?
> > >>
> > >> Jim Cheshire [MSFT]
> > >> MCP+I, MCSE, MCSD, MCDBA
> > >> Microsoft Developer Support
> > >> jamesche@.online.microsoft.com
> > >>
> > >> This post is provided "AS-IS" with no warranties and confers no
rights.
> > >>
> > >>
> > >> -------
> > >> >From: "John" <john@.nospam.infovis.co.uk>
> > >> >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: <#gTKDcybEHA.3664@.TK2MSFTNGP12.phx.gbl>
> > >> >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".
> > >> > >> > >> > >> > >>
> > >

Strange problem running app remotely

John,
Did you make the indicated changes to the web.config file?
Jim Cheshire [MSFT]
MCP+I, MCSE, MCSD, MCDBA
Microsoft Developer Support
jamesche@dotnet.itags.org.online.microsoft.com
This post is provided "AS-IS" with no warranties and confers no rights.
--
>From: "John" <john@dotnet.itags.org.nospam.infovis.co.uk>
>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: <#gTKDcybEHA.3664@dotnet.itags.org.TK2MSFTNGP12.phx.gbl>
>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!TK2MSFTNGP12.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".
>
>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]" <jamesche@.online.microsoft.com> wrote in message
news:6QyuMo0bEHA.320@.cpmsftngxa06.phx.gbl...
> John,
> Did you make the indicated changes to the web.config file?
> Jim Cheshire [MSFT]
> MCP+I, MCSE, MCSD, MCDBA
> Microsoft Developer Support
> jamesche@.online.microsoft.com
> This post is provided "AS-IS" with no warranties and confers no rights.
>
> --
microsoft.public.dotnet.framework.aspnet:248782
> problem
> custom
application
however,
> viewable
> "web.config"
attribute
>
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
jamesche@.online.microsoft.com
This post is provided "AS-IS" with no warranties and confers no rights.
--
>From: "John" <john@.nospam.infovis.co.uk>
>References: <#gTKDcybEHA.3664@.TK2MSFTNGP12.phx.gbl>
<6QyuMo0bEHA.320@.cpmsftngxa06.phx.gbl>
>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: <uyOQiC1bEHA.2908@.TK2MSFTNGP10.phx.gbl>
>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!TK2MSFTNGP08.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]" <jamesche@.online.microsoft.com> wrote in message
>news:6QyuMo0bEHA.320@.cpmsftngxa06.phx.gbl...
>microsoft.public.dotnet.framework.aspnet:248782
>application
>however,
>attribute
>
>
The app doesn't run from the site root folder as well. Any ideas?
Thanks
Regards
"Jim Cheshire [MSFT]" <jamesche@.online.microsoft.com> wrote in message
news:mGdf2i1bEHA.320@.cpmsftngxa06.phx.gbl...
> 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
> jamesche@.online.microsoft.com
> This post is provided "AS-IS" with no warranties and confers no rights.
>
> --
> <6QyuMo0bEHA.320@.cpmsftngxa06.phx.gbl>
>
cpmsftngxa06.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP10
> phx.gbl
microsoft.public.dotnet.framework.aspnet:248917
using.
the
>
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]" <jamesche@.online.microsoft.com> wrote in message
news:mGdf2i1bEHA.320@.cpmsftngxa06.phx.gbl...
> 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
> jamesche@.online.microsoft.com
> This post is provided "AS-IS" with no warranties and confers no rights.
>
> --
> <6QyuMo0bEHA.320@.cpmsftngxa06.phx.gbl>
>
cpmsftngxa06.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP10
> phx.gbl
microsoft.public.dotnet.framework.aspnet:248917
using.
the
>
PS: The error is on line 6. The site url is;
http://yahya01.europe.webmatrixhost...2/webform1.aspx
"John" <john@.nospam.infovis.co.uk> wrote in message
news:O63U3$4bEHA.3148@.TK2MSFTNGP10.phx.gbl...
> 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]" <jamesche@.online.microsoft.com> wrote in message
> news:mGdf2i1bEHA.320@.cpmsftngxa06.phx.gbl...
error
> the
different
>
cpmsftngxa06.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP10
> microsoft.public.dotnet.framework.aspnet:248917
> using.
rights.
win2k
> the
current
>
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" <john@.nospam.infovis.co.uk> wrote in message
news:O63U3$4bEHA.3148@.TK2MSFTNGP10.phx.gbl...
> 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]" <jamesche@.online.microsoft.com> wrote in message
> news:mGdf2i1bEHA.320@.cpmsftngxa06.phx.gbl...
error
> the
different
>
cpmsftngxa06.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP10
> microsoft.public.dotnet.framework.aspnet:248917
> using.
rights.
win2k
> the
current
>