Sunday, May 01, 2005

I had two problems calling web services with a VS2005 app that I moved from Beta1 (Feb CTP) to Beta2.

I have a client asp.net and a web service app. Both are running on a file based web server, not IIS.

The web service was functioning properly when I ran it directly, but not when I tried to call it from the client app.

Problem #1: Web Server Port #
Error: "No connection could be made because the target machine actively refused it."

When you set a web reference to a web service, the port number currently associated with that web service is embedded into the web.config file inside of the <app settings> section.

<add key="localhost.Service" value="http://localhost:1719/MyServices/ServiceFoo.asmx"/>

I had mucked around with moving my files around enough that the saved port number was still in my web.config, but the computer had assigned a new port.

You can edit the web.config to identify the correct port number or just remove and readd the web reference which will update the web.config for you.

Problem #2: Authentication problem
Error: "The request failed with HTTP status 401: Unauthorized."

This threw me because I was not using IIS and that is such an IIS message. I had an inkling that it was because I had been trying to run vs2005 as a non-admin and I had messing with folder permissions, file sharing, etc. After hours and hours of googling to no avail, I finally noticed the new "NTLM Authentication" setting in the [still very unfamiliar feeling] property pages for the web projects (Start Options). I crossed my fingers and turned off the NTLM Authentication on the web service project, and my problem disappeared.

I believe that this might be related to something that I found listed in the VS Known Issues doc for Beta 2. There was a reference to getting 401's when doing unit tests in asp.net and the workaround suggested is to remove the credentials.

I hope my pain and suffering saves someone else from wasting a Sunday afternoon. :-)



http://www.AcehAid.org
Sunday, May 01, 2005 4:10:56 PM (Eastern Standard Time, UTC-05:00)  #     |  Comments [0]  | 

Although you can now output DataTables from web services in .NET 2.0, there is still a problem when trying to consume them using a web reference in a client project in VS2005. (I know there are plenty of people who think this is evil anyway...)

The problem is apparently in the proxy generation.

Here is the code from the web service:

The web service functions perfectly well.

But when trying to code up the client app to consume this, it does not recognize that the function is returning a DataTable. Instead it has cobbled some of the proxy info together by mistake.

I did submit this but thought I would put it here in case someone else ran into it and thought they were doing something wrong. This worked for me up until one of the recent CTPs where it seemed to be broken.

Sunday, May 01, 2005 9:58:13 AM (Eastern Standard Time, UTC-05:00)  #     |  Comments [0]  | 
 Saturday, April 30, 2005
I have looked at the benefits of the Load method on DataTables and DataSets that is in ADO.NET 2.0 in an article and a presentation that I have been having fun doing lately. Bill Vaughn gets really granular with the feature and proposes and interesting idea...

http://www.AcehAid.org
Saturday, April 30, 2005 8:18:19 PM (Eastern Standard Time, UTC-05:00)  #     |  Comments [0]  | 
Day of .NET #6 in Chicago was today and so was Code Camp Charlotte. Next Saturday there is the Southern California .NET Technical Summit in L.A. and a Code Camp in D.C. Thom Robbins just announced plans for a Code Camp in NYC. There have reacently been ones in Philadelphia and North Carolina and they just seem to keep coming. I have been trying to list as many upcoming events as I can find out about in the INETA Newsletters. Definitely be sure I know if you have one coming up. It doesn't have to be in the U.S. or Canada even.

http://www.AcehAid.org
Saturday, April 30, 2005 4:51:45 PM (Eastern Standard Time, UTC-05:00)  #     |  Comments [0]  | 
 Friday, April 29, 2005

Last week I bought a new machine for my Whidbey testing. It was a total steal. It arrived by UPS while I was gone today but had to be signed for. But the driver was enormously kind to leave his cell phone # and luckily he was still in my neck of the boonies so I was able to hook up with him and get my new computer. Luckily it will be raining a lot this weekend and I will replace my old tired box that is still chugging away with Beta2 with this speedy little guy.



http://www.AcehAid.org
Friday, April 29, 2005 4:35:16 PM (Eastern Standard Time, UTC-05:00)  #     |  Comments [0]  | 
There are a few seat left at the Devscovery 3 day conference that I am really looking forward to going as an attendee. It is in Washington DC next Tuesday - Thursday. The whole 3 days is instruction by Wintellects Jeff Prosise, John Robbins, Jeffrey Richter, Peter DeBetta and Richard Hundhausen. Although the conference is already a steal at $900, I can tell you how to get another $100 off if you are thinking about going at the last minute!

http://www.AcehAid.org
Friday, April 29, 2005 4:31:15 PM (Eastern Standard Time, UTC-05:00)  #     |  Comments [0]  | 

Wow! This is great news. Andrew Duthie reports that there are only 25 seats left for next Saturday's Mid-Atlantic Code Camp!!

Register quick if you haven't yet and want to go!!



http://www.AcehAid.org
Friday, April 29, 2005 9:45:07 AM (Eastern Standard Time, UTC-05:00)  #     |  Comments [0]  | 
 Wednesday, April 27, 2005

