Re: Word 2003 and DotNet

From: Miha Markic [MVP C#] (miha)
Date: 03/11/04


Date: Thu, 11 Mar 2004 19:42:07 +0100

Hi James,

You could give enough priveleges to asp.net account though I don't recommend
this approach since it is not meant in this way (Word is an interactive
beast).
Rather, I strongly suggest you to take a look at WordML (XML format of
Word2003 documents).
Check this link:
http://msdn.microsoft.com/office/understanding/xmloffice/articles/default.aspx?pull=/library/en-us/dnofftalk/html/odc_office01012004.asp

-- 
Miha Markic [MVP C#] - RightHand .NET consulting & development
miha at rthand com
www.rthand.com
"James J" <jjohnso9@hotmail.com> wrote in message
news:090E18C0-5B78-4434-820C-D1C5F78029BF@microsoft.com...
> I have developed some reports using VB.Net and Word2003 whereby I create
reports in word programmatically directly in a Word document.  Now the user
wants the same capability on the Web.  I tried to create a web project that
calls the VB.Net Forms application that develops the reports.  I am able to
include the VB.Net app's DLL and create an app object and I can access the
public methods in the object, but when I try to create an object
>
> Dim wdDetails As New Microsoft.Office.Interop.Word.Document
>
> I get a web error message saying, "Access is denied" along with the
following information
>
> 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.
> ---------------------------------
> My question is, How do I give permission to ASP.Net to run Word2003 or is
the .Net web version of Word development excluded by design?
>
> Thanks,
>
> James J.


Relevant Pages

  • Re: Word 2003 and DotNet
    ... >Hi James, ... >reports in word programmatically directly in a Word ... If the application is impersonating via ... >IUSR_MACHINENAME) or the authenticated request user. ...
    (microsoft.public.dotnet.general)
  • Where is the built-in ASP.NET account?
    ... granting access rights to the resource to the ASP.NET request identity. ... If the application is impersonating via <identity ... I then found the following to try to recreate the ASP.NET account using the ...
    (microsoft.public.dotnet.framework.aspnet)
  • ADODB.NET and "Access Denied"
    ... I have an ASP.NET page writtein in VB that uses ADODB. ... granting access rights to the resource to the ASP.NET request identity. ... If the application is impersonating via <identity ... Highlight the ASP.NET account, and check the ...
    (microsoft.public.dotnet.framework.aspnet)
  • System.UnauthorizedAccessException //got stuck
    ... added this account to all admin groups. ... granting access rights to the resource to the ASP.NET request identity. ... Network Service on IIS 6) that is used if the application is not ... If the application is impersonating via <identity ...
    (microsoft.public.inetserver.iis.security)
  • System.UnauthorizedAccessException //got stuck
    ... added this account to all admin groups. ... granting access rights to the resource to the ASP.NET request identity. ... Network Service on IIS 6) that is used if the application is not ... If the application is impersonating via <identity ...
    (microsoft.public.dotnet.languages.csharp)

Loading