A
Arsalan Ahmad
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:
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.DoFirstTimeInit(HttpContext
context) +85
[HttpException (0x80004005): Failed to create temporary files directory
'C:\WINNT\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET
Files\webapplication2\7946c32d\10312955'. Access denied.]
System.Web.Compilation.PreservedAssemblyEntry.DoFirstTimeInit(HttpContext
context) +142
System.Web.Compilation.PreservedAssemblyEntry.EnsureFirstTimeInit(HttpContex
t context) +97
System.Web.Compilation.PreservedAssemblyEntry.GetPreservedAssemblyEntry(Http
Context context, String virtualPath, Boolean fApplicationFile) +29
System.Web.UI.TemplateParser.GetParserCacheItemFromPreservedCompilation()
+91
System.Web.UI.TemplateParser.GetParserCacheItemInternal(Boolean
fCreateIfNotFound) +148
System.Web.UI.TemplateParser.GetParserCacheItemWithNewConfigPath() +125
System.Web.UI.TemplateParser.GetParserCacheItem() +88
System.Web.UI.ApplicationFileParser.GetCompiledApplicationType(String
inputFile, HttpContext context, ApplicationFileParser& parser) +171
System.Web.HttpApplicationFactory.CompileApplication(HttpContext context)
+43
System.Web.HttpApplicationFactory.Init(HttpContext context) +485
System.Web.HttpApplicationFactory.GetApplicationInstance(HttpContext
context) +170
System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +414
----------------------------------------------------------------------------
----
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.
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:
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.DoFirstTimeInit(HttpContext
context) +85
[HttpException (0x80004005): Failed to create temporary files directory
'C:\WINNT\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET
Files\webapplication2\7946c32d\10312955'. Access denied.]
System.Web.Compilation.PreservedAssemblyEntry.DoFirstTimeInit(HttpContext
context) +142
System.Web.Compilation.PreservedAssemblyEntry.EnsureFirstTimeInit(HttpContex
t context) +97
System.Web.Compilation.PreservedAssemblyEntry.GetPreservedAssemblyEntry(Http
Context context, String virtualPath, Boolean fApplicationFile) +29
System.Web.UI.TemplateParser.GetParserCacheItemFromPreservedCompilation()
+91
System.Web.UI.TemplateParser.GetParserCacheItemInternal(Boolean
fCreateIfNotFound) +148
System.Web.UI.TemplateParser.GetParserCacheItemWithNewConfigPath() +125
System.Web.UI.TemplateParser.GetParserCacheItem() +88
System.Web.UI.ApplicationFileParser.GetCompiledApplicationType(String
inputFile, HttpContext context, ApplicationFileParser& parser) +171
System.Web.HttpApplicationFactory.CompileApplication(HttpContext context)
+43
System.Web.HttpApplicationFactory.Init(HttpContext context) +485
System.Web.HttpApplicationFactory.GetApplicationInstance(HttpContext
context) +170
System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +414
----------------------------------------------------------------------------
----
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.