So I received my first CodeZone user group kit today. This is the one that goes to user group leaders. All of the digital content can also be downloaded by user group members who have signed up. In addition to digital content there are three books: O'Reilly's .NET Compact Framework Pocket Guide, MS Press ASP.NET Mobile Devices and MS Press .NET Compact Framework.

The very first thing I  thought of when seeing this was all of the people who are saying "CodeZone is out to replace INETA." This box is very different from the INETA swag mailings and I see no cross over here at all.

The whole thing is geared towards Mobile Development. The production quality of the materials is astounding and a almost a little frightening. MS EMEA outsourced the development of a full blown mobile application to a few development shops which are promoted in the little accompanying booklet in a way that actually looks like magazine ads - but that's fair, we all deserve recognition for our work.. However the fact that they are in the front of the booklet is actually very confusing and perhaps they should be put in the back. There is even a CompuWare ad on the back. The binder that it all comes in is super duper guper slick - but is generic enough to be reused for all of the CodeZone user group kits. Yes, the green girl is in there. I guess I'm not really the target market for this marketing effort - I have to say that the design doesn't really appeal to me, but as 40+ female, I am such a teeny little slice of the demographics - so I don't have a problem with that at all. I'm just a different kind of "hip". tee hee

So that was my first impression. I KNOW that the whole thing is really geared towards getting developers really excited about doing mobile development (translation: there is not enough going on yet) and presenting a fantastic sample solution that not only is chock full of great code, but an app that I will assume has great architecture ideas as well as the business analysis that went into the solution.

The kit contains 3 cds. One is the Mobile Development SDK, another is a compilation of webcasts, demos, powerpoints etc and the last is the WeRock sample application - emblazoned with the slick graphics. It sure doesn't look like a disc from the MSDN Universal Subscription!! :-)

So I think what I will do is give away the entire kit to one lucky person in the group. However, I have that worry of raffling it off and someone who is not so interested winning it and then putting it on a shelf. Usually a good solution for that is having a bunch of things for raffle winners to choose from.

In the meantime, it will be a good vehicle for me to promote CodeZone at the meeting although right now that is the only value for *this* codezone site. Downloading the digital portion of the kit. In the future it will be a lot more.



http://www.AcehAid.org
Wednesday, April 27, 2005 10:28:22 AM (Eastern Standard Time, UTC-05:00)  #     |  Comments [0]  | 
 Monday, April 25, 2005

I guess this is the definition of a geek vacation, but I much prefer Dave Burke's idea of a vacation!!

Next week I will be going to Washington D.C. for a variety of things. First I am going to get a Wintellect brain infusion at Devscovery. That will be 3 days of intense learning with John Robbins, Jeff Prosise, Jeffrey Richter (I wonder if Sara has warned him that I'm coming. Maybe I'll wear an "I Love VB" shirt. ;-) ) and some of the other Wintellects.

Then I get a day of rest with the Duthies and hopefully some real old-fashioned sightseeing! The next day (Saturday) is the Mid Atlantic Code Camp which I am sticking around for and was happy that the locals are letting me do some talks. I'm really looking forward to seeing some of my D.C. friends like Scott Lock and finally meeting Sahil Malek, Bill Ryan (unless he decides to go to Hooters or something) and some others that I have never met in person. If I'm super lucky, I'll aslo get a chance to see some of my non-geek friends I haven't seen in a while!

The line up looks awesome and there is also going to be a full day SOA track where they build an app. Heck, I'd almost skip my own talks for that! (Just kidding - I wouldn't really do that).

YOu can register for Mid-Atlantic Code Camp here. It's free and there's still room!!



Posted from BLInk!
Monday, April 25, 2005 1:32:12 PM (Eastern Standard Time, UTC-05:00)  #     |  Comments [0]  | 

I have been struggling with a printer jamming problem for months. I even spent $400 on getting it repaired (it's one of those big honkin' LaserJet network printers) and still the paper was jamming.

I have had the printer for 10 years and have *always* used plain copy paper. For the past 6 or so it has generally been Staples brand copy paper.

I finally gave in and bought some multi-use paper. It costs more than twice as much and the legal size, which I have to use a lot of, seems to have no options except for one brand ($$ Hammermill) that we found at Staples. (I will do some further searches for that on the web) The jamming problem seems to be much relieved.

However, I was on the phone with a client who had been having the same problem and after many many visits from their repair guy, they finally started questioning the Staples copy paper that they have had no problems with for years. They ended up on the phone with Staples who apparently admitted that (this is just second hand and I could be incorrect on that statement) the paper had degraded and gave my client credit for their recent purchases.

That is annoying. I wasted hours and hours and hours dealing with the jamming problems and $400 too!



http://www.AcehAid.org
Monday, April 25, 2005 10:07:23 AM (Eastern Standard Time, UTC-05:00)  #     |  Comments [0]  | 
 Sunday, April 24, 2005

