Strange Error with app, COM+ issue?

From: Chris (Chris_at_discussions.microsoft.com)
Date: 01/16/05


Date: Sun, 16 Jan 2005 10:37:02 -0800

I'm moving an app to my server and got this strange error.
The previous developer created a web service and has two C++ COM+ objects in
the project.
I'm getting:
Access to the path "C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary
ASP.NET Files\tec-trac\5660ae43\6c7dad27" is denied.

He runs the app on a Win2K server, I'm using a Win 2003 Standard server.

I found two articles but not sure:

"In the .NET Framework 1.0, ASP.NET applications use the TEMP folder that is
designated by the environment variables to store temporary files. In .NET
Framework 1.1, ASP.NET applications use the profile folder for the local
ASPNET account to write temporary files. This profile folder is C:\Documents
and Settings\ServerName\ASPNET\TEMP. The ASPNET account has permissions to
write to this folder.

However, if the ASP.NET application uses impersonation, the account that is
impersonated may not have the permissions to write temporary files to this
folder. Therefore, when the Web server is upgraded to .NET Framework 1.1, the
application may fail with the error message that is described in the
"Symptoms" section of this article."

And:

"PRB: "Access Denied" Error Message Occurs When You Impersonate an Account
in ASP.NET and Then Call STA COM Components

Note When you call an apartment-threaded or single-threaded COM component
from a Web Service, it is already a requirement to put the component in some
type of COM+ Application.

Note The intent of this sample is only to show how to use your own STA
thread to impersonate and directly access the COM component. In a production
environment, it is best to manage a pool of STA threads instead of creating
and destroying a single thread on each request. "

Thanx.



Relevant Pages

  • Re: WS Works Locally but not on Web Server
    ... What wound up being the fix for me was putting the Web Service it is own ... Root folder in IIS 6. ... >> a sub folder of that client folder. ... >> I know what you mean about the reconnection from localhost to live server. ...
    (microsoft.public.dotnet.framework.webservices)
  • Apache Httpd - Access error
    ... I'm getting a strange error when I try a direct access to a folder in the server. ... If I simple type the machine address in the browser, ...
    (freebsd-questions)
  • Security issue or not on windows 2003 server.
    ... I have a web service, which in turn uses a dll that is installed on the ... The dll is deployed to the GAC. ... This works when it run the web service on windows 2000 server, ... I tried sharing the folder as well. ...
    (microsoft.public.dotnet.framework.webservices)
  • Re: new webservices
    ... folder where it was created? ... Francisco ... > I'm creating a new web service with Visual Studio.NET, ... > A connection with the server could not be established. ...
    (microsoft.public.dotnet.framework.webservices)
  • Re: Apache Httpd - Access error
    ... # ServerName gives the name and port that the server uses to identify itself. ... # If your host doesn't have a registered DNS name, ... I'm getting a strange error when I try a direct access to a folder ...
    (freebsd-questions)