Ask a Question related to ASP.NET Security, Design and Development.
-
Philip Lee #1
.NET and Office XP but Access Denied
Dear all,
Platform: Windows 2000 server
ASP.NET (using VB.NET 2003)
Office XP
When I reference to Word 10.0 Object Library (C:\Program
Files\Microsoft Office\Office 10\MSWORD.OLB), then I just
wirte:
Dim WordApp as New Word.Application
And I got error "System.UnauthorizedAccessException:
Access is Denied"
When I change <identity impersonate="false"> to <identity
impersonate="true" username="administrator" password="">
in web.config, problem solves, but I don't want to change
this config because I don't know administrator password in
production server. Any method to use object library but
need not change settings?
Thanks in advanced
Philip
Philip Lee Guest
-
One With Access Denied, Another With Access, But NotFull
I'm suddenly having access denied/permission problems through Contribute on every page after the templates and their related pages were updated with... -
Web Service + Anon Access, but getting 401 Access Denied Error
I have a simple webservice that just returns a string. The security for this is set to windows authentication in IIS (XP Professional) and anonymous... -
Access denied when creating Access application object
In an ASP file I am running the following in VBScript in order to extract data from an Access 2002 MDB file which is physically located in the... -
problems with ASP/Access from Office XP?
I've got a few sites that I've built and am populating with data from Access 97. My server admin wants to install Office XP Dev Edition for... -
access denied on data access pages
I have created data access pages that worked well when I tried them on two separate computer simutaneously, but when we went into production we got... -
Tom Vande Stouwe MCSD.net #2
Re: .NET and Office XP but Access Denied
Philip,
The ASPNET user does not have permission to use the Word. You will need to:
1) Allow ASPNET to launch word
2) Create a user on the box with permission to open word and impersonate hat
user (Recommended)
Other solutions will follow I'm sure ;)
Tom
--
==========================================
= Tom Vande Stouwe MCSD.net, MCAD.net, MCP
= 45Wallstreet.com ([url]www.45wallstreet.com[/url])
= (803)-345-5001
==========================================
= If you are not making any mistakes
..= ..you are not trying hard enough.
==========================================
This is the spam catching address: [email]gotcha@conpro.net[/email] do not use this address
or you will be blocked at the server ;)
"Philip Lee" <leefailam@hotmail.com> wrote in message
news:051101c370fb$404b6150$a401280a@phx.gbl...> Dear all,
>
> Platform: Windows 2000 server
> ASP.NET (using VB.NET 2003)
> Office XP
>
> When I reference to Word 10.0 Object Library (C:\Program
> Files\Microsoft Office\Office 10\MSWORD.OLB), then I just
> wirte:
>
> Dim WordApp as New Word.Application
> And I got error "System.UnauthorizedAccessException:
> Access is Denied"
> When I change <identity impersonate="false"> to <identity
> impersonate="true" username="administrator" password="">
> in web.config, problem solves, but I don't want to change
> this config because I don't know administrator password in
> production server. Any method to use object library but
> need not change settings?
>
> Thanks in advanced
>
> Philip
>
Tom Vande Stouwe MCSD.net Guest
-
Philip Lee #3
Re: .NET and Office XP but Access Denied
Thank you very much.
But I would like to ask what permission should I grant?
ASPNET user belonged to USERS group already and other
USERS group user can launch word. I just give ASPNET file
permission at Office folder or modify some settings in
local security policy? I don't want to grant administrator
rights.
Thanks again
Philip
You will need to:>-----Original Message-----
>Philip,
>
>The ASPNET user does not have permission to use the Word.and impersonate hat>1) Allow ASPNET to launch word
>2) Create a user on the box with permission to open wordnot use this address>user (Recommended)
>
>Other solutions will follow I'm sure ;)
>
>Tom
>--
>==========================================
>= Tom Vande Stouwe MCSD.net, MCAD.net, MCP
>= 45Wallstreet.com ([url]www.45wallstreet.com[/url])
>= (803)-345-5001
>==========================================
>= If you are not making any mistakes
>..= ..you are not trying hard enough.
>==========================================
>This is the spam catching address: [email]gotcha@conpro.net[/email] dojust>or you will be blocked at the server ;)
>
>"Philip Lee" <leefailam@hotmail.com> wrote in message
>news:051101c370fb$404b6150$a401280a@phx.gbl...>> Dear all,
>>
>> Platform: Windows 2000 server
>> ASP.NET (using VB.NET 2003)
>> Office XP
>>
>> When I reference to Word 10.0 Object Library (C:\Program
>> Files\Microsoft Office\Office 10\MSWORD.OLB), then I<identity>> wirte:
>>
>> Dim WordApp as New Word.Application
>> And I got error "System.UnauthorizedAccessException:
>> Access is Denied"
>> When I change <identity impersonate="false"> tochange>> impersonate="true" username="administrator" password="">
>> in web.config, problem solves, but I don't want toin>> this config because I don't know administrator password>>> production server. Any method to use object library but
>> need not change settings?
>>
>> Thanks in advanced
>>
>> Philip
>>
>
>.
>Philip Lee Guest



Reply With Quote

