When I start up VS 2008 to work on a WPF / Silverlight App and open a XAML or XML file the XAML / XML editor is no longer working. The designer does not show up and intellisense is unavailable. It basically looks like a text file has been opened.
If you right click the file, select "Open With", and then choose "Windows Presentation Foundation Designer", does that work? If so, most likely the default editor for .xaml files has changed. You can reset this back to the designer by pressing "Set as Default" when the designer you want is selected in the list in the Open With dialog.
Try running the following command.
"%ProgramFiles%\Microsoft Visual Studio 9.0\Common7\ide\devenv" /resetSkipPkgs
If that doesn't work try repairing the Visual Studio Install
- Start -> Control Panel
- Add Remove Programs
- Select VS
- Choose repair
The designer for XAML is awful. Do yourself a favour and set your XAML files to open in the code viewer instead; they'll load quicker and you won't have to deal with the designer's flakiness.
However, to fix the intellisense, just re-register TextMgrP.dll using regsvr32 as indicated here.
It looks like there is an XML package that was previously not loaded, see other question here; Visual Studio 2008 XML Editor Disappeared
Also, there is an answer on the Silverlight forums that describes using the "devenv /setup" command that can be found in (VS2008InstallationDirectory)\IDE.
I've seen this problem before, running this command should fix it :
Devenv.exe /ResetSkipPkgs
AHHHHHHHHHHHHHHH!!!!!! It finally worked!!!!! Only after a week of pulling my hair out. I had multiple issues.
- Xaml editor and add DataSource Wizard and other things would not work with VS 2008.
- Tried to install SP1. It would not let me because Office Suite 2007 was in the middle of an SP1 update and would not finish.
- Un-installed Microsoft office and reinstalled and service packed.
- Tried devenv /setp & devenv /resetskippkgs to no avail.
- Finally service packed VS2008.
- Retried the devenv /setp & devenv /resetskippkgs twice and voila!! It worked.
Thanks a bunch.
I have the same problem. Installed Visual Studio 2008 Professional Edition and tried to work with WPF and when i create project there is no designer layout appears and don't know what to do since i am a beginner to .Net. Moreover, I have installed VS 2008 Express Edition maybe that causes to happen such things...
Anyway I'll try out what people says!!!
Guys i am not able to find devenv.exe /setp. I tried looking into the various commands that devenv supports but there this setp is not there. Can anybody pls help!!
i had similar problems when i installed VS2008 Professional over an existing VS2008 Express edition. Suddenly my XAML designer stopped working . i got failed loading the XAML dll error. So i just uninstalled all VS Express stuff and then installed VS 2008 SP1 fixed all things.
try link below for VS 2008 SP1.
Resolved!!
CLS PRINT "Guess My Number" INPUT "Would you like to play"; choice$ 'An input statement, that takes what the user inputs... choice$ = UCASE$(choice$) ' makes the input completely uppercase (fkld ---> FKLD) IF choice$ <> "YES" AND choice$ <> "Y" THEN ' and decides whether or not they want to play: END END IF guesses% = 5 ' Set up number of guess remaining RANDOMIZE TIMER ' Sets up the random number generator target% = INT(RND * 10) + 1 WHILE guesses% > 0 INPUT "Guess a number: ", guess% ' Takes user input (the guess) IF guess% = target% THEN ' Determines if the guess was correct PRINT "You win!" END ELSE guesses% = guesses% - 1 PRINT "Sorry, please try again. You have ";guesses%;" guesses left." END IF WEND
PRINT "You ran out of guesses, the number was "; target% END
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
It Works..............................
Really Just Reinstall Visual Studion 2008 SP1 Again