I am developing an ASP.NET web service application. It works fine on my
WinXP Prof development machine. But when I send it to a Windows Server 2003
system I get the following error (attached below).
I suppose I have some kind of permissions issue on the server? What
recommendations can anyone propose?
Thanks,
-- Bruce
Server Error in '/firstWebSvs' Application.
--------------------------------------------------------------------------------
Access to the path "C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temp orary
ASP.NET Files\firstwebsvs\41aa9288\50d8dfa7" is denied.
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.UnauthorizedAccessException: Access to the path
"C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temp orary ASP.NET
Files\firstwebsvs\41aa9288\50d8dfa7" is denied.
ASP.NET is not authorized to access the requested resource. Consider
granting access rights to the resource to the ASP.NET request identity.
ASP.NET has a base process identity (typically {MACHINE}\ASPNET on IIS 5 or
Network Service on IIS 6) that is used if the application is not
impersonating. If the application is impersonating via <identity
impersonate="true"/>, the identity will be the anonymous user (typically
IUSR_MACHINENAME) or the authenticated request user.
To grant ASP.NET write access to a file, right-click the file in Explorer,
choose "Properties" and select the Security tab. Click "Add" to add the
appropriate user or group. Highlight the ASP.NET account, and check the
boxes for the desired access.
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:
[UnauthorizedAccessException: Access to the path
"C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temp orary ASP.NET
Files\firstwebsvs\41aa9288\50d8dfa7" is denied.]
System.IO.__Error.WinIOError(Int32 errorCode, String str) +393
System.IO.Directory.InternalCreateDirectory(String fullPath, String path)
+632
System.IO.Directory.CreateDirectory(String path) +195
System.Web.Compilation.PreservedAssemblyEntry.DoFi rstTimeInit(HttpContext
context) +85
System.Web.Compilation.PreservedAssemblyEntry.Ensu reFirstTimeInit(HttpContext
context) +97
System.Web.Compilation.PreservedAssemblyEntry.GetP reservedAssemblyEntry(HttpContext
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) +168
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 4 2899
Hi Bruce,
Make sure you give that temp directory (Temporary ASP.NET Files) full access
for the Network Service or whatever account your Application Pool in IIS 6
runs under. Actually I think ASP.NET install sets up the NETWORK SERVICE
account automatically but not any others you might get assigned with an ISP
Web Site and custom Application Pool for your site.
Hope this helps,
+++ Rick ---
"Bruce" <br***@coding-r-us.com> wrote in message
news:e4**************@TK2MSFTNGP12.phx.gbl... I am developing an ASP.NET web service application. It works fine on my WinXP Prof development machine. But when I send it to a Windows Server
2003 system I get the following error (attached below).
I suppose I have some kind of permissions issue on the server? What recommendations can anyone propose?
Thanks, -- Bruce
Server Error in '/firstWebSvs' Application. --------------------------------------------------------------------------
------ Access to the path "C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temp orary ASP.NET Files\firstwebsvs\41aa9288\50d8dfa7" is denied. 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.UnauthorizedAccessException: Access to the path "C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temp orary ASP.NET Files\firstwebsvs\41aa9288\50d8dfa7" is denied.
ASP.NET is not authorized to access the requested resource. Consider granting access rights to the resource to the ASP.NET request identity. ASP.NET has a base process identity (typically {MACHINE}\ASPNET on IIS 5
or Network Service on IIS 6) that is used if the application is not impersonating. If the application is impersonating via <identity impersonate="true"/>, the identity will be the anonymous user (typically IUSR_MACHINENAME) or the authenticated request user.
To grant ASP.NET write access to a file, right-click the file in Explorer, choose "Properties" and select the Security tab. Click "Add" to add the appropriate user or group. Highlight the ASP.NET account, and check the boxes for the desired access.
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:
[UnauthorizedAccessException: Access to the path "C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temp orary ASP.NET Files\firstwebsvs\41aa9288\50d8dfa7" is denied.] System.IO.__Error.WinIOError(Int32 errorCode, String str) +393 System.IO.Directory.InternalCreateDirectory(String fullPath, String
path) +632 System.IO.Directory.CreateDirectory(String path) +195
System.Web.Compilation.PreservedAssemblyEntry.DoFi rstTimeInit(HttpContext context) +85
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) +168 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
Rick,
Thanks.
Actually, this is not an ISP server, but rather a Windows Small Business
Server 2003 server here in my home office. Everything about the setup of
this server is pretty much default configuration. (ASP.NET 1.1, of course,
is simply installed on the server "out of the box.")
Would I normally need to do something special to enable a web service to run
on the server?
To install from the development workstation to the server, I simply used the
vs.net 2003 menu item, "copy project", to move a copy onto the server. As a
result, a new directory was created on the server within inetpub/wwwroot
called /firstWebSvs, which is the same name the directory had on my
development workstation.
Finally, could you explain what you mean by temp directory? ( So far, I
don't seem to use any directory that would be called a temp directory.)
Thanks,
-- Bruce
"Rick Strahl [MVP]" <ri********@hotmail.com> wrote in message
news:ui****************@tk2msftngp13.phx.gbl... Hi Bruce,
Make sure you give that temp directory (Temporary ASP.NET Files) full access for the Network Service or whatever account your Application Pool in IIS 6 runs under. Actually I think ASP.NET install sets up the NETWORK SERVICE account automatically but not any others you might get assigned with an ISP Web Site and custom Application Pool for your site.
Hope this helps,
+++ Rick ---
"Bruce" <br***@coding-r-us.com> wrote in message news:e4**************@TK2MSFTNGP12.phx.gbl... I am developing an ASP.NET web service application. It works fine on my WinXP Prof development machine. But when I send it to a Windows Server 2003 system I get the following error (attached below).
I suppose I have some kind of permissions issue on the server? What recommendations can anyone propose?
Thanks, -- Bruce
Server Error in '/firstWebSvs' Application. -------------------------------------------------------------------------- ------ Access to the path "C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temp orary ASP.NET Files\firstwebsvs\41aa9288\50d8dfa7" is denied. 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.UnauthorizedAccessException: Access to the path "C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temp orary ASP.NET Files\firstwebsvs\41aa9288\50d8dfa7" is denied.
ASP.NET is not authorized to access the requested resource. Consider granting access rights to the resource to the ASP.NET request identity. ASP.NET has a base process identity (typically {MACHINE}\ASPNET on IIS 5
or Network Service on IIS 6) that is used if the application is not impersonating. If the application is impersonating via <identity impersonate="true"/>, the identity will be the anonymous user (typically IUSR_MACHINENAME) or the authenticated request user.
To grant ASP.NET write access to a file, right-click the file in Explorer, choose "Properties" and select the Security tab. Click "Add" to add the appropriate user or group. Highlight the ASP.NET account, and check the boxes for the desired access.
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:
[UnauthorizedAccessException: Access to the path "C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temp orary ASP.NET Files\firstwebsvs\41aa9288\50d8dfa7" is denied.] System.IO.__Error.WinIOError(Int32 errorCode, String str) +393 System.IO.Directory.InternalCreateDirectory(String fullPath, String path) +632 System.IO.Directory.CreateDirectory(String path) +195 System.Web.Compilation.PreservedAssemblyEntry.DoFi rstTimeInit(HttpContext context) +85 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) +168 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
I was able to get the web service to work on the server via an article I
found by searching another newsgroup. I needed to give the Local Service
and Network Service accounts Full Control permission to the
%windir%\Microsoft.NET\Framework\v1.1.4322 directories. Is there any
downside (from a security standpoint) to granting these permissions?
Thanks,
Bruce
"Bruce" <br***@coding-r-us.com> wrote in message
news:Ou**************@TK2MSFTNGP14.phx.gbl... Rick,
Thanks.
Actually, this is not an ISP server, but rather a Windows Small Business Server 2003 server here in my home office. Everything about the setup of this server is pretty much default configuration. (ASP.NET 1.1, of course, is simply installed on the server "out of the box.")
Would I normally need to do something special to enable a web service to run on the server?
To install from the development workstation to the server, I simply used the vs.net 2003 menu item, "copy project", to move a copy onto the server. As a result, a new directory was created on the server within inetpub/wwwroot called /firstWebSvs, which is the same name the directory had on my development workstation.
Finally, could you explain what you mean by temp directory? ( So far, I don't seem to use any directory that would be called a temp directory.)
Thanks, -- Bruce
"Rick Strahl [MVP]" <ri********@hotmail.com> wrote in message news:ui****************@tk2msftngp13.phx.gbl... Hi Bruce,
Make sure you give that temp directory (Temporary ASP.NET Files) full access for the Network Service or whatever account your Application Pool in IIS 6 runs under. Actually I think ASP.NET install sets up the NETWORK SERVICE account automatically but not any others you might get assigned with an ISP Web Site and custom Application Pool for your site.
Hope this helps,
+++ Rick ---
"Bruce" <br***@coding-r-us.com> wrote in message news:e4**************@TK2MSFTNGP12.phx.gbl... I am developing an ASP.NET web service application. It works fine on my WinXP Prof development machine. But when I send it to a Windows Server 2003 system I get the following error (attached below).
I suppose I have some kind of permissions issue on the server? What recommendations can anyone propose?
Thanks, -- Bruce
Server Error in '/firstWebSvs' Application. -------------------------------------------------------------------------- ------ Access to the path "C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temp orary ASP.NET Files\firstwebsvs\41aa9288\50d8dfa7" is denied. 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.UnauthorizedAccessException: Access to the path "C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temp orary ASP.NET Files\firstwebsvs\41aa9288\50d8dfa7" is denied.
ASP.NET is not authorized to access the requested resource. Consider granting access rights to the resource to the ASP.NET request identity. ASP.NET has a base process identity (typically {MACHINE}\ASPNET on IIS 5
or Network Service on IIS 6) that is used if the application is not impersonating. If the application is impersonating via <identity impersonate="true"/>, the identity will be the anonymous user (typically IUSR_MACHINENAME) or the authenticated request user.
To grant ASP.NET write access to a file, right-click the file in Explorer, choose "Properties" and select the Security tab. Click "Add" to add the appropriate user or group. Highlight the ASP.NET account, and check the boxes for the desired access.
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:
[UnauthorizedAccessException: Access to the path "C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temp orary ASP.NET Files\firstwebsvs\41aa9288\50d8dfa7" is denied.] System.IO.__Error.WinIOError(Int32 errorCode, String str) +393 System.IO.Directory.InternalCreateDirectory(String fullPath, String path) +632 System.IO.Directory.CreateDirectory(String path) +195 System.Web.Compilation.PreservedAssemblyEntry.DoFi rstTimeInit(HttpContext context) +85 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) +168 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
Bruce wrote: I suppose I have some kind of permissions issue on the server? What recommendations can anyone propose?
I found these instructions very thorough... http://msdn.microsoft.com/library/de...l/secmod15.asp
Specifically .NET Accounts and what they should/shouldn't have access
to.
Walks you through step by step on what permissions to assign to what
folders. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Ben Turner |
last post by:
Hi,
I need to create an ASPX page that includes both traditional HTML Forms
(which are submitted to a third-party site like a travel booking service)
and also make use of the ASP.Net form. I've...
|
by: Hai Nguyen |
last post by:
Sorry I don't have code yet. I'm asking for solutions which can help me
solve the problem. This is the first time I have to cope this situation,
hence I'm clueless how to start. I would like to ask...
|
by: Ken Varn |
last post by:
I want to add my own custom <STYLE> section in the <HEAD> section of my
ASP.NET page within a custom control. Can someone tell me how I can have my
custom control add tags to the <HEAD> section of...
|
by: Ben |
last post by:
I'm having problems with cookies from asp.net to asp back to asp.net.
It seems like I can set a cookie in asp.net fine, and alter it at will, as
soon as asp touches it, asp.net won't have...
|
by: ~Maheshkumar.R |
last post by:
The error i'm getting is as:
> Server Error in '/' Application.
> --------------------------------------------------------------------------
--
> String or binary data would be truncated. The...
| |
by: |
last post by:
hii all,
im new on ASP.Net and working on a website project now. im using Visual
Studio.Net 2005(c#.net) and SQL Server 2005.
i made a connection to database from Default.aspx, and my...
|
by: dejavue82 |
last post by:
Hi,
What is the maximum value I can set to the following web.config
property to?
<httpRuntime executionTimeout="">
I'm asking, since I'm not sure if there is a setting on my host's
shared...
|
by: rabiasingh |
last post by:
Hi,,
Can anybody tell me how can I extract data from inbuilt tables in aspnet 2.0..
lemme tell u my case, i wanna extract data from table apnet_Roles in the database ASPNETDB.MDF.
i shall be...
|
by: FxM M |
last post by:
It sounds like what you want to do is very doable. I don't how bad the
access code is you may want to try
http://www.microtools.us/default.htm
which i know nothing about.
FxM
*** Sent via...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |