.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

Windows Application Migration - Visual Studio 2008 to 2010 - The "GenerateResource" task failed unex

Posted By:      Posted Date: October 14, 2010    Points: 0   Category :Windows Application

I hav a windows forms application built using VS 2008 which I am trying to migrate to VS 2010 & .net 4.0.

I got this nasty bug and found that it is due to the embedded images in the resource file.

<!-- [if gte mso 10]> <mce:style>

The "GenerateResource" task failed unexpectedly. System.InvalidOperationException: The security state of an AppDomain was modified by an AppDomainManager configured with the NoSecurityChanges flag.

I tried the following solutions suggested in various forums.

I added the < NetFx40_LegacySecurityPolicy enabled

View Complete Post

More Related Resource Links

How to add Sharepoint dll reference to Windows Forms application project in Visual Studio 2010?

Hi,I am using Windows Forms application template in Visual Studio 2010 Beta. I created this for some R & D work. Now I am using Sharepoint object model in application. When I am trying to add Sharepoint dll reference from .NET tab, I can not see Windows Sharepoint Services there Which was available in Visual Studio 2005.Also If I am add this sharepoint dll from ISAPI folder (14 Hive), it is added succesfully, but it is not taking actually in project and showing me an error during running mode that theError 12 The type or namespace name 'SharePoint' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?) Please suggest me how to add Sharepoint dll reference in Windows forms application in Visual Studio 2010?

Windows XP, Visual Studio Express 2010 and SQL Server 2008 Express - How can I save modified columns



I am using c# in VS 2010 Express. I have a MDF database that I connect to through "Database Explorer". Database Explorer will not let me SAVE columns that I have modified. As I know in SQL Server 2008 full edition you can change the setting "Prevent saving changes that require table recreation" in Management Console to prevent this. I haven't got Management Console and can't see it in install.

How do I change this setting if I haven't got management console? Is it in Registry or Config File.



visual studio 2010 and 2008 ide on windows 7 64 bit seems to be blocked from reading the registry


I am using:
1. visual studio 2008 and visual studio 2010
2. windows 7 ultimate
3. 64 bit gateway
4. I am using a third party control that has been registered using regsvr32
5. its wrapper was created with 64 bit aximp
6. The code runs but  in design mode nothing shows:
Warning 1 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))  0 0 

7.I used regedit and tried to give all the user's permission to read the registry entry for the item - didn't work.

8. The same code and situation works fine in windows vista home: which means  visual studio cannot read the registry on the windows 7 pc

What do I need to do

is it possible to convert whole visual studio 2008 web site project to visual studio 2010 web site p


is it possible to convert whole visual studio 2008 web site project to visual studio 2010 web site project


my current project references




i have a very annoying iis problem

iis server stops working until app pool is recycled


i am hoping that new visual studio (net framework 4.0) may solve this very annoying unsolveable problem


Windows Azure: Developing and Deploying Cloud Apps in Visual Studio 2010


You'll find direct support for building Windows Azure applications in Visual Studio 2010 and Visual Web Developer 2010 Express. We'll walk you through using Visual Studio 2010 for the entirety of the Windows Azure application development lifecycle.

Jim Nakashima

MSDN Magazine April 2010

Parallel Debugging: Debugging Task-Based Parallel Applications in Visual Studio 2010


In Visual C++ 10 and the Microsoft .NET Framework 4, Microsoft is introducing new libraries and runtimes to significantly ease the process of expressing parallelism in your code base, together with new tool support for performance analysis and debugging of parallel applications. In this article, you will learn about debugging support in Visual Studio 2010, much of which is focused on task-based programming models.

Stephen Toub, Daniel Moth

MSDN Magazine September 2009

Visual Studio 2010 on windows 7 64 bit



Today i have xp pro with visual studio 2005 and going to change to windows 7 with 64 bit.

Will upgrade to Visual Studio 2010 with 64 bit.

Is that a problem going from visual stuidio 2005 (32bit) to visual studio 2010 (64bit) ? Anything i should think about or if anybody had problems with this ?

The server I will deploy my webapplication is windows server 2003 (32bit).
Will it be ok to deploy webapplications that are build in vs2010 (64 bit) but deployed on a server with 32 bit ?

Maybe this is obvious to some people but I have to ask cause I'm not sure about this.

Thanks in advance






VS Studio WorkFlow Failed on Start in MOSS 2007 ON Windows Server 2008 64 Bit


I have created a sequential sharepoint workflow in WSP Builder in my Sharepoint Server and Deployed it.

