Posts

Showing posts from 2012

Reset user settings on Visual Studio

Sometimes we might have created connection strings with different environments and don't want to save in entity framework wizard. Today I realized we can't modify/delete individual connection string from wizard. In order to delete saved connection strings from wizard we need to reset the user data. You can run the following command to reset user data on Visual studio: 1) Open Command Prompt 2) Goto C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE 3) Run devenv/resetuserdata It clears your profile  Visual studio settings and you can start creating new connection strings, which will be saved into your profile again.

Windows 8 and the future of XAML

http://www.silverlightshow.net/items/Windows-8-and-the-future-of-XAML-Part-1-An-overview-of-the-Windows-8-platform.aspx

Windows Azure Role Architecture

http://blogs.msdn.com/b/kwill/archive/2011/05/05/windows-azure-role-architecture.aspx

SharePoint 2013 !!!!!!!!!

Woh, I am super exited to see SP 2013 on our way....!! Dev reference Url: http://msdn.microsoft.com/en-us/library/sharepoint/jj164084 Videos

Partial View vs View in MVC

http://www.highoncoding.com/Articles/638_Understanding_Partial_Views_in_ASP_NET_MVC_Application.aspx

How using woks in C#?

Using  statement used to dispose object automatically while end of method execution. The CLR will generate try finally block and dispose managed objects in finally block. http://www.codeproject.com/Articles/6564/Understanding-the-using-statement-in-C

Dependency Injection Silverlight

Explains nicely about Dependency Injection: http://www.devx.com/dotnet/Article/34066/0/page/2 Explained Three Types of Injections: Constructor Injection Setter Injection Interface-based Injection http://www.codeproject.com/Articles/13831/Dependency-Injection-for-Loose-Coupling

Windows Azure Monitoring using SCOM2007

http://www.microsoft.com/download/en/details.aspx?id=11324

Running PowerShell Scripts from a SCOM Management Pack

http://blogs.technet.com/b/brianwren/archive/2008/02/20/running-powershell-scripts-from-a-management-pack.aspx

A Web Part or Web Form Control on this Page cannot be displayed or imported. The type could not be found or it is not registered as safe.

Image
When you create a Visual Webpart using Visual Studio 2010 you may see the following error: A Web Part or Web Form Control on this Page cannot be displayed or imported. The type could not be found or it is not registered as safe. The reason for this error is if we modify default namespace into custom namespace, Visual Studio 2010 Package is not generating webpart file properly. 1) Make sure your webpart is added into Safe Control list in Web.config file. 2) Open your .webpart file in your visual studio - Make sure type element name has proper namespace & class name. When you made changes to default name space which is being generated by  visual studio, you may not see updated namespace in type element. So make sure your webpart name space name & webpart class name placed correctly in type element's name attribute type name="WebpartNameSpace.WebPartClassName", $Sharepoint.Project.AssemblyFullName$   3) Access http://server/_layouts/ne...