开发者

Visual studio closes unexpectedly

I am doing an MVC project... am very new to MVC... something very strange is happening...

When I drop a control from the toolbox to the design page visual studio cl开发者_JS百科oses.. I have no clue why this happens.. am totally perplexed...I tried searching for possible solution in the net...nothing showed up...:(


Unless I've totally missed the boat, you shouldn't be able to drag-and-drop any control from the toolbox to an MVC view. At least in MVC 1.0, views and user controls do not implement code-behind by default, but, more importantly, the designer code file that gets modified in WinForms .ASPXs and .ASCXs is not created when the view is created. In MVC, controls are added to views using code-based HTML helpers or the actual HTML code. The fact that the default Visual Studio behavior when executing a drag-and-drop with a toolbox control is to modify the form's designer file could be causing the immediate exit, since the file doesn't exist.

P.S. Don't bother trying to create it...the framework isn't built to implement or support it and it would probably just slow you down, anyway.


Try to start Visual Studio in safemode via

cd C:\Program files\Microsoft Visual Studio 9.0\Common7\IDE
devenv.exe /safemode /log

If this works then one of the installed add ons is responsible for the crash. It often helps in my environment.


Also you may try cleaning up the project.
Run
c:\WINDOWS\Microsoft.NET\Framework\v3.5\MSBuild.exe yoursolution.sln /t:Clean
Might help if something got screwed in your project.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