But the workflows says Failed on start and retrying ans stops there forever says couldn't start the workflow.

I repaired .NET Framework 3.5sp1 installed

 tried this

 1. I tried again, in C Prompt:  Lodctr "c:\Windows\Microsoft.Net\Framework\v3.0\Windows Workflow Foundation\perfcounters.ini"  it says initiation file cannot be found

2   i again tried this C prompt Lodctr /R "c:\Windows\Microsoft.Net\Framework\v3.0\Windows Workflow Foundation\perfcounters.ini"

it says reloaded  from the system restored

i am still getting the same error.

When i manually go to my  C:\Windows\Microsoft.NET\Framework\v3.0\Windows Workflow Foundation i can see a folder for SQL that's it nothing more than that..

I dont know what is happening i am trying it from 2 days and still no solution.

any ideas would be real great help for me.

My system is 64 bit , Window server 2008, MOSS SP2, Visual Studio 2008 Version 9.0.30729.

.Net Framework 3.5 sp1

and WSP builder the one from Codeplex for 64 bit machines

WPF Designer (in VS 2008 and VS 2010) crashes with Visual Studio

Good day all. I have the following question: WPF designer in both VS 2008 and VS 2010 crashes with Visual Studio when I try to edit UI form. Moreover, it crashes even when I try to save .xaml.cs file. Meanwhile, Winforms and Dataset UI editors work as usual. Are there other people met this issue? And how could I fix up this problem? Deleting the .suo file, uninstalling silverlight, repairing visual studio, and further googling did not help me. Thanks in advance.

Windows Mobile - Visual Studio 2008 - Erro gravar no banco SQL compact 3.5

Boa noite estou tentando gravar em um banco de dados Compact 3.5 com o  código abaixo. Public Conexao As New SqlCeConnection("Data Source =" & (System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase) & "\banco.sdf;"))         Dim command As SqlCeCommand = Conexao.CreateCommand()         Conexao.Open()         Dim Trans As SqlCeTransaction = Conexao.BeginTransaction()         command.CommandText = "INSERT INTO clifor (nom, data, numero)VALUES (?, ?, ?)"                command.Parameters.Add("@nom", txtNome.Text)         command.Parameters.Add("@data", txtData.Text)         command.Parameters.Add("@numero", txtNumero.Text)         command.Prepare()         Trans.Commit(CommitMode.Immediate)         command.ExecuteNonQuery()         command.Dispose()         Conexao.Close()

Error trying to open WPF Xaml windows from Visual Studio 2010 in Blend 4

Hi I have Visual Studio 2010 ultimate, and expression Blend 4. I have created a WPF 4 project in Visual Studio and when i try to open the MainWindow.xaml file in Expression Blend 4 - i get an error stating that the file or folder is not a valid blend project. Is there something i need to install for visual studio to make blend able to edit WPF Xaml files in Blend 4? I can open blend4 and create WPF applications with no problem - its just trying to open a mainwindow.xaml created in Visual Studio 2010 in blend 4 when i get the error. I am running windows 7 32 bit. Cheers Rod. Mono / DotNet Rocks!

Visual Studio 2010 - SQL 2008 or SQL 2008 R2

I have just rebuilt my development platform i.e. I ran the Windows 7 Ultimate setup app on an X86 platform followed by a fresh install of Visual Studio 2010 Prof. Using VS I opened up a solution created before the rebuild which includes a connection to an .mdf file. On attempting to connect to this file I Got an error message of the  follwing type. The database '.../XXX.MDF' cannot be opened because it is version 661. This server supports version 655 and earlier. A downgrade path is not supported. Referring to this link http://social.msdn.microsoft.com/Forums/en-US/sqlgetstarted/thread/0a4082a2-793e-42c3-9f68-95041002b4de, leads me to believe that VS2010 uses SQL Express 2008 for database access and that I had been using(unknowingly) SQL Express 2008 R2 during my previous development activities. If that is the case two questions arise :- Why does VS2010 install package install the four 2008 R2 components when I presume that these would also be incompatible with SQL Server Express 2008? Is there a version of SQL Server 2008 R2 - since I assume that R2 is the latest and greatest version - that I can install on my machine and if so how do I tell VS to use 2008 R2 rather than plain old 2008? I hope these questions do not seem like the meanderings of a raddled brain, but any light you can throw on them, would help me gain a better understanding of the relationship bet

Visual Studio 2010 Ultimate setup failed

