all groups > dotnet security > september 2005 >
You're in the

dotnet security

group:

AccessDenied error on Windows 2003 Server


AccessDenied error on Windows 2003 Server dmorgan75
9/29/2005 2:20:07 PM
dotnet security:
We developed a COM Wrapper DLL around some code that accesses a Structured
Storage file (starting with a call to StgOpenStorage). The COM Wrapper DLL
is accessed from an ASP.NET application written in C#.

With our ASP.NET application running on Windows 2000 Server and Windows XP,
the call to StgOpenStorage has always returned S_OK. When we tried running
on Windows 2003 Server we now get an 0x8003005 (STG_E_ACCESSDENIED) error
every time we make the call to StgOpenStorage.

Is there some new Security configuration within Windows 2003 Server that is
RE: AccessDenied error on Windows 2003 Server dmorgan75
9/30/2005 9:37:07 AM
I found the answer myself. When running on Windows XP I had set the Security
Permissions on the Structured Storage file to "Full Access" for the local
ASPNET account. On Windows 2003 Server I needed to set the Security
Permissions for the local NETWORK SERVICE account. I can now access the
Structed Storage file through ASP.NET on all platforms.

[quoted text, click to view]
AddThis Social Bookmark Button