Go Back   Velocity Reviews > Newsgroups > ASP Net
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

ASP Net - Strange Error with app, COM+ issue?

 
Thread Tools Search this Thread
Old 01-16-2005, 06:37 PM   #1
Default Strange Error with app, COM+ issue?


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\Temp orary
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.




=?Utf-8?B?Q2hyaXM=?=
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Digital DIGEST - LIVE UPDATE Issue 41 Ablang DVD Video 0 01-05-2004 11:54 PM
Re: odd motherboard issue hootnholler A+ Certification 0 12-19-2003 06:34 AM
Digital DIGEST - LIVE UPDATE Issue 40 Ablang DVD Video 0 12-15-2003 02:45 PM
Digital DIGEST - LIVE UPDATE Issue 39 Ablang DVD Video 0 11-29-2003 02:17 AM
Digital DIGEST - LIVE UPDATE Issue 38 Ablang DVD Video 0 11-09-2003 01:31 AM




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46