Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > General .NET
| Search | Today's Posts | Mark Forums Read
General .NET For general discussion of MICROSOFT .NET topics that don't fall within any of the other .NET forum subcategories or .NET language forums.  If your question is specific to a language (C# or Visual Basic) or type of application (Windows Forms or ASP.Net) try an applicable forum category. ** PLEASE BE SPECIFIC WITH YOUR QUESTION ** When posting here, provide details regarding the Microsoft .NET language you are using and/or what type of application (Windows/Web Forms, etc) you are working in, if applicable to the question. This will help others answer the question without having to ask.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the General .NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 20th, 2004, 05:06 AM
Authorized User
 
Join Date: Jun 2003
Location: Noida, UP, India.
Posts: 42
Thanks: 0
Thanked 0 Times in 0 Posts
Default Accessing Word Object Library from .NET Web app

Hi friends,

I'm trying to access the functionalities of Word Object Library ver 10.0 from my .NET Web app but I'm getting the following error message:

================================================== ====================
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.
================================================== ====================

I've checked the security credentils and they are fine...what can be the possible problem...Can somebody help...

TIA
debsoft

cheers,
debsoft
__________________
cheers,
debsoft
 
Old April 20th, 2004, 05:11 AM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi debsoft,

What did you see on the Security tab? i.e. what permissions were assigned to what accounts? Is the ASPNET account listed there as well??

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
While typing this post, I was listening to: Falling Down by Muse (From the album: Showbiz)

 
Old April 21st, 2004, 05:39 AM
Authorized User
 
Join Date: Jun 2003
Location: Noida, UP, India.
Posts: 42
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Imar,

Yes, the ASPNET account is listed there too...and it had all the permissions assigned to it...still when I try to access the Word Object library, I get an "access denied" error message.

I can't figure out what else is missing...

Thanks anyway for your reply.

Debsoft

Quote:
quote:Originally posted by Imar
 Hi debsoft,

What did you see on the Security tab? i.e. what permissions were assigned to what accounts? Is the ASPNET account listed there as well??

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
While typing this post, I was listening to: Falling Down by Muse (From the album: Showbiz)

cheers,
debsoft
 
Old April 21st, 2004, 05:53 AM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

To what folder did you grant these rights? Does ASPNET have permission to at least read the files in your Office installation folder. Also, using Word may require read permissions on the registry.

Did you try to Google for the error message? Did something useful come up?

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
While typing this post, I was listening to: Finale (Allegro energico) by Mendelssohn & Bruch (Track 6 from the album: Violinkonzerte - Hoelscher)




Similar Threads
Thread Thread Starter Forum Replies Last Post
Accessing Word through ASP.NET renoldr General .NET 2 December 2nd, 2013 06:58 AM
Convert a VB.Net app to a web app? furjaw VB.NET 3 September 24th, 2007 12:27 PM
Excel 9.0 Object Library in C# .NET DanRoche General .NET 1 July 17th, 2007 09:28 AM
Accessing WORD object in ASP mcinar Classic ASP Basics 5 March 30th, 2005 04:19 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.