473,326 Members | 2,125 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,326 software developers and data experts.

Trouble in instantitating the COM in web servcie

Hi Everybody,

I designed a com controller and i'm calling the com component from the
webservice. It works perfectly in windows 2000. But it throws error in
Windows 2003 during the instantiation of the COM component.
The error is

System.UnauthorizedAccessException: Access is denied. at
System.RuntimeType.CreateInstanceImpl(Boolean publicOnly) at
System.Activator.CreateInstance(Type type, Boolean nonPublic) at
ACDR.Service1.InvokeDiadem(String strJobId, String strRequestor, String
strType, String strTestName, String strRunNumber, String strFileName)

Please help....

Thanks,
Raj

Dec 27 '05 #1
2 1044
Did you check if the ASP.Net account had been added to Administrators group.

The com may use some methodes need admin privilege.

And if it still doesn't work, you can try impersonate with a specified
account to lauch web app.
config impersonate parameter in you web.config file

<hi******@gmail.com> wrote in message
news:11*********************@z14g2000cwz.googlegro ups.com...
Hi Everybody,

I designed a com controller and i'm calling the com component from the
webservice. It works perfectly in windows 2000. But it throws error in
Windows 2003 during the instantiation of the COM component.
The error is

System.UnauthorizedAccessException: Access is denied. at
System.RuntimeType.CreateInstanceImpl(Boolean publicOnly) at
System.Activator.CreateInstance(Type type, Boolean nonPublic) at
ACDR.Service1.InvokeDiadem(String strJobId, String strRequestor, String
strType, String strTestName, String strRunNumber, String strFileName)

Please help....

Thanks,
Raj

Dec 27 '05 #2
This is actually a really bad idea. Placing the ASPNET user in the
administrators group basically means that any code that runs on the web
server under default ASP.NET settings is going to have administrative
rights.

That's a disaster waiting to happen.

Rather, impersonate with a specified account in the web.config file, or
register the COM component in a COM+ application, indicating the account it
should run under, and then access from ASP.NET.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Seraph Jiang" <Se*********@gmail.com> wrote in message
news:Oq*****************@TK2MSFTNGP10.phx.gbl...
Did you check if the ASP.Net account had been added to Administrators
group.

The com may use some methodes need admin privilege.

And if it still doesn't work, you can try impersonate with a specified
account to lauch web app.
config impersonate parameter in you web.config file

<hi******@gmail.com> wrote in message
news:11*********************@z14g2000cwz.googlegro ups.com...
Hi Everybody,

I designed a com controller and i'm calling the com component from the
webservice. It works perfectly in windows 2000. But it throws error in
Windows 2003 during the instantiation of the COM component.
The error is

System.UnauthorizedAccessException: Access is denied. at
System.RuntimeType.CreateInstanceImpl(Boolean publicOnly) at
System.Activator.CreateInstance(Type type, Boolean nonPublic) at
ACDR.Service1.InvokeDiadem(String strJobId, String strRequestor, String
strType, String strTestName, String strRunNumber, String strFileName)

Please help....

Thanks,
Raj


Dec 28 '05 #3

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

Similar topics

2
by: James | last post by:
Hi I am having some trouble getting a asp page to load. Im a noob to the asp side. I have followed knowledege base Article 301305. I am running 2000 adv, IIS 5.0 I have the following...
4
by: Jacek Dziedzic | last post by:
Hi! First of all, I hope my problem is not too loosely tied to the "standard C++" that is the topic of this group. I have some code that exhibits a strange behaviour: on one computer, where I...
0
by: Paul C | last post by:
Hello, everybody. I am having trouble running some of the VS.NET samples, specifically the CarSelector web app, which is very simple. The symptom is that the web controls (drop down listboxes and...
0
by: Alexandre Jaquet | last post by:
Hi does anybody know how to solve my trouble, when I try to create a MS Office project I always got trouble. I can't create office project when I try to create one vs.net restart ... :s
1
by: Jim Bancroft | last post by:
Hi everyone, I'm running into a problem with my ASP.Net application. I've just created a new aspx page which uses some new components of mine that inherit from ServicedComponent and are...
6
by: Daniel Walzenbach | last post by:
Hi, I have a web application which sometimes throws an “out of memory” exception. To get an idea what happens I traced some values using performance monitor and got the following values (for...
3
by: Olivier BESSON | last post by:
Hello, I have a web service of my own on a server (vb.net). I must declare it with SoapRpcMethod to be used with JAVA. This is a simple exemple method of my vb source : ...
2
by: sdrouins | last post by:
Hello, I had a really weird problem that occured on one of our site. (occur 2 times in 3 years) The client 1 have fill the form1 and submit it, for some reason the page was postback to the...
2
by: JLupear | last post by:
I am having trouble with my code again, I had prepared a question and the code to upload, however I am having trouble posting it, are there limits to the amount of lines you can post? I split it...
0
by: mrchatgroup | last post by:
news from http://www.mrchat.net/myblog/myblog/small-accidents-mean-big-trouble-for-supercollider.html Small Accidents Mean Big Trouble for Supercollider Image Scientists expect startup...
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...
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: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
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: Shllpp 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
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.