Showing posts with label Visual Studio Team Suite. Show all posts
Showing posts with label Visual Studio Team Suite. Show all posts

Tuesday, February 05, 2008

70-504: Windows Workflow Foundation 3.5

Part of working in the Solutions Team for Quick Solutions, Inc., is that we get special offers for all kind of Microsoft stuff. The latest one was an invitation to participate in the Beta Test for the exam 70-504- MS .Net Framework 3.5 Windows Workflow Foundation.

In order to study for this beta test I have to install vs2008.

Microsoft Visual Studio Team System 2008 Setup

Since I am not doing any C++ programming, I decided not to install any of the C++ components. By unselecting it, I saved almost 2GB in space...!! However, when I open Studio 2008 for the first time, I've got this error:

Package Load Failure

Package Load Failure

Package 'Visual C++ Resource Editor Package' has failed to load properly ( GUID = {74AAD8B2-3294-49CB-BB5D-E9BAB132BFD5} ). Please contact package vendor for assistance. Application restart is recommended, due to possible environment corruption. Would you like to disable loading this package in the future? You may use 'devenv /resetskippkgs' to re-enable package loading.

Selecting Yes, got rid of this dialog box. Now I went and try to create a sequential workflow application, and this is what I got:

Error Loading workflow .NET 3.5

An error occurred while loading the workflow. Please correct the following error and try reloading the document to view the workflow.

The designer could not be shown for this file because none of the the classes within it can be designed.

Using my 2nd brain, aka Google, I came across a lot of other post relating to this error, but none of them applied to my configuration. My configuration is Vista x64, with BizTalk 2006 R2, and Visual Studio 2005 Team System installed. I have installed the SDK for .NET 3.0 some time ago.

I can create workflow projects in 2005. However, using the .NET 3.5 does not seems to work.

image

When I compare both projects VS2005 and VS2008, the only differences I've found is that the 2008 reference these assemblies: System.WorkflowServices .Net 3.5, and the System.ServiceModel. The new assembly points to this location:

c:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\v3.5\System.WorkflowServices.dll

Then I started to dig out more information on the Event Logs. Then I found the culprit:

The Windows update "Update for Windows (KB929300)" was successfully installed. (Command line: ""C:\Windows\system32\WUSA.exe" "e:\setup\..\wcu\dotnetframework\dotnetmsp\x64\NetFX3.0-KB929300-v6000-x64.msu" /quiet /norestart")

It seems that after the setup has finished installing, it needed to reboot my machine. However, the /quiet and the /norestart flags did not report anything back to me. So I did not know I had to reboot for the workflow application 3.5 to work.

Now I can get back to reading Pro WF Windows Workflow in .NET 3.0, and try to run some samples out of the SDK before my test.

Sunday, January 20, 2008

Agile methodologies and Spelling bee?

Yes, I am the proud father of a little walking dictionary. My oldest son qualified to be part of the team that might be representing his school to compete against other schools for the Scripps National Spelling Bee Competition. Now, how do you study those 870+ words needed for the competition with a 11-year-old whose parent's first language is not English?...

Geek time.! I have an old iPaq 5555 that is pretty much sitting collecting dust. So I decided to write a program that will allow him to practice those words. A pocketPC seems to be the perfect platform for it, since it has built-in support for hand-writing and sound. So it is like having an interactive flash card.

My idea is to have the word being pronounced by a native speaker, and then have him write the word. This is my first take on this idea:

image

I also put a show button for studying/reviewing. So that as he moves around the list of words, not only he can click on the PLAY button and hear it, but he will be able to see: language, definition, sample use.

One of the trickiest part of the program was getting it to play those wave files.! Yeah. My Google skills are either fading out, or there was not that many people writing media applications for the pocketPC. :( I have to admit it took me longer that I expected to find the right information.

Here is the link to MSDN to the article that I use http://msdn2.microsoft.com/en-us/library/ms229685.aspx

Basically, it uses the CoreDll.dll library to accomplish this

[DllImport("CoreDll.DLL", EntryPoint="PlaySound", SetLastError=true)]
private extern static int WCE_PlaySound(string szSound, IntPtr hMod, int flags);

In true agile fashion, I have written the alpha 1.0 and tested it with my *end user*. Feedback is always good when you are writing an application with so little requirements. This version 1.0 is very crude, but it accomplishes the primary objective. Now while he is *testing* the first iteration of the application, I am working on features for the 2nd iteration.


Then I have shown the program to the PM of the Wing's house(aka. Wifey), and now my feature list has grown by 2x, and of course my deadline is still the same... :'(


I have put this program on Codeplex/FlashBee. It is more of a rough 6hr-POC. The cool thing is that he and me sat down and wrote the application together (not all 6hrs). Anybody said pair programming? ;)

Thursday, May 31, 2007

SQLEXPRESS Needed for VStudio for DB Professionals

Running on Vista 64bits, I get this error:

An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: SQL Network Interfaces, error:26 - Error Locating Server/Instance Specified)


I have read that SQL Express is no longer needed if you have SQL server installed locally. However, this error is getting to me. This error indicates that my surface configuration is no set up to allow remote connections. However, this is already setup to allow remote connections:




So far it looks like the Visual Studio for DB professionals does not support SQL 2005 64bits.




I have compare the installation of the VStudio for DB professionals with other developers in here , and they do not have SQL Express installed. So the SQL Express dependency is indeed gone now. However, I am not sure if this is a supported scenario, so I am forced to install SQL express on my machine to see if this solves the issue.



Whoahhh... SQL Express 64bits... ;) nice.
Once I clicked NEXT, Visual Studio wanted the correct version of the vs_setup.msi that I originally used to set the install Visual Studio.

It runs through the setup screens and it stops when it is checking for the Editions? I have originally setup Visual Studio Team System. Then added Biztalk, TFS. Then I added the Visual Studio for DB Professionals. Then I added SP1 in the mix. So I am guessing it is getting confused as to what edition I am running.

I get this error:
Error 1706. An installation package for the product Microsoft Visual Studio 2005 Team Suite - ENU cannot be found. Try the installation again using a valid copy of the installation package 'vs_setup.msi'.




No matter what I do, it is still giving me the error. So I went and download the Microsoft SQL Server Express Edition and installed that one instead.

After installing the SQLExpress, I still cant get VStudio to open a DB project. You will have to go into the surface area configuration tool and set the defaults in there.



Close all instances of Visual Studio. Bring up the SQL Server configuration Manager and enable remote connections. Another thing you need to do to get this working is to install the SQLExpress Service Pack 2 and there are some other goodies at http://msdn.microsoft.com/vstudio/express/sql/download.