Ask a Question related to ASP Components, Design and Development.
-
tbn #1
Error creating Word.Application object in ASP.NET
I have created a very simple ASP.NET page for testing purposes. I am trying
to create a Word.Application object, populate a document with some text and
then save the document. I am getting an 'Access is denied' error, which is
pasted in below. I have given IUSR_MACHINENAME full control authorization on
the Winword.exe file (and the whole Office11 folder), but it still won't
execute. Impersonation is disabled. What am I missing?
******* Copy of Error *********************
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.
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:
Line 15: Dim MyDoc As Object
Line 16:
Line 17: MyWordObject = Server.CreateObject("Word.Application")
Line 18: MyDoc = MyWordObject.Documents.Add
Line 19: MyDoc.contents = "This is a test."
Source File: d:\inetpub\wwwroot\HJ\HJournals.aspx.vb Line: 17
tbn Guest
-
#40453 [NEW]: Application Error in New COM ("word.application")
From: mraji_1 at yahoo dot com Operating system: Win 2000 PHP version: 4.4.4 PHP Bug Type: COM related Bug description: ... -
HELP: ASP.NET Web Application, Impersonating User and Creating Threads via C++ COM Object
Sorry for the long subject, but it summarizes my issue nicely. I have an ASP.NET application running ... it's a web app running under IIS. For... -
Win2K: error creating ASP.NET Web Application
Hi, I have Visual .Net installed under Windows 2000 Professional. When I try to create a new ASP.NET Web Project, the following error message pops... -
IIS 5.0 - ASP createobject word.application error
I have set the anonymous user to a local user account, it work prefect for a fews month. But now i found that there is an error: Server object... -
Error in creating a web application project on a Web Server
Hello, i have a serious problem creating a Dot NET Web Application project remotely on my webserver. SCENARIO : I have a client computer...



Reply With Quote

