Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Problems:: ASP.NET & COM+

Reply
Thread Tools

Problems:: ASP.NET & COM+

 
 
=?Utf-8?B?bC10b3VjaGVk?=
Guest
Posts: n/a
 
      02-05-2004
Hi!

I am developing with ASP.NET (VB.NET), I have my web server hosting my aspx pages, in another server I have my COM+ components, I have exported my Application Proxy from that component, I have installed that Application Proxy in the web server, both of them servers are in the same domain. I have probed that my Application Proxy without problems in Windows Forms, creating my instances using "CreateObject" statement [p.e. Dim oAnything As Object = CreateObject("Some.Object") ], without make any previus reference to nothing

BUT!... but when I want to reproduce the same case using Web Forms.... appear an error when I want to instance the Object [remember: Dim oAnything As Object = CreateObject("Some.Object")], The error is: "Access is Denied".

NOTE: I hope to be clear explani you my case, if you have any question plese write it

Could someone help me with some code, steps, online article, etc?

Thanks in advance

l-touched
 
Reply With Quote
 
 
 
 
Alvin Bruney [MVP]
Guest
Posts: n/a
 
      02-05-2004
set your aspcompat property of the document object to true on your webpage
form (click on the doucment, go to properties, 2nd item in the list). this
takes care of some plumbing which allows COM components to work on a
webpage. This step is required, but i can't see why it would give you an
access denied error. Anyway, addres this first. If the problem persists,
post a follow up.

--
Regards,
Alvin Bruney [ASP.NET MVP]
Got tidbits? Get it here...
http://tinyurl.com/3he3b
"l-touched" <> wrote in message
news:0E7650F3-905C-482F-BE9C-...
> Hi!,
>
> I am developing with ASP.NET (VB.NET), I have my web server hosting my

aspx pages, in another server I have my COM+ components, I have exported my
Application Proxy from that component, I have installed that Application
Proxy in the web server, both of them servers are in the same domain. I have
probed that my Application Proxy without problems in Windows Forms, creating
my instances using "CreateObject" statement [p.e. Dim oAnything As Object =
CreateObject("Some.Object") ], without make any previus reference to
nothing.
>
> BUT!... but when I want to reproduce the same case using Web Forms....

appear an error when I want to instance the Object [remember: Dim oAnything
As Object = CreateObject("Some.Object")], The error is: "Access is Denied".
>
> NOTE: I hope to be clear explani you my case, if you have any question

plese write it.
>
> Could someone help me with some code, steps, online article, etc?.
>
> Thanks in advance,
>
> l-touched



 
Reply With Quote
 
 
 
 
Tommy
Guest
Posts: n/a
 
      02-06-2004
By default, an ASP.NET web application runs under the "ASPNET" user.
This is a local user on the web server, and will not be able to access
network resources.

Try changing your web application to run under a network user by
adding the following section to the Web.Config file.

<identity impersonate="true"
userName="domain\user"
password="master"
/>

Tommy,

l-touched <> wrote in message news:<0E7650F3-905C-482F-BE9C->...
> Hi!,
>
> I am developing with ASP.NET (VB.NET), I have my web server hosting my aspx pages, in another server I have my COM+ components, I have exported my

Application Proxy from that component, I have installed that
Application Proxy in the web server, both of them servers are in the
same domain. I have probed that my Application Proxy without problems
in Windows Forms, creating my instances using "CreateObject" statement
[p.e. Dim oAnything As Object = CreateObject("Some.Object") ], without
make any previus reference to nothing.
>
> BUT!... but when I want to reproduce the same case using Web Forms.... appear an error when I want to instance the Object [remember: Dim oAnything As Object = CreateObject("Some.Object")], The error is: "Access is Denied".
>
> NOTE: I hope to be clear explani you my case, if you have any question plese write it.
>
> Could someone help me with some code, steps, online article, etc?.
>
> Thanks in advance,
>
> l-touched

 
Reply With Quote
 
=?Utf-8?B?bC10b3VjaGVk?=
Guest
Posts: n/a
 
      02-06-2004
Tommy, Alvin, both advices were excelent, the problem was sulutioned. Thank you very much to both

Regards!

l-touched
 
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




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