473,321 Members | 1,667 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,321 software developers and data experts.

Problems:: ASP.NET & COM+

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
Nov 18 '05 #1
3 1050
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" <an*******@discussions.microsoft.com> wrote in message
news:0E**********************************@microsof t.com...
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

Nov 18 '05 #2
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 <an*******@discussions.microsoft.com> wrote in message news:<0E**********************************@microso ft.com>...
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

Nov 18 '05 #3
Tommy, Alvin, both advices were excelent, the problem was sulutioned. Thank you very much to both

Regards!

l-touched
Nov 18 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Michael Fork | last post by:
Note: I pasted the code the attachments as plain text after the message (I wasn't able to post it with an attachment...) Attached are the XSL and XML files that I am having problems with. I am...
9
by: Francesco Moi | last post by:
Hello. I'm trying to build a RSS feed for my website. It starts: ----------------//--------------------- <?xml version="1.0" encoding="ISO-8859-1"?> <!DOCTYPE rss PUBLIC "-//Netscape...
1
by: Eric | last post by:
I am trying to figure out a good way to implement a XSLT transformation. Basically my goal is that I want to be able to ouput the following XML in a document: <chart type="pie" width="100"...
14
by: Arne | last post by:
A lot of Firefox users I know, says they have problems with validation where the ampersand sign has to be written as &amp; to be valid. I don't have Firefox my self and don't wont to install it only...
0
by: Hamayun Khan | last post by:
Hi I m developing site for my client using asp.net 2.0. He asked me for URL rewriting. which I have done using Intelligencia.UrlRewriter.RewriterHttpModule rewriting module. I write the...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.