The Microsoft .NET Framework 4 step failed when I tried to install VS 2010 on my Win XP SP3. The first line of the error log is Microsoft .NET Framework 4: [2] Error code 1603 for this component means "Fatal error during installation." The error log can be seen in my skydrive http://cid-dd0e9ffb3a6b3ceb.skydrive.live.com/self.aspx/.Public/dd%5E_error%5E_vs%5E_vstscore%5E_100.txt The install log can be seen here http://cid-dd0e9ffb3a6b3ceb.skydrive.live.com/self.aspx/.Public/dd%5E_install%5E_vs%5E_vstscore%5E_100.txt The CRC of the ISO macthed the one on the MSDN download site, but to make sure, I downloaded and installed .NET Framework 4 but it also failed. The installatin log of the .NET Framework can be seen here http://cid-dd0e9ffb3a6b3ceb.skydrive.live.com/self.aspx/.Public/Microsoft%20.NET%20Framework%204%20Setup%5E_20100505%5E_234527496.html The Msi Log can be found here http://cid-dd0e9ffb3a6b3ceb.skydrive.live.com/self.aspx/.Public/Microsoft%20.NET%20Framework%204%20Setup%5E_20100505%5E_224838111-MSI%5E_netfx%5E_Core%5E_x86.msi.txt Can anyone help? Thx.          

App Migration: Migrate Your ASP.NET 1.1 Apps to Visual Studio 2010

Protect against obsolescence, gain new capabilities and increase your marketability by getting on board with the .NET Framework 4. You can start right here by learning how to migrate older applications to the latest and greatest.Jonathan WaldmanMSDN Magazine September 2010

Failed to generate a user instance of SQL Server 2008 Express with Advance Services in Visual Studio

I used SQL Server 2008 Express with Advanced Services (not SQL Server 2008 Express) in Visual Studio 2010 because it is the fast and easy way to developed and managed data-driven applications with powerful built-in reporting and full-text search functionality. I received Sql Server 2008 Service Pack 1 with Windows Update. It's ok if I connect to instance of SQL Server 2008 Express with Advance Services (with SP1) through SQL Server Management, but if I try to attach a database in Server Explorer (Visual Studio 2010), I get the following error: "Failed to generate a user instance of SQL Server due to a failure in starting the process for the user instance. The connection will be closed." I'm stuck at this point. Is there a fix or a workaround? I've already tried deleting the 'C:\Users\Administrtor\AppData\Local\Microsoft\Microsoft SQL Server Data\SQLEXPRESS' directory as mentioned in other posts, with no luck. The error.log at 'C:\Users\Administrator\AppData\Local\Microsoft\Microsoft SQL Server Data\SQLEXPRESS\error.log' has the following relevant entries: 2010-09-01 14:44:10.47 Server      Error: 17156, Severity: 16, State: 1. 2010-09-01 14:44:10.47 Server      initeventlog: Could not initiate the EventLog Service for the key '3677F6D3-17C7-4F', last error code is 2. 2010-09-01 14:44:10.47 Server &

Is it possible to use a frameset in a Visual Studio 2010 Asp.NET MVC application

A reply to the following post says not:http://forums.asp.net/p/1563210/3879572.aspxIf it is possible, can anyone point me at an example?I'll hasten to add that I've not yet tried this yet - I'm just looking for advice as to if it's possible and if so, the best approach. For instance if using a frameset, is it recommended to have a master page?TIA,Mike

Visual Studio 2010 Lab Environment for Student to deploy to a IIS 7.5 web server with SQL 2008

Currently the environment I am trying to create is a teaching lab for Visual Studio 2010 and ASP.NET website development. The intent is to setup an environment where students can create a website with an attached database written with the assistance of Visual Studio 2010. When the website is completed they need to use one of the Visual Studio deploy technologies to upload the website to a locally run server (Windows 2008 R2 with IIS 7.5 running and SQL Server 2008.) I am responsible for setting up the correct deploy technology in Visual Studio as well as setting up the IIS 7.5 deployment server that is running the right version of SQL Server. I have already started this process and figured out how to configure a deployment package in visual studio and have it published on our local server. I am trying to get a very streamlined environment that does not require students have to configure a lot of SQL strings and IIS settings because this is not really what the teaching lab is all about. Just to let you know, we have had  this exact setup using Visual Studio 2008, Server 2003 with front page server extensions on IIS 6.0 and SQL Server Compact edition running on the server. My issue is that since it is now time to update everything there does not seem to be something comparable. Any help would be greatly appreciated. If someone has an idea of the 
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend