Vakul's .NET Realm

My journey towards .NET World…

  • Details

    Vakuls MCPD Certification Vakuls MCTS Certification Author's Pic



Posts Tagged ‘Visual Studio 2008 Debugger’

Links of the day – 11 September 2012

Posted by Vakul Kumar More on September 11, 2012

.NET / Visual Studio/Web Development
Inspirational
Quotes/Dictionary
Advertisements

Posted in ASP.NET, Technical, Useful Links | Tagged: , , , , , , , , , , , , , , , , , , , , , , | Leave a Comment »

Task Failed because “SGEN.EXE” was not found

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.

Solutions:

  1. 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.
  2. 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.
  3. 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.
  4. 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.

Happy Coding Smile

 

Posted in ASP.NET, Technical, Tips & Tricks | Tagged: , , , , , , , , | Leave a Comment »

Microsoft Visual Studio Gallery – Products and Extensions for Visual Studio

Posted by Vakul Kumar More on June 11, 2009

Are you to looking to find products, extensions, and add-ins for Visual Studio.

 Microsoft Visual Studio Gallery

Your search ends at Microsoft Website. Microsoft is providing Gallery with

Tools  (Build, Coding, Data, Documentation, Modeling, Performance, Programming Languages, Reporting, Security, Setup & Deployment,Source Control, Team Development, Testing and  Web )

Controls (ASP.NET Controls, Silverlight Controls, Sharepoint Controls, Windows Forms Controls, WPF Controls and Framework & Libraries)

Templates (ASP.NET, Office , Mobile Device, Silverlight, SQL Server, WCF, Windows Forms, Workflow and WPF)

click here to access all the above mentioned  Tools, Controls and Templates.

Happy Coding !!!

 

 

Controls
  • ASP.NET Controls
    261
  • Silverlight Controls
    54
  • Sharepoint Controls
    36
  • Windows Forms Controls
    145
  • WPF Controls
    63
  • Framework & Libraries

Posted in Technical | Tagged: , , , , , , , , , , , , , , , , , , , | Leave a Comment »

LINQ Resources

Posted by Vakul Kumar More on January 16, 2009

LINQ:

Language-Integrated Query (LINQ) is a groundbreaking innovation in Visual Studio 2008 and the .NET Framework version 3.5 that bridges the gap between the world of objects and the world of data.

Traditionally, queries against data are expressed as simple strings without type checking at compile time or IntelliSense support. Furthermore, you have to learn a different query language for each type of data source: SQL databases, XML documents, various Web services, and so on. LINQ makes a query a first-class language construct in C# and Visual Basic. You write queries against strongly typed collections of objects by using language keywords and familiar operators. The following illustration shows a partially-completed LINQ query against a SQL Server database in C# with full type checking and IntelliSense support.

LINQ Resources :

  1. http://linqdev.com/PublicPortal/ (Check for very good video Tutorial )
  2. http://www.hookedonlinq.com/MainPage.ashx ( Developers’ Wiki for .NET Language Integrated Query )
  3. http://www.theserverside.net/tt/articles/showarticle.tss?id=CsharpLINQLearningGuide2007 ( C# 3.0/LINQ Learning  Guide )
  4. http://linqinaction.net/ – Learn about LINQ, LINQ to SQL (DLINQ) and LINQ to XML (XLINQ)
  5. http://www.danielmoth.com/Blog/2007/02/linq-resources.html
  6. http://blogs.msdn.com/zainnab/attachment/8343938.ashx (Programs and Tutorials)
  7. http://blogs.msdn.com/zainnab/pages/visual-studio-2008-framework-3-5-learning-resources-page.aspx
  8. http://go.microsoft.com/fwlink/?LinkId=71829 (The Linq Project)
  9. http://forums.microsoft.com/msdn/showforum.aspx?forumid=123&siteid=1 (LINQ forum)
  10. http://msdn.microsoft.com/en-us/library/bb308961.aspx (linq Whitepapers)
  11. http://mtaulty.com/CommunityServer/blogs/mike_taultys_blog/archive/2007/05/09/9317.aspx (LINQ Videos)
  12. http://cid-1f72da7294089597.skydrive.live.com/browse.aspx/Public/LINQ (LINQ files to download)
  13. http://weblogs.asp.net/scottgu/archive/2007/07/31/linq-to-sql-debug-visualizer.aspx ( LINQ to SQL Debug Visualizer  )
  14. http://msdn.microsoft.com/en-us/vbasic/bb466226.aspx#linq (How do I videos)
  15. http://blogs.msdn.com/charlie/archive/2008/11/23/linq-reference-documentation.aspx ( LINQ Reference Documentation )
  16. http://oakleafblog.blogspot.com/2007/03/third-party-linq-providers.html ( Third-Party LINQ Providers )
  17. http://updates.zdnet.com/tags/linq.html (Resources by ZDNet)
  18. http://www.linqhelp.com/ ( good help site )
  19. http://msdn.microsoft.com/en-us/vcsharp/aa336746.aspx (101 LINQ Samples)
  20. http://www.thedatafarm.com/blog/2007/10/02/ResourcesForLINQTalkAtSanDiegoNET.aspx (Julie Lerman Resources for LINQ talk at San Diego .NET )

ScottGu’s Blog

  • Part 1: Introduction to LINQ to SQL
  • Part 2: Defining our Data Model Classes
  • Part 3: Querying our Database
  • Part 4: Updating our Database
  • Part 5: Binding UI using the ASP:LinqDataSource Control
  • Part 6: Retrieving Data Using Stored Procedures
  • Part 7: Updating our Database using Stored Procedures
  • Part 8: Executing Custom SQL Expressions
  • LINQ to SQL (Part 9 – Using a Custom LINQ Expression with the <asp:LinqDatasource> control)
  • Step by Step…
    Introducing LINQ – Part 1
    Introducing LINQ – Part 2
    Introducing LINQ – Part 3
    Introducing LINQ – Part 4
    Introducing LINQ – Part 5

    Happy Coding  !!!

    Posted in Technical | Tagged: , , , , , , , , , , , , | 1 Comment »

    Cool Features of Visual Studio 2008 – Part 2

    Posted by Vakul Kumar More on July 12, 2008

    It took almost a month and half for me to present Part-2. In second part, I would introduce LINQ, VB 9 and C# 3.0.

    Part-2 of this series covers the following topics:

    • LINQ – Language Integrated Query
    • VB.NET: Implicit types
    • VB.NET: Extension Methods
    • VB.NET: IntelliSense
    • C# 3.0: Implicit typed local variables
    • C# 3.0 Object Initializers
    • C# 3.0 : Collection Initializers
    • C# 3.0: Anonymous Types
    • C# 3.0: Lambda Expression

    Read the rest of this entry »

    Posted in Technical | Tagged: , , , , , , , , , , , , , , , , , , , , , , , , , | Leave a Comment »