Sunday, November 4, 2012

Error connecting to undo manager of source file

If you get an error like “Error connecting to undo manager of source file ‘Default.aspx.designer.cs’” in Visual Studio, then simply edit both the .aspx and .cs files and recompile.

You don’t have to change the files, you can just add and delete a character – enough to set the “changed” flag, and that should solve your problem.

Hope it helps!


Paras Wadehra
Twitter: @ParasWadehra
 

Monday, October 1, 2012

Book Review: Microsoft Silverlight 4 Development (70-506) Certification Guide

I have been reading the “MCTS: Microsoft Silverlight 4 Development (70-506) Certification Guide” for the last few weeks now and can speak to its simple approach towards getting you ready for the actual certification exam.

The book contains various topics from the introduction to XAML, to creating custom user controls and even more advanced topics like animations via storyboards. It also touches the out-of-browser experience that was introduced with Silverlight 3 and helps you create such applications. The book also includes sample test questions to help you prepare for the actual exam.

Overall, I have enjoyed reading the book and believe it has increased my knowledge of Silverlight. I have built several Windows Phone and Windows 8 apps which make use of Silverlight/XAML and this book has definitely sharpened my skills in some areas.

The book can be downloaded from Packt Publishing's website at http://www.packtpub.com/mcts-microsoft-silverlight-4-development-70-506-certification-guide/book

--
Paras Wadehra
Twitter: @ParasWadehra

Sunday, September 23, 2012

Error: DEP0600: The following unexpected error occurred during deployment: Could not find a part of the path

If you receive an error like "Error: DEP0600: The following unexpected error occurred during deployment: Could not find a part of the path 'C:\Code\UnitConverter\bin\Debug\AppxManifest.xml'" during development/deployment of your Windows 8 App, you are not alone.

This simply means you copied the code for your app from one folder to another and are trying to run/deploy it from the new location now! Don't worry, the solution is very simple - just do a "clean solution" and then "rebuild solution" and you are on your way to run the app successfully.

Told you, it was simple :)

For your information, the full stack trace for the error would probably look like following:

Error : DEP0600 : The following unexpected error occurred during deployment: Could not find a part of the path 'C:\Code\UnitConverter\bin\Debug\AppxManifest.xml'.
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
   at Microsoft.VisualStudio.ImmersiveProjectServices.Shared.DataFilesShim.LoadManifest (String path, String& checksum)
   at Microsoft.VisualStudio.ImmersiveProjectServices.Shared.AppxManifest..ctor (String manifestFile, LogHelper logger)
   at Microsoft.VisualStudio.ImmersiveProjectServices.Shared.RegisterAppxLayout.Start (Boolean forceNewLayout, Boolean forceRegistration, NetworkLoopbackState desiredNetworkLoopbackState, Boolean refreshLayoutOnly, String& packageMoniker, String& firstUserAppID, Exception& deployException)

And here is a link to my app, UnitConverter for Windows 8, for all of you to download and play with - http://apps.microsoft.com/webpdp/app/unitconverter/15f6278c-3c3b-492e-a82f-691ad1b45f5b

As always, feel free to ask me any questions about your Windows Phone and Windows 8 development dilemmas.

Cheers,
Paras Wadehra
Twitter: @ParasWadehra

Wednesday, June 13, 2012

Async CTP v3 installation issues

If you tried installing Async CTP v3 with your VS 2010 installation and are having problems, then this might be of help to you.

There are some updates that you might have received via Windows Update that interfere with the successful installation of Async CTP v3. Three in particular, KB2635973, KB2615527 and KB2645410, are known to be incompatible with Async CTP v3.

If you have any of these updates on your system, then please remove these before trying to install Async CTP v3. Once Async CTP v3 is successfully installed you can install these and other newer updates.

To read more about this issue, click here.

Cheers,
Paras

Tuesday, May 29, 2012

Error : DEP0600 : The following unexpected error occurred during deployment: Illegal characters in path.

During the deployment of your Windows 8 Metro application, you may encounter the following error: Error : DEP0600 : The following unexpected error occurred during deployment: Illegal characters in path.


This may happen if you moved your project to a new location after its first deployment and you are trying to redeploy the application. There are 2 ways to resolve this error, both of which I mention below.

FIRST SOLUTION

Uninstall the version of the application installed from another location. To do this, on the home/start screen right click on your app's icon and then click uninstall in the menu bar at the bottom. Once uninstalled, the error in Visual Studio should disappear.

SECOND SOLUTION

Create a new GUID and copy it. Now open the Package.appxmanifest file and replace the package name with the new GUID. This should fix the deployment issue.

If you do not know how to generate a new GUID, you can alternatively create a new app and copy its package name into your app to resolve this issue.

Happy Coding,
Paras Wadehra

Thursday, January 12, 2012


BZ Media is organizing the first ever Windows Phone Developer Conference to be held from October 22-24, 2012 in San Francisco Bay Area in California.

You can find the announcement at http://bzmedia.com/BZ_Media_Announces_First_Windows_Phone_Developer_Conference/10014 and more details about the conference at http://www.wpdevcon.net/

WPDevCon will have 3 tracks:

  • WP Essentials – for all Windows Phone developers, and cover all programming topics.
  • WP Enterprise – for  building and managing apps for employees, business customers and partners.
  • WP Marketing – business-oriented sessions that cover Windows Phone marketplace, app marketing and distribution.



Tuesday, November 8, 2011

Xap packaging failed. Object reference not set to an instance of an object.


If you face the error "Xap packaging failed. Object reference not set to an instance of an object." while trying to build your Windows Phone application, make sure you do not have any files added to your solution that no longer exist on disk.


In the image above, you can see the reference to banner.png is outdated and needs to be removed. Once you remove the reference, try rebuilding your app and it should build fine.

--
Paras Wadehra