?
Solved

Error Calling Web Service from COM Callable Wrapper

Posted on 2005-03-04
6
Medium Priority
?
387 Views
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:
        <defaultProxy>

            <!--
                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.
             -->

            <proxy
                usesystemdefault="true"
            />

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

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

        </defaultProxy>

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?

Thanks!
0
Comment
Question by:knewbranch
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
6 Comments
 

Author Comment

by:knewbranch
ID: 13479216
Many of the links seem to hint toward a permissions issue on the following registry key:
HKCU\Software\Microsoft\Window­s\CurrentVersion\Internet
Settings\Connections

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

Author Comment

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

<defaultProxy>
<proxy
usesystemdefault="false"
proxyaddress=""
bypassonlocal="true"
/>
</defaultProxy>
0
 
LVL 75

Expert Comment

by:Michel Plungjan
ID: 13481581
Excellent..

Post a question in community support
http://www.experts-exchange.com/Community_Support/
asking for this to be PAQ'd and refunded

Thanks
Michel
0
 

Accepted Solution

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

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Introduction When many people think of the WebBrowser (http://msdn.microsoft.com/en-us/library/2te2y1x6%28v=VS.85%29.aspx) control, they immediately think of a control which allows the viewing and navigation of web pages. While this is true, it's a…
Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …

771 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