Forum Discussion

Len_Chilicki_54's avatar
Len_Chilicki_54
Icon for Nimbostratus rankNimbostratus
Nov 29, 2006

Add Web Reference to ASP.NET 2.0 Application

I am developing a ASP.NET application on Visual Studio 2005 Express and need to use the iControl Web Service on a Series 1500 at v9.1.1.

 

 

I create a Web Project, then select Add Web Reference and enter the following url in the URL DropDownBox:

 

https://192.168.1.198/iControl/iControlPortal.cgi.

 

When I select Go, the following events occur.

 

I am prompted several times for Username and Password, during the process, a message tells me that this is not a known trusted certificate. After the authentication process has completed, the following message is displayed in the Web Services found at URL: Textbox.

 

 

There was an error downloading 'https://192.168.1.198/iControl/iControlPortal.cgi'.

 

The underlying connection was closed: An unexpected error occurred on a receive.

 

m_safeCertContext is an invalid handle.

 

 

However, the Service Description and methods are displayed. If I select one I get the following message:

 

Unable to cast COM object of type 'System.__ComObject' to interface type 'EnvDTE.IVsExtensibility'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{3C536122-57B1-46DE-AB34-ACC524140093}' failed due to the following error: No such interface supported

 

 

I then login to the LTM and create a certicicate with the name 192.168.1.198 and load this certificate as a trusted store during the authentication process.The process proceeds without warning. I enter the url, select go and the following message is displayed in the Web Service found at URL: Textbox.

 

 

The HTML document does not contain Web service discovery information.

 

 

The Service Descriptions were displayed as above and whne I select one, I get the same "No such interface supported" message as before.

 

 

Has anyone been able to add a Web Reference to an ASP.NET Project?

 

Is my URL correct?

 

Any suggestions?

2 Replies

  • We've had this issue reported before and I believe it has to do with a bug in the "Express" versions of .NET not allowing web references to be created to ssl based web services. We haven't seen this issue with the full blow versions.

     

     

    You can try these work-arounds.

     

     

    1. Open a browser and connect to the iControl portal link you included. After it authenticates, it will supply a list of links to the available WSDL files. Copy the direct link to the interface you want to add and then try your procedure again with the direct URL (ie. http://192.168.1.198/iControl/iControlPortal.cgi?WSDL=LocalLB.Pool ) bypassing the iControl Portals WSDL listing.

     

     

    If this doesn't work...

     

     

    2. download the SDK

     

    2a. open a visual studio command prompt window

     

    2b. change directories to the sdk_root/sdk/wsdl directory

     

    2c. Run wsdl.exe on the WSDL for the interface you are interested in.

     

    2c. copy the generated .cs or .vb file to your project and select add existing item.

     

     

    This is essentially what the web reference does but this is the manual step. Take a look at all the .NET samples in the iControl SDK as references as this is how they do it. There is a directory in each project with a batch file to compile the appropriate wsdl files for the respective projects.

     

     

    Let me know if this works out...

     

     

    -Joe
  • Joe,

     

    Sorry for the delay in my response, but I had to put this on hold.

     

    Your suggestion did work.

     

    Thanks,

     

    Len