On one night, I let my system download and install MS Platform SDK (~450MB) - I turned it on and woke up in the morning to find it had done it so well.
After some good amount of playing around, I realized I was adding reference to C:\Program Files\Microsoft UDDI SDK\2.0 Beta\Microsoft.Uddi.Sdk.dll instead of the latest from C:\Program Files\Microsoft Platform SDK. This I got to know when I found (or rather did not find!) some class members of microsoft.uddi.
Then, I went through C:\Program Files\Microsoft Platform SDK\Bin\UddiReadMe.htm to "%ProgramFiles%\Microsoft SDK\Bin\UddiSdkRegister" - a utility to get the latest UDDI SDK listed in the MS VS.Net Global Cache of references of assemblies. Mind you - run this from VS.Net command prompt - else it says gacutil.exe is not added to path.
Created a C# Console application to find no. of business listed on UBR:
//establish connection to UDDI server for inquiry
UddiConnection uc = new UddiConnection();
uc.InquireUrl = "http://uddi.microsoft.com/inquire";
//create an onject to find a business
FindBusiness fb = new FindBusiness();
fb.Names.Add("Microsoft");
//send the prepared find business request
BusinessList bizList = fb.Send(uc);
Console.WriteLine("Businesses found=" + bizList.BusinessInfos.Count.ToString());
Then, this is what I get:
---------------------------
Error
---------------------------
The underlying connection was closed: Unable to connect to the remote server.
---------------------------
OK
---------------------------
Tried some things on the references to this error at
http://support.microsoft.com/kb/819692/
http://weblogs.asp.net/tmarman/archive/2003/04/06/4948.aspx
But what really helped me was this one:
http://geekswithblogs.net/ranganh/archive/2005/08/29/51474.aspx
Found machine.config file at C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\CONFIG
Made changes like this at a portion which gives you instructions to add your custom settings for
>defaultProxy<
>system.net<
bypassonlocal="false"/>
>/system.net<
>/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.
use this section to disable proxy use for matching servers
example:
>bypasslist<
>/bypasslist<
Voila - I got the result:
C:\Documents and Settings\machanis\My Documents\Visual Studio Projects\ConsoleApplication1\bin\Debug>ConsoleApplication1.exe
Businesses found=18
Don't you see I'm having fun in crumbling, faltering, getting lost, hanging on to the ropes and - then getting upto this point??!! :-)
No comments:
Post a Comment