469,898 Members | 1,702 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,898 developers. It's quick & easy.

Configuration problem in ASP.net Website

Hi all,

I am developing a simple one page application in ASP.NET which takes an
input in a text box and print in a label. But when i uploaded it to the
website i get the following error:

Configuration Error
Description: An error occurred during the processing of a configuration file
required to service this request. Please review the specific error details
below and modify your configuration file appropriately.

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 36: "Passport" and "None"
Line 37: -->
Line 38: <authentication mode="None" />
Line 39:
Line 40: <!-- APPLICATION-LEVEL TRACE LOGGING

Source File: E:\webroot\xxxx\xxxx\xxxx.com\www\WebApplication2\ web.config
Line: 38

----------------------------------------------------------------------------
----

Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET
Version:1.1.4322.573
I have checked other authentication mode as well but unable to resolve this
problem. Please help.

Thanks,

Arsalan.
Nov 18 '05 #1
5 1488
the directory that you uploaded the aspx files to is not marked as virtual
directory.
if it is your server then configure that directory to be a virtual
directory.
alternatively contact the host and enquire / request that the directory be
made a virtual directory.

--
Regards,
HD
Once a Geek.... Always a Geek
"Arsalan Ahmad" <ar*****@hotmail.com> wrote in message
news:e6****************@TK2MSFTNGP10.phx.gbl...
Hi all,

I am developing a simple one page application in ASP.NET which takes an
input in a text box and print in a label. But when i uploaded it to the
website i get the following error:

Configuration Error
Description: An error occurred during the processing of a configuration
file
required to service this request. Please review the specific error details
below and modify your configuration file appropriately.

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 36: "Passport" and "None"
Line 37: -->
Line 38: <authentication mode="None" />
Line 39:
Line 40: <!-- APPLICATION-LEVEL TRACE LOGGING

Source File: E:\webroot\xxxx\xxxx\xxxx.com\www\WebApplication2\ web.config
Line: 38

----------------------------------------------------------------------------
----

Version Information: Microsoft .NET Framework Version:1.1.4322.573;
ASP.NET
Version:1.1.4322.573
I have checked other authentication mode as well but unable to resolve
this
problem. Please help.

Thanks,

Arsalan.

Nov 18 '05 #2
Hi,

Thanks for the reply. After declaring virtual directory now I am getting
this error when i try to access the page.
Server Error in '/WebApplication2' Application.
----------------------------------------------------------------------------
----

Could not find a part of the path "C:\".
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.

