473,662 Members | 2,596 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1650
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******@hotma il.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******@hotma il.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.Configuratio n.ConfigSection Handler, EC.Configuratio n

/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******@hotma il.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
1993
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, this layer manage the underlying COM Objects and upon request, provide a pointer to those objects to the 'API Consumer', following is an illustration of the system: API Consumer ( Native C++/C# ) || ******************************************* * ...
2
3925
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 it fails.... C:\work\BillAnalyser\Bin>tlbimp.exe comadmin.dll /delaysign /publickey:C:\work\key\billanalyser.snk /out:Fb.Interop.ComAdmin.dll It fails saying 'TlbImp error: System.Runtime.InteropServices.COMException -
0
1735
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 when it tries to load the interop assembly. However, when I use the TestDriven.NET addin -- run via either Debugger or In-Proc -- the test runs fine. In trying to get a better idea of the problem, I found Suzanne Cook's blog. I tried...
4
1214
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 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
6
13407
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 very little luck processing the Hashtable itself in VB6 (I can add a reference to the project so it knows what a Hashtable is, but I'm not having much luck looping through all objects in the Hashtable), so I decided to try a different idea.
3
5047
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 only succeeds for one event at a time. Examples: // works by itself OCXClass.Event1 += new OCXClass.EventHandler(Event1_Sub); // second call fails
2
1672
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 object (shows type as System.__COMObject). I have no idea what someObj is, but it is likely to be some sort of wrapper around an image : con.Peek(1) is ultimately retrieving a
1
4557
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 number of other C# dlls referencing Interfaces.dll and using logger.dll interop for logging.
1
5217
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 interface' when I try to run the RegFree COM interop application from a clients machine. The application works fine for all development machines when run locally or from the network. The application is run from the network so - the component is not...
0
8435
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8345
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8857
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8768
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8547
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7368
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4181
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
1999
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1754
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.