473,385 Members | 2,210 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

ASP.NET working with MS Word??

Hello,

I'd like to use Microsoft Word in an ASP.NET application. I've referenced to
MS Word, but when the sourcecode-line 'Dim objWord As New Word.Application'
is reached, I an exception is thrown. The exception message is as follows:

Exception Details: System.UnauthorizedAccessException: Access 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. The exception message already describes some
sort of solution, but I don't really get what to do to solve this problem.
Can anyone help me with this?

Greetings,

Chris Zoper



Jul 21 '05 #1
1 1285
On Mon, 28 Jun 2004 08:50:12 +0200, "Remco Groot Beumer" <te***********@12move.nl> wrote:

¤ Hello,
¤
¤ I'd like to use Microsoft Word in an ASP.NET application. I've referenced to
¤ MS Word, but when the sourcecode-line 'Dim objWord As New Word.Application'
¤ is reached, I an exception is thrown. The exception message is as follows:
¤
¤ Exception Details: System.UnauthorizedAccessException: Access 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. The exception message already describes some
¤ sort of solution, but I don't really get what to do to solve this problem.
¤ Can anyone help me with this?

I would take a look at the following MS KB article:

INFO: Considerations for Server-Side Automation of Office
http://support.microsoft.com/default...b;en-us;257757
Paul ~~~ pc******@ameritech.net
Microsoft MVP (Visual Basic)
Jul 21 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: David | last post by:
After getting some help working through my bugs, I have what seems to be a robust, working word counter script. I post it here to benefit others that might want this in the future and so that if I...
5
by: Dixie | last post by:
I have a mailmerge that works fine from an MDB database using the OpenDataSource method to send its data from a query within Access as part of an automation sequence. Now, if I compile that mdb...
1
by: Juan Manuel Alegrķa B. | last post by:
Hi group I have a question. I“m working with VB and I want to use a word document which is conected to my SQL Server database. I mean the word document works as a letter with information from...
0
by: serkan | last post by:
Guys, I am trying to get this password reset functionality wor for me but I am not successful at all. Please somebody help me. I get "Your password could not be reset - please try again later" so I...
3
by: jfarley | last post by:
I have been searching everywhere to try to figure out how to use Access to open an existing Word document that is merged to an Excel spreadsheet and merge the data when it opens. I'm working with...
0
by: Omer | last post by:
I am trying to create a shared addin using visual studio 2005 with the following code. It is working only in Power Point Appliction and not loading in Excel and Word I used the Visual Studio Wizard...
10
by: Stephen.Schoenberger | last post by:
Hello, Sorry if this is not "exactly" a C topic but I thought this would be the best place to start. I need some guidance on working with bitmap images in ANSI C. I need to "read" in a bitmap...
4
by: Benoit Lefebvre | last post by:
Weird subject you will say.. I didn't know what to put in there.. Long story short, I'm changing the value of a variable from a function.. Nothing unusual there.. How come the value of the...
2
by: =?Utf-8?B?Sm9objI3MjQ=?= | last post by:
My clipart stopped working. I have reinstalled MS Office 2007 twice now but does not help. When I open clipart organiser all the dropdown options are in grey and cannot be used. When I try to...
0
by: Julia1 | last post by:
Actually I have encountered several problems working with Word. Please see if you can help me resolve them. My application creates documents (Microsoft.Interop.Word.Document) each one according...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.