Wednesday, May 18, 2005

Visual Studio 2005 Beta 1 to Beta 2 Upgrade

I thought I would document my upgrade issues and post them for anyone they might help. Some noteworthy things. I did a complete reinstall on a system (fresh OS) then installed Office, Visual Studio 2003, and a few other tools. I then copied my VS beta 1 code to the new system and tried did the following:




  1. Find and Replace on all files in solution CompileWith to CodeFile

  2. Find and Replace on all files in solution - ClassName to Inherits

  3. Recopy any .js files as some had "ClassName" text in them.

  4. I had used the namespace System.Xml.Query which was removed. Specifically, I had made an XmlCommand to do a transformation. I had to rework it using the System.Xml.Xsl.XslTransformation class. I found the article "Transforming an XML string with an XSLT string" by Robert Levy helpful. I will post my completed method later.

  5. System.Configuration.ConfigurationSettings.ConnectionStrings seems to have disappeared. Not only that, but I get a bunch of warnings that I should be using ConfigurationManager instead. Only downside? Where IS the ConfigurationManager (not in System.Configuration!)?

  6. I had a case where one of my web services wouldn't compile with the error: Could not create type 'service name'. As it turns out, I had to move the code behind file into a new directory named App_Code. The errors showed one at a time, but I eventually had to move all code behind files to the App_Code directory (and update the asmx files to point to the App_Code directory).

  7. I also had to change an attribute of the WebServiceBindings class from ConformanceClaims to ConformsTo and the attribute value to WsiProfiles.BasicProfile1_1.




That's it.

No comments: