System.ArgumentException: Absolute path information is required.

You have a .NET 2.0 control hosted in a browser.  The control uses the System.Uri class.  When upgrading to .NET 2.0 SP1 you can get an error: System.ArgumentException: Absolute path information is required. Four conditions must exist for this to happen: 1. Using the 2.0 Framework SP12. Control uses the System.Uri class3. Uri class passed a URI that…

0

CHttpServer not included in Visual Studio 2008

CHttpServer and CHttpFilter are not included in Visual Studio 2008.  You will get error messages such as: fatal error RC1015: cannot open include file ‘afxisapi.rc’ fatal error C1083: Cannot open include file: ‘afxisapi.h’: No such file or directory.  You have to convert your projects to straight ISAPI API calls or come up with some other scheme…

0

400 Error from WebService using .NET 2.0 and PreAuthenticate

Prashant from my team found this interesting issue.  I will blog it here until the KB comes out on this. Problem======WebService server responds back with a HTTP 400 error when using PreAuthenticate on the WebServiceProxy class.  This results in a System.Net.WebException: “The request failed with HTTP status 400: Bad Request” Symptoms=============================Consuming a WebService that uses Basic Authentication…

3

ATLServer class CSoapSocketClientT cannot handle greater than 2048 bytes in response

UPDATE: Replace ATLServer with WWSAPI! Windows Web Services API Client code walkthrough  Using the following code: CoInitialize (NULL);CServiceT <CSoapSocketClientT<>> * myclient = new CServiceT<CSoapSocketClientT<>>; //socket client BSTR results;HRESULT hr = myclient->BigString(1024*32,&results);  The hr value was E_FAIL.   This is because the Socket Based class cannot handle a return buffer bigger than 2K. The solution is to…

0

How to Send SOAP call using MSXML (replace STK)

I know… This is a simple thing, but there is no documentation on it so here it is: UPDATE:  You can now use Windows Webservica API (WWSAPI) to create native code WebService calls! The SoapToolkit (STK) is out of support.  So what if you need to make a SOAP call in VB 6 or scripting? …

1

How To: Close the Form hosting the WebBrowser control when scripting calls window.close in the .Net Framework version 2.0

By design the WebBrowser Control does not close the parent Form when WebBrowser Control is closed.  Here is one way you can accomplish this. The WebBrowser will send a WM_NOTIFYPARENT notification that can be captured and an event raised that a host can respond to. Here is the documentation on the WM_NOTIFYPARENT notification:  http://msdn2.microsoft.com/en-us/library/ms632638.aspx In…

3

How To: Capture the NewWindow2 Event from a Managed WebBrowser Control

The articles referenced in my post Internet Explorer WebBrowser Control loses state… discusses sinking this event by adding an unmanaged version of the WebBrowser control to your Form and using that.  But what if you want to use the Managed version?  The manged version of the WebBrowser control is really a wrapper around the unmanaged…

2

Extra Characters (/r/n) when Converting MFC ISAPI under VS 2005

When you convert an MFC ISAPI project you created in an early version of Visual Studio to MFC 8 (VS 2005) you may notice that there is an extra set of carriage return linefeed characters.  This will be true if your code does not add a header to the return stream.  You can see this if…

0