RE: Word 2003 use within ASP.NET 1.1 -- Worked for months now fails...



Further input...

Tried using a UNC on the same machine.. No difference...
Tried using a UNC on another machine.. No difference...
Tried using another local drive.. No difference...

Tried Office Update to make sure Word 2003 was current.. No difference...

How can this be? This is ridiculous. The solution worked for a long time and
then suddenly fails... Something had to change. I've beat the NTFS
permissions thing to death I would guess... I've even granted permissions to
INTERACTIVE & SYSTEM.

"Bradley A. Hehe" wrote:

> I have a situation where I have used Word automation in ASP.NET on a Win2k
> SP4 Server machine. The solution simply opens a new document based on a
> template and then fills in the bookmarks. After this, it does a "SaveAs" and
> closes the document.
>
> This solution was in place and fully functioning throughout a development
> cycle and then deployed to a QA environment (Win2k3) where it continued to
> function.... Even with 8-10 users hammering on it.... This lasted for several
> months.
>
> What happens now is I get an error on the SaveAs method... "Word cannot
> complete the save due to a file permission error."
>
> I have the ASP.NET Worker Process configured to run as an identity that
> currently has full local domain admin priviledges. I checked the directory
> that I use for "temp" space and the NTFS permissions are set to grant
> Everyone with Full Access as well as explicitly granting the account we run
> as with Full Access....
>
> On a whim, another developer had a situation similar to this and deleting
> and recreating the directory resolved it for him. After exhausting my
> debugging options, I tried this and it suddenly began functioning again.
> During that same test, I also ensured that the template (.dot) and the output
> (.doc) had unique filenames to ensure we weren't trying to write to the same
> name as the template (file lock obviously would hit if they were the same).
> In addition, to ensure concurrency across multiple users, the 2 filenames
> (for .dot and .doc) include a GUID to create uniqueness.
>
> From everything I have inspected, nothing should have changed... at least
> from a developers perspective... We were testing GUI changes that invokes a
> black-box piece of code (quasi "controller") that did change. This black-box
> code calls upon another "black-box" that did not change *at all*. This
> unchanged "black-box" was the piece responsible for the Word automation.
>
> Additionally, I don't believe anything was "pushed" by the network team to
> this server, but I can't rule it out either.
>
.



Relevant Pages

  • RE: RPc server is unavailable since SP1
    ... I finally called Tech Support and we found out that there is a hotfix out ... In the Launch and Activation Permissions area, ... > IV. Please change permissions on the Workstation Authentication template to ... > that you want to autoenroll) enable autoenrollment by navigating to the ...
    (microsoft.public.windows.server.sbs)
  • Re: Word mail merge data source
    ... we still did not get it working using UNC. ... Word on it) then there may be a problem if the folder containing the data ... but just because a user has full admin rights does not necessarily ... superset of other users' permissions - for example, ...
    (microsoft.public.word.vba.general)
  • Re: Customzing Security Template Files
    ... I tried my template editing steps with an XPSP2 ... permissions dialog box when you configure a service and you don't end up ... > As you work with the Security Templates and the Security Configuration ... >> Windows Server 2003 given the version of guide you mention). ...
    (microsoft.public.security)
  • Re: Virtual Directory - Permission Denied with fso CopyFile
    ... in ADDITION to the NTFS ACLs. ... UNC Share ACLs is "Read"-only by ... This removes the UNC Share permissions from the picture, ... NTFS ACLs -- right click on the folder/file on the remote server and set ...
    (microsoft.public.inetserver.iis)
  • Re: Customzing Security Template Files
    ... You are welcome Shawn. ... I tried my template editing steps with an XPSP2 ... > permissions dialog box when you configure a service and you don't end up ... >> As you work with the Security Templates and the Security Configuration ...
    (microsoft.public.security)

Quantcast