473,385 Members | 1,492 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 1284
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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...

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.