I just gave in and bought a new machine JUST for testing. It is faster than my regular development machine at 3.2 ghz, is a P4 and comes with 1 gig of ram already. They just kept slapping all of these discounts on ($50 off on any Optiplex between $400-$500 and $50 any GX270 or SX280) and the whole thing was under $400, no tax, free shipping. Not too shabby. It is going to replace my current left over test box that is 700mhz and has 512 mb ram (and runs Whidbey Beta2 and SQL Server 2005 Developer perfectly fine thank you very much!!) It was definitely a satisfying purchase!



http://www.AcehAid.org
Sunday, April 24, 2005 8:08:33 PM (Eastern Standard Time, UTC-05:00)  #     |  Comments [0]  | 

Anyone catch this in Chris Sells' post about the 2.0 version of his Windows Forms book?

we're not updating the VB.NET version due to poor sales for VB.NET-related titles in general

That is a shocker to me - that VB.NET books are selling less than C#. I wouldn't have expected it.



http://www.AcehAid.org
Sunday, April 24, 2005 12:31:56 PM (Eastern Standard Time, UTC-05:00)  #     |  Comments [0]  | 
 Saturday, April 23, 2005

Wally and I have been keen on ensuring that SqlDependency - which was pretty tricky to get working when I was first learning about it- still works. Of course it does! :-) I have a handful of SqlDependency demos in my ADO.NET 2.0 talk that worked just great with the Feb CTP bits (after a lot of figgerin' and head scratchin'). I only happen to have fired one of them up so far with Beta2.

The only change I noticed so far was that the OnChanged event is now called OnChange. (You will get a compile error message that says OnChanged is not a member of SqlClient.)

So other than that, my code that worked in Beta1 Feb CTP Bits remains the same and works charmingly.

In SQL Server 2005 the Service Broker is still not enabled out of the box on databases. So you have to remember to enable it with: ALTER DATABASE AdventureWorks SET ENABLE_BROKER

I also noticed something funny but then it went away. In SQL Server Management Studio, my tables first were listed as Contact (Person), Employee (HumanResources), etc. But then after closing it and opening it again, they went back to Person.Contact and HumanResources.Employee. I don't think I changed anything, so I'm not sure what was up with that but will keep an eye out for it.



http://www.AcehAid.org
Saturday, April 23, 2005 10:32:17 PM (Eastern Standard Time, UTC-05:00)  #     |  Comments [0]  | 
And now it is time to run through all of my demos and sample code that I have created on previous bits....

http://www.AcehAid.org
Saturday, April 23, 2005 4:21:16 PM (Eastern Standard Time, UTC-05:00)  #     |  Comments [0]  | 

According to this article based on research commissioned by Hewlett Packard, emails do more damage to our IQ's than weed!

"The constant interruptions reduce productivity and leave people feeling tired and lethargic, according to a survey carried out by TNS Research and commissioned by Hewlett Packard."

Watch for new legislation to outlaw email!



http://www.AcehAid.org
Saturday, April 23, 2005 3:54:57 PM (Eastern Standard Time, UTC-05:00)  #     |  Comments [0]  | 
 Friday, April 22, 2005

I am watching the webcast from the Toronto VB User Group's presentation of Pocket Build, their entry into the Canadian Inter User Group Competition. The task was to improve the quality of a developer's life. TVBUG came up with an amazing application to alert developers of build issues remotely. Not only does the app blow me away, but the presentation and the depth that they went to is amazing. It is a thoroughly designed and planned application. I just can't get over that they put togehter such a professional project.

More details and all of the links to the webcasts are here, on Sasha Krsmanovic's blog. Sorry I forgot this link earlier!!

I haven't watched the others yet, but apparently they were all very high quality, though everyone agreed that TVBug's had to be the winner.

Congrats to everyone.



http://www.AcehAid.org
Friday, April 22, 2005 3:42:44 PM (Eastern Standard Time, UTC-05:00)  #     |  Comments [0]  | 
Malek Kemmou, will no longer be "the guy from Casablanc" among us as he moves to Istanbul tomorrow (as a new Microsoft employee). Yesterday Stephen wrote about some departing shenanigans that I'm sure he strong-armed Malek into ;-) and today Malek gives us a beautiful poem about leaving the city he has grown up in. I look forward to the day that Malek can introduce me to both Casablanca and Istanbul.

http://www.AcehAid.org
Friday, April 22, 2005 2:18:09 PM (Eastern Standard Time, UTC-05:00)  #     |  Comments [0]  | 
Friday, April 22, 2005 10:15:23 AM (Eastern Standard Time, UTC-05:00)  #     |  Comments [0]  | 

I totally repaved my Whidbey test box with the intention of using Norton Ghost to create an image of a completely fresh machine before I install the beta 2 bits on it. The last step of the process is to install Ghost and it gives me the message:

"To run Norton Ghost, you must first install Microsoft .NET Framework 1.1"

There goes my pure and clean machine! I'll have to install .NET 1.1 and then uninstall it after I make my backup. Darn!



http://www.AcehAid.org
Friday, April 22, 2005 10:12:58 AM (Eastern Standard Time, UTC-05:00)  #     |  Comments [0]  |