Archive for October, 2011

Unable to start debugging in Silverlight 3 for VS 2008

Hi All,

Following is the error I got when try to debug my sample silverlight 3 application.

“unable to start debugging.the silverlight managed debugging package isn’t installed”

At first time debugging works fine. I upgraded Silverlight 3 runtime into Silverlight 4. Then I got the above error while debugging.

That error indicates that I have the end-user runtime installed, not the developer runtime. The dev runtime is available here: http://go.microsoft.com/fwlink/?LinkID=150228

Then I have downloaded the Developer runtime for Silverlight 3. That fixes my problem of debugging but still I’m receiving the another error.

Unhandled Error in Silverlight Application
Code: 2104   
Category: InitializeError      
Message: Could not download the Silverlight application. Check web server settings.

To correct the above issue, check the below IIS settings if you are running the app from IIS and ensure to have the .xap file in the ClientBin folder of the web application.

.xaml    application/xaml+xml
.xap    application/x-silverlight-app
.xbap    application/x-ms-xbap

~ Gangadhar Kotu

How to avoid ‘Run as Administrator’ in Windows7?

Am sure most of you are frustrated to use ‘Run as Administrator’ for many tools in Windows7. Below are the steps to avoid using ‘Run as Administrator’ option for any application running in Windows 7 and let’s make the application run under administrative privileges by default.

To set this property, just right-click on any shortcut, and click the Advanced button on the Shortcut page to get to the Advanced Properties dialog.

You’ll see a dialog with a checkbox for “Run as administrator”.

Now on, the application runs under administrative privileges by default.

 

Gangadhar Kotu

OracleCommandBuilder.DeriveParameters doesn’t return Stored Procedure definition

We were in a situation to migrate the Oracle database from one data center to another data center. The migration activities are completed and felt it is succeeded.

We observed the existing functionality which uses OracleCommandBuilder.DeriveParameters method is not return any parameter information of the Stored Procedure we are looking for. Hence tried with multiple functionality. No luck and spend a day on this as well.

Felt like some privileges issue and contacted the DBA teams as well. Later found that the Oracle packages were in INVALID state due to migration. So, Compiled the packages and the status becomes VALID.

There you go, the functionality started working.

In this case, the packages were not in a compiled (valid) state. Once we execute the Oracle package, everything went fine.

This is one possible solution if you are facing the similar issue.

Good luck..!!

Gangadhar Kotu

How to change default environment settings in Visual Studio?

Here are the simple steps to change the default environment settings in the Visual Studio.

Use the Import and Export Setting Wizard:

1. Choose Tools -> Import and Export Settings
2. Select Reset All Settings and click Next
3. Select whether you would like to save the current settings and click Next
4. Select the settings you want to use and click Finish

Gangadhar Kotu