Posted by Vakul Kumar More on September 11, 2012
.NET / Visual Studio
Posted in Useful Links | Tagged: .NET, ASP.NET, C# 3.0, Microsoft, MSDN, Vakul, Vakul Kumar, Vakul Kumar More, Visual Studio 2008, Visual Studio 2010 | Leave a Comment »
Posted by Vakul Kumar More on April 9, 2012
- Free Microsoft Technologies Training:
Want to learn latest Microsoft technologies…check the following website:
- Free eBook: Practical Performance Profiling :
Get up to speed with a free copy of Practical Performance Profiling by Jean-Philippe Gouigoux sponsored by RedGate
Covers the theory and practical skills necessary to analyze and improve the performance of .NET code.
Guides you through using a profiler and explains how to identify and correct performance bottlenecks.
11 Important Database designing rules:
What AnyCPU Really Means As Of .NET 4.5 and Visual Studio 11
- Future of Cloud Computing
SQL Server Storage Basics
‘must-read’ resources for every SQL Server developer and DBA.
Posted in ASP.NET, General, Technical | Tagged: .NET, .NET Framework 4.0, .NET Framework 4.5, ASP.NET, database, Vakul, Vakul Kumar, Vakul Kumar More, Visual Studio | Leave a Comment »
Posted by Vakul Kumar More on November 2, 2011
I have been passive for quite some time and would like to be back into regular blogging.
Today, I present an eBook which is available for free.
The developers guide to AppFabric – October Edition.
Alan Smith is the author of the book and explains “The Developer’s Guide to AppFabric” is a free e-book for developers who are exploring and leveraging the capabilities of the Azure AppFabric platform. Click here to download. You can visit here for the latest edition of the book.
Happy coding 🙂
Posted in ASP.NET | Tagged: .NET, ASP.NET, Vakul, Vakul Kumar, Vakul Kumar More, VB.NET, Visual Studio 2008, Visual Studio 2010 | Leave a Comment »
Posted by Vakul Kumar More on July 6, 2011
I was approached by a colleague recently about an error related to “SGEN.EXE” when tried to build the project in release mode. This error is only for the release mode and in debug mode it works perfectly.
I researched further on the error:
Sgen.exe is an XML Serializer Generator Tool used to create an assembly for types in a specified assembly in order to improve the startup performance of a XmlSerializer when it serializes or deserializes objects of the specified types.
Sgen.exe generates the [libraryname].XmlSerializers.dll and will be used by the clients of webservices to speed up the time to load the webservice.
- Right click on the project and in the properties page of the project, click on the Build tab.
Select Configuration: Release.
At the bottom, Generate serialization assembly is set to AUTO. When it is AUTO in release mode, SGEN tries to create XML serialization assembly and fails. Set Generate serialization assembly to OFF. If it is set to OFF, Visual Studio never runs sgen.exe.
- Copy the sgen.exe file from C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\Bin\ to C:\WINDOWS\Microsoft.NET\Framework\v3.5\. I’m not sure if this is 100% solution.
- Open the GAC (C:\Windows\Assembly), find the DLL corresponding to your project.
- Right click on it and select uninstall.
- Now, re-build your project and the problem must be gone.
- Final solution would be to try refreshing from SourceSafe and if it wont solve the problem would be to destroy entire solution hierarchy and get a fresh version of solution to a new location.
I’m sure the first solution should solve the problem, 2nd and 3rd solution can be tried to solve the error.
Let me know if there is anything can be added in comments section.
My short bio
Posted in ASP.NET, Technical, Tips & Tricks | Tagged: ASP.NET, serialization, sgen, sgen.exe, Vakul, Vakul Kumar, Vakul Kumar More, Visual Studio 2008, Visual Studio 2008 Debugger | Leave a Comment »