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

Interop fails with ASP

Hi, I am trying to consume a C# library from ASP through interOP, this
is to read some configuration settings from the machine.config file. But
for some reason the interOP works fine with a VB client but not with
ASP, though ASP can create the instance it fails executing the method.

Would be nice if any of you could help me to figure out whats wrong.

many thanks,

-Manjula
Jul 21 '05 #1
4 1642
Hi Manjula:

Do you see an error message or exception?

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Tue, 01 Mar 2005 17:03:33 +0600, Manjula Dinesh
<sa******@hotmail.com> wrote:
Hi, I am trying to consume a C# library from ASP through interOP, this
is to read some configuration settings from the machine.config file. But
for some reason the interOP works fine with a VB client but not with
ASP, though ASP can create the instance it fails executing the method.

Would be nice if any of you could help me to figure out whats wrong.

many thanks,

-Manjula


Jul 21 '05 #2
The first thing I would do is look at permissions.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Neither a follower nor a lender be.

"Manjula Dinesh" <sa******@hotmail.com> wrote in message
news:42**************@hotmail.com...
Hi, I am trying to consume a C# library from ASP through interOP, this is
to read some configuration settings from the machine.config file. But for
some reason the interOP works fine with a VB client but not with ASP,
though ASP can create the instance it fails executing the method.

Would be nice if any of you could help me to figure out whats wrong.

many thanks,

-Manjula

Jul 21 '05 #3
Hi Scott, its a generic exception like this,

System error '80131902'

Could not create EC.Configuration.ConfigSectionHandler, EC.Configuration

/test/testInterOp.asp, line 7

Anyway this was in Windows 2003, but after some permisison changes it
worked in Windows 2000 Server. Still I am trying to figure out what is
causing in Windows 2003.

Thanks,

-Manjula
Scott Allen wrote:
Hi Manjula:

Do you see an error message or exception?

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Tue, 01 Mar 2005 17:03:33 +0600, Manjula Dinesh
<sa******@hotmail.com> wrote:

Hi, I am trying to consume a C# library from ASP through interOP, this
is to read some configuration settings from the machine.config file. But
for some reason the interOP works fine with a VB client but not with
ASP, though ASP can create the instance it fails executing the method.

Would be nice if any of you could help me to figure out whats wrong.

many thanks,

-Manjula


Jul 21 '05 #4
Yes, that helped, after changing permission settings it worked in
Windows Server 2000, but not yet in Windows 2003, just wondering what I
am missing?

thanks again,

-Manjula
Kevin Spencer wrote:
The first thing I would do is look at permissions.

Jul 21 '05 #5

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

Similar topics

1
by: Nadav | last post by:
Hi, Introduction *************** I have a system build of a collection of 'Native COM objects' and '.NET COM interop' objects, all of the COM objects are managed through a 'Native COM' layer,...
2
by: Ollie | last post by:
I am trying to generate a strong name assembly from the unmanaged DLL for the COM + 1.0 Admin Type Library located in the C:\WINDOWS\system32\Com\comadmin.dll, but when I run the following command...
0
by: Greg Bacon | last post by:
I have two C# projects: a production project and NUnit tests for it. I've recently added a test that causes a call into a registered COM component, and now the test fails with a TypeLoadException...
4
by: Manjula Dinesh | last post by:
Hi, I am trying to consume a C# library from ASP through interOP, this is to read some configuration settings from the machine.config file. But for some reason the interOP works fine with a VB...
6
by: Scott M. Lyon | last post by:
As I mentioned in my other post, I'm attempting to, using COM Interop so I can update existing VB6 code to (for several specific functions) return a Hashtable from a .NET library. I've had...
3
by: Stryker.Ninja | last post by:
First time poster, please be gentle :P I am using a third party ocx control in a C# 2.0 application. The interop seems to be working fine except for events. When I try and attach an event, it...
2
by: Philip Daniels | last post by:
I am doing some work with a client API via COM interop. I have reached the situation where after this call to their API: object someObj = con.Peek(1); "someObj" contains some type of COM...
1
by: Don.Leri | last post by:
Hi, I have a logger.dll (unmanaged c++ dll compiled in vs2005). I have a C# interop to use that dll in managed code implemented in Interfaces.dll (used by other C# dlls). I also have a...
1
by: Bhrionn | last post by:
Hello World, I am working on implementing a build for my companies application. The scenario implemeted is producing the error: ‘Class does not support automation or does not support expected...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.