Category Archives: Uncategorized

Converting Visual Basic to C#

For work I’m having to convert about 1600 lines of Visual Basic code to C#. What this code does is attempt to automate our order processing in a unidirectional fashion: it scrapes Amazon for our latest unshipped orders and generates emails or XML (depending on what the distributor requires on their end) for each order. This is a huge pain because nearly each function of the VB is hard-coded and needs to be reworked. While it shouldn’t be that grueling to rework we’re on a tight deadline to integrate it into our existing C# application so that our new customer service representative can use just a single solution instead of many.

Accessing web service through local network

For work, my current task is to create an iPhone application that consumes an .asmx Web Service. After building a very rudimentary Web Service using Visual Studio 2008, I published it to the local network via IIS (an explanation on that setup if people would like). I wanted to be able to see the Web Service through the network on my Mac. After numerous attempts I discovered all I had to do was just type in the local IP address of the PC on which the service was running, followed by the path in which the file was. For me, this turned out to be: http://192.168.1.147/gcweb/service1.asmx

Imagine my excitement after hours of troubleshooting why the network wouldn’t resolve this IP address and suddenly it just works. Now, imagine my disappointment when I see the following page:

The service is only available from the local machine. After all that time, no payoff. Now I must find a suitable web provider that hosts .NET applications (careful, not every web host is capable of hosting .asmx pages) and go from there.

Hope this helps.