Exception Details: System.IO.DirectoryNotFoundException: Could not find a
part of the path "C:\".

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:
[DirectoryNotFoundException: Could not find a part of the path "C:\".]
System.IO.__Error.WinIOError(Int32 errorCode, String str) +287
System.IO.Directory.InternalCreateDirectory(String fullPath, String path)
+489
System.IO.Directory.CreateDirectory(String path) +195
System.Web.Compilation.PreservedAssemblyEntry.DoFi rstTimeInit(HttpContext
context) +85

[HttpException (0x80004005): Failed to create temporary files directory
'C:\WINNT\Microsoft.NET\Framework\v1.1.4322\Tempor ary ASP.NET
Files\webapplication2\7946c32d\10312955'. Access denied.]
System.Web.Compilation.PreservedAssemblyEntry.DoFi rstTimeInit(HttpContext
context) +142

System.Web.Compilation.PreservedAssemblyEntry.Ensu reFirstTimeInit(HttpContex
t context) +97

System.Web.Compilation.PreservedAssemblyEntry.GetP reservedAssemblyEntry(Http
Context context, String virtualPath, Boolean fApplicationFile) +29
System.Web.UI.TemplateParser.GetParserCacheItemFro mPreservedCompilation()
+91
System.Web.UI.TemplateParser.GetParserCacheItemInt ernal(Boolean
fCreateIfNotFound) +148
System.Web.UI.TemplateParser.GetParserCacheItemWit hNewConfigPath() +125
System.Web.UI.TemplateParser.GetParserCacheItem() +88
System.Web.UI.ApplicationFileParser.GetCompiledApp licationType(String
inputFile, HttpContext context, ApplicationFileParser& parser) +171
System.Web.HttpApplicationFactory.CompileApplicati on(HttpContext context)
+43
System.Web.HttpApplicationFactory.Init(HttpContext context) +485
System.Web.HttpApplicationFactory.GetApplicationIn stance(HttpContext
context) +170
System.Web.HttpRuntime.ProcessRequestInternal(Http WorkerRequest wr) +414


----------------------------------------------------------------------------
----

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

Please reply,

Thanks,

Arsalan.
"Hermit Dave" <he************@CAPS.AND.DOTS.hotmail.com> wrote in message
news:e7**************@TK2MSFTNGP11.phx.gbl...
the directory that you uploaded the aspx files to is not marked as virtual
directory.
if it is your server then configure that directory to be a virtual
directory.
alternatively contact the host and enquire / request that the directory be
made a virtual directory.

--
Regards,
HD
Once a Geek.... Always a Geek
"Arsalan Ahmad" <ar*****@hotmail.com> wrote in message
news:e6****************@TK2MSFTNGP10.phx.gbl...
Hi all,

I am developing a simple one page application in ASP.NET which takes an
input in a text box and print in a label. But when i uploaded it to the
website i get the following error:

Configuration Error
Description: An error occurred during the processing of a configuration
file
required to service this request. Please review the specific error details below and modify your configuration file appropriately.

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 36: "Passport" and "None"
Line 37: -->
Line 38: <authentication mode="None" />
Line 39:
Line 40: <!-- APPLICATION-LEVEL TRACE LOGGING

Source File: E:\webroot\xxxx\xxxx\xxxx.com\www\WebApplication2\ web.config Line: 38


--------------------------------------------------------------------------

--
----

Version Information: Microsoft .NET Framework Version:1.1.4322.573;
ASP.NET
Version:1.1.4322.573
I have checked other authentication mode as well but unable to resolve
this
problem. Please help.

Thanks,

Arsalan.


Nov 18 '05 #3
open your IIS console and check whether the directory you have specified is
indeed marked as virtual directory and that its path is valid. you should be
able to browse from within iis just to check it

--
Regards,
HD
Once a Geek.... Always a Geek
"Arsalan Ahmad" <ar*****@hotmail.com> wrote in message
news:ud****************@TK2MSFTNGP09.phx.gbl...
Hi,

Thanks for the reply. After declaring virtual directory now I am getting
this error when i try to access the page.
Server Error in '/WebApplication2' Application.
----------------------------------------------------------------------------
----

Could not find a part of the path "C:\".
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.

Exception Details: System.IO.DirectoryNotFoundException: Could not find a
part of the path "C:\".

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:
[DirectoryNotFoundException: Could not find a part of the path "C:\".]
System.IO.__Error.WinIOError(Int32 errorCode, String str) +287
System.IO.Directory.InternalCreateDirectory(String fullPath, String
path)
+489
System.IO.Directory.CreateDirectory(String path) +195

System.Web.Compilation.PreservedAssemblyEntry.DoFi rstTimeInit(HttpContext
context) +85

[HttpException (0x80004005): Failed to create temporary files directory
'C:\WINNT\Microsoft.NET\Framework\v1.1.4322\Tempor ary ASP.NET
Files\webapplication2\7946c32d\10312955'. Access denied.]

System.Web.Compilation.PreservedAssemblyEntry.DoFi rstTimeInit(HttpContext
context) +142

System.Web.Compilation.PreservedAssemblyEntry.Ensu reFirstTimeInit(HttpContex
t context) +97

System.Web.Compilation.PreservedAssemblyEntry.GetP reservedAssemblyEntry(Http
Context context, String virtualPath, Boolean fApplicationFile) +29

System.Web.UI.TemplateParser.GetParserCacheItemFro mPreservedCompilation()
+91
System.Web.UI.TemplateParser.GetParserCacheItemInt ernal(Boolean
fCreateIfNotFound) +148
System.Web.UI.TemplateParser.GetParserCacheItemWit hNewConfigPath() +125
System.Web.UI.TemplateParser.GetParserCacheItem() +88
System.Web.UI.ApplicationFileParser.GetCompiledApp licationType(String
inputFile, HttpContext context, ApplicationFileParser& parser) +171
System.Web.HttpApplicationFactory.CompileApplicati on(HttpContext
context)
+43
System.Web.HttpApplicationFactory.Init(HttpContext context) +485
System.Web.HttpApplicationFactory.GetApplicationIn stance(HttpContext
context) +170
System.Web.HttpRuntime.ProcessRequestInternal(Http WorkerRequest wr) +414


----------------------------------------------------------------------------
----

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

Please reply,

Thanks,

Arsalan.
"Hermit Dave" <he************@CAPS.AND.DOTS.hotmail.com> wrote in message
news:e7**************@TK2MSFTNGP11.phx.gbl...
the directory that you uploaded the aspx files to is not marked as
virtual
directory.
if it is your server then configure that directory to be a virtual
directory.
alternatively contact the host and enquire / request that the directory
be
made a virtual directory.

--
Regards,
HD
Once a Geek.... Always a Geek
"Arsalan Ahmad" <ar*****@hotmail.com> wrote in message
news:e6****************@TK2MSFTNGP10.phx.gbl...
> Hi all,
>
> I am developing a simple one page application in ASP.NET which takes an
> input in a text box and print in a label. But when i uploaded it to the
> website i get the following error:
>
> Configuration Error
> Description: An error occurred during the processing of a configuration
> file
> required to service this request. Please review the specific error details > below and modify your configuration file appropriately.
>
> 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 36: "Passport" and "None"
> Line 37: -->
> Line 38: <authentication mode="None" />
> Line 39:
> Line 40: <!-- APPLICATION-LEVEL TRACE LOGGING
>
>
>
> Source File: E:\webroot\xxxx\xxxx\xxxx.com\www\WebApplication2\ web.config > Line: 38
>
>
>


--------------------------------------------------------------------------

--
> ----
>
> Version Information: Microsoft .NET Framework Version:1.1.4322.573;
> ASP.NET
> Version:1.1.4322.573
>
>
> I have checked other authentication mode as well but unable to resolve
> this
> problem. Please help.
>
> Thanks,
>
> Arsalan.
>
>



Nov 18 '05 #4
Hi,

Yes it is marked as virtual directory on my PC and i have also marked it as
virtual directory now on the host server. Any thoughts.

Thanks,

Arsalan.
Nov 18 '05 #5
sorry wasnt around... nah cant think of much,, see what others say... have
to run for work now...

--
Regards,
HD
Once a Geek.... Always a Geek
"Arsalan Ahmad" <ar*****@hotmail.com> wrote in message
news:ea***************@TK2MSFTNGP11.phx.gbl...
Hi,

Yes it is marked as virtual directory on my PC and i have also marked it
as
virtual directory now on the host server. Any thoughts.

Thanks,

Arsalan.

Nov 18 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by NoNickname | last post: by
2 posts views Thread by Erland | last post: by
1 post views Thread by kurt sune | last post: by
3 posts views Thread by mrajanikrishna | last post: by
5 posts views Thread by Dariusz Tomon | last post: by
1 post views Thread by Peter Zoomers | last post: by
1 post views Thread by Waqarahmed | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.