View Complete Post
I keep getting this error message all the time. The same code works in xp32+VS2010 C#, when I bring it to win7/64bit, the error message appears. It started when I have a picturebox added to my form and have a jpg file inside the picturebox. I got "System.BadImageFormatException"
a couple of times, I really don't know how to fix that to go ahead. I have checked some posts in this forum, some ones suggested set my application target platform to X86. I did set my target platform to x86, not working.
I am wondering if anything else I can try. Any help will be appreciated!
The error message is:
Error 1 The "GenerateResource" task failed unexpectedly.
System.Runtime.InteropServices.ExternalException (0x80004005): A generic error occurred in GDI+.
at System.Drawing.Image.Save(Stream stream, ImageCodecInfo encoder, EncoderParameters encoderParams)
at System.Drawing.Image.Save(MemoryStream stream)
at System.Drawing.Image.System.Runtime.Serialization.ISerializable.GetObjectData(SerializationInfo si, StreamingContext context)
at System.Runtime.Serialization.Formatters.Binary.WriteObjectInfo.InitSerialize(Object obj, IS
Getting the below error while setting up application on Win 7 using visual studio.NET 2003.
I understand by the error, i need to install Front page server extension, but not able to figure how to install using IIS 7.5.
I had XP machine with IIS 5.1, able to find the option.
Need your help in resolving this.
i write a site and get this error, i using VS2010.
i try run on my machine its all work fine, but when i complier and run it on Window server 2008 get this error.
I read http://forums.asp.net/p/1513402/3613239.aspx I install the ReportViewer.exe but still cannot find the Microsoft.ReportViewer.ProcessingObjectModel.dll, however I got find it Microsoft.ReportViewer.ProcessingObjectModel in C:\Windows\assembly and is not a dll file. any suggestion?
I finally got around to trying vs2010 and MVC 2 ... I'm glad I did not put them on a production computer.
My first compile (I have not had a chance to investigate because I just did this and I am too tired).
All I did was create a MVC 2 solution with MSTEST Unit Testing selected too.
I compiled it and get four unexpected errors (because I have heard ASP.NET MVC 2 "alpha" and vs2010 Beta 2 are supposed to be somewhat robust):
In both HomeController and AccountController:
"The type or namespace name "Controllers" does not exist ins the namespace "mvczzzzz001" occurs twice, once for HomeController.cs and once for AccountController.cs.
AccountControllerTest.cs has two errors: can not find "AccountController" namespace and can not find "IFormsAuthentication" namespace.
With ASP.NET MVC v1.0 there are errors when one uses xUnit.net (version at time of ASP.NET MVC v1.0 RTM) as the test framework but not errors with MSTEST (I prefer xUnit.net to MSTEST).
I am just so surprised to find such errors in vs2010 + MVC 2 ....
is this happening to anyone else?????????????????
Thank you ~~ regards, Gerry (Lowry)
I am using VS2010 Pro in 64 bit Windows 7. When I add a new item to a folder in an ASP.NET MVC2 project, VS frequently crashes with a "Visual Studio has stopped working" error and then closes down. If I re-open the project the item is not visible in the MVC project folder, (but it is visible to windows explorer although I think it's corrupted). If I then try to add the item again, it warns me that it already exists and asks to overwrite, choosing yes to overwrite usually works OK. When adding an .edmx item it is more problematic, I can't overwrite it but because I know that there actually is a file in the folder, (although not visible and albeit corrupted), I can add it as an existing item and then choose "update model from database" to get it to work. This error is happening more and more frequently.