Problems:: ASP.NET & COM+

G

Guest

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
 
A

Alvin Bruney [MVP]

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 said:
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".
 
T

Tommy

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 said:
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
 
G

Guest

Tommy, Alvin, both advices were excelent, the problem was sulutioned. Thank you very much to both

Regards!

l-touched
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,770
Messages
2,569,584
Members
45,076
Latest member
OrderKetoBeez

Latest Threads

Top