Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


Error Calling Web Service from COM Callable Wrapper

Posted on 2005-03-04
Medium Priority
Last Modified: 2008-02-01
I created a COM Callable Wrapper in VB.net. Within the COM Class, there are 2 public functions:
1. Test() - merely returns a hard-coded string so I can verify connectivity.
2. GetAccountStatus() - Makes a function call to a web service outside my company's network.

I am instantiating the COM object from an ASP page sitting on a Windows 2003 server.  When I call function Test(), it works properly and returns the expected string to the asp page. When I call GetAccountStatus(), I get the following error:

Error. Description: Exception in configuration section handler (c:\windows\microsoft.net\framework\v1.1.4322\Config\machine.config line 91)

The section of code beginning at line 91 of my config file is:

                The following entry enables reading of the per user (LAN) Internet settings.
                Adding additional proxy settings, without first setting to "false",
                will individually override. Note that "Automatic configuration" and
                "automatic configuration scripts" cannot be read.
                <proxy> settings:
                    usesystemdefault="[true|false]" - Read settings from Internet Options (see above)
                    proxyaddress="[string]" - A Uri string of the proxy server to use.
                    bypassonlocal="[true|false]" - Enables bypassing of the proxy for local resources.


            <!-- use this section to disable proxy use for matching servers
                <add address="bypassRegexString" />

            <!-- use this section to override proxy settings with your own IWebProxy implementation
                type="System.Net.WebProxy, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"


Any ideas as to what is causing the problem? I am able to make the calls to the web service from a windows application, but can't seem to do it from the COM object.

To compile the COM object, I do the following:
1. Build the dll locally on my machine within VSS.
2. Copy the dll to the server and run a batch file with the following commands:
          C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\gacutil -i COMTEST3.dll
          C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\regasm /tlb:COMTEST3.tlb COMTEST3.dll

Is there a problem compiling the dll locally?

Question by:knewbranch
  • 2
  • 2

Author Comment

ID: 13479216
Many of the links seem to hint toward a permissions issue on the following registry key:

I gave "Everyone" read access to that key and it did not solve the problem.

Author Comment

ID: 13481345
Figured it out - updated the default proxy element in machine.config to:

LVL 75

Expert Comment

by:Michel Plungjan
ID: 13481581

Post a question in community support
asking for this to be PAQ'd and refunded


Accepted Solution

OzzMod earned 0 total points
ID: 13516714
Closed, 500 points refunded.
Community Support Moderator (Graveyard shift)

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This tutorial demonstrates one way to create an application that runs without any Forms but still has a GUI presence via an Icon in the System Tray. The magic lies in Inheriting from the ApplicationContext Class and passing that to Application.Ru…
I think the Typed DataTable and Typed DataSet are very good options when working with data, but I don't like auto-generated code. First, I create an Abstract Class for my DataTables Common Code.  This class Inherits from DataTable. Also, it can …
Loops Section Overview
Kernel Data Recovery is a renowned Data Recovery solution provider which offers wide range of softwares for both enterprise and home users with its cost-effective solutions. Let's have a quick overview of the journey and data recovery tools range he…
Suggested Courses

564 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question