Do you actually need to create an Access session? Or are you just trying to
access the database?


-----Original Message-----
From: Matthew Small [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 16, 2002 3:10 PM
Subject: RE: ASP.NET and COM Objects


Hi,
        I'm not expert on COM.  I'm trying to open up Access through a
COM object to print a report to the local intranet, but I am having
security issues.  I've already done what the error message tells me to
do to remedy the situation, but it still doesn't work.  Any ideas?  Does
anybody read these posts?  I don't get any answers, but I will keep on
trying.


The error message:

Access 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 is denied.


The ASP.NET process is not authorized to access the requested resource.
For security reasons the default ASP.NET process identity is
'{machinename}\ASPNET', which has limited privileges. Consider granting
access rights to the resource to the ASP.NET process identity. 

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 "{machinename}\ASPNET" user. Highlight the ASP.NET account,
and check the Write box in the Allow column.


Offending code:

objAccess = Server.CreateObject("Access.Application")


Thank you,

Matthew Small
IT Supervisor
Showstopper National Dance Competitions
3660 Old Kings Hwy
Murrells Inlet, SC 29576
843-357-1847
http://www.showstopperonline.com
 




---
You are currently subscribed to dotnet as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]

---------
Administrated by 15 Seconds : http://www.15Seconds.com
List Archives/Search : http://local.15Seconds.com/search
Subscription Information : http://www.15seconds.com/listserv.htm
Advertising Information: http://www.internet.com/mediakit/


Reply via email to