Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Security > Newby : Access denied creating com object

Reply
Thread Tools

Newby : Access denied creating com object

 
 
JK
Guest
Posts: n/a
 
      12-22-2003
Hello,

When I try to create a Word application object from a webform using
server.createobject("Word.Application") I get this error "Access denied"

Does anyone know what I am doing wrong? Thanks for any help!

Joost


 
Reply With Quote
 
 
 
 
Chris Jackson
Guest
Posts: n/a
 
      12-29-2003
Since you are using web forms, then you need to check the permissions on
your object to ensure that the user token that the ASP.NET worker process is
running under (by default, MACHINE\ASPNET) has the appropriate permissions.

You may also want to consider creating an interop assembly, which will give
you strong typing and make using this COM object as easy as using a .NET
assembly. VS.NET will do this for you, and you can also use the SDK tool
tlbimp.exe.

--
Chris Jackson
Software Engineer
Microsoft MVP - Windows Client
Windows XP Associate Expert
--
More people read the newsgroups than read my email.
Reply to the newsgroup for a faster response.
(Control-G using Outlook Express)
--

"JK" <> wrote in message
news:bs7l54$7v0$...
> Hello,
>
> When I try to create a Word application object from a webform using
> server.createobject("Word.Application") I get this error "Access denied"
>
> Does anyone know what I am doing wrong? Thanks for any help!
>
> Joost
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Very annoying error: Access to the path is denied. ASP.NET is not authorized to access the requested resource. Consider granting access rights to the resource to the ASP.NET request identity Jay ASP .Net 2 08-20-2007 07:38 PM
403 Forbidden: You were denied access because: Access denied by access control list Southern Kiwi NZ Computing 6 03-19-2006 05:19 AM
Throw Access is Denied Exception when Creating object RC ASP .Net 0 11-20-2005 06:09 AM
Throw Access is Denied Exception when Creating object RC ASP .Net Security 0 11-20-2005 06:03 AM
Exception Access denied , creating a new excel object in ASP.Net Hemant shastri ASP .Net Security 2 07-29-2005 12:09 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57