WebForms with MasterPage
bootstrap etc. Standard.Configuration
Problem:
after the download of the latest version from TFS I can't switch the aspx-WebForm to Design Mode.
It show me a few seconds a Form in Design Mode without MAster Page settings (withour css etc), then come hourglass and then will be Visual Studio closed.
Which workaround I found: I should each time after download a latest version first of all to edit the aspx-WebForm (cut content, save, and paste content and save).
After that I can switch between SourceCode and DesignView Mode without problem.
Question:
how can I fix this problem, to work with VS and switch between modes without top extra Edit an aspx file?
P.S.
The Problem I had also with VS2017. All Patches and Fixes are installed.
Accroding to your description,as far as I think,something in the Solution File (the .sln file) of the Web project is now screwed, so you got to delete that.
In my case I save them in the default location, so in the “C:\Users\MyName\Source\repos” folder. Just delete the whole sub-folder that VS created there for your Web App - the “.sln” file will be gone too.Open your Web project again, and everything
works.
Best regards,
Yijing Sun
.NET forums are moving to a new home on Microsoft Q&A, we encourage you to go to Microsoft Q&A for .NET for posting new questions and get involved today.
I think thats not a cause of problem, because it's not happened with other aspx Pages.
Moreover, its not happened in other projects in this solution.
There is only one aspx.page, in one projekt that has this problem. They has a simple master page, bootstrap, custom css and a content in content place holder Maincontent.
The content is lage and have a several gridViews and capsuled controls inside of gridviews.
But as I said, if I edit or checkut aspx page before i switch between modes, that works nice.
Otherweise came "Masterpage will loading.. " and then crash of VS.
I think, that is a bug of VS, which cannot work with a large content.
If I delete subfolder, as You write, I will have a big problems to get solution working again.
If you're not sure what's causing your crashes or they seem random, then you can capture dumps locally each time Visual Studio crashes and attach those to separate feedback items.You could debug your project on the different computer.
.NET forums are moving to a new home on Microsoft Q&A, we encourage you to go to Microsoft Q&A for .NET for posting new questions and get involved today.
None
0 Points
6 Posts
Visual Studio crash after switsch aspx-Page in design view
Sep 21, 2020 08:41 AM|vve|LINK
Enwironment:
VS 2019 (or earlier)
TFS
Application:
WebForms with MasterPage
bootstrap etc. Standard.Configuration
Problem:
after the download of the latest version from TFS I can't switch the aspx-WebForm to Design Mode.
It show me a few seconds a Form in Design Mode without MAster Page settings (withour css etc), then come hourglass and then will be Visual Studio closed.
Which workaround I found: I should each time after download a latest version first of all to edit the aspx-WebForm (cut content, save, and paste content and save).
After that I can switch between SourceCode and DesignView Mode without problem.
Question:
P.S.
The Problem I had also with VS2017. All Patches and Fixes are installed.
Thanks
Contributor
3730 Points
1429 Posts
Re: Visual Studio crash after switsch aspx-Page in design view
Sep 22, 2020 03:29 AM|yij sun|LINK
Hi vve,
Accroding to your description,as far as I think,something in the Solution File (the .sln file) of the Web project is now screwed, so you got to delete that.
In my case I save them in the default location, so in the “C:\Users\MyName\Source\repos” folder. Just delete the whole sub-folder that VS created there for your Web App - the “.sln” file will be gone too.Open your Web project again, and everything works.
Best regards,
Yijing Sun
None
0 Points
6 Posts
Re: Visual Studio crash after switsch aspx-Page in design view
Oct 01, 2020 02:09 PM|vve|LINK
I think thats not a cause of problem, because it's not happened with other aspx Pages.
Moreover, its not happened in other projects in this solution.
There is only one aspx.page, in one projekt that has this problem. They has a simple master page, bootstrap, custom css and a content in content place holder Maincontent.
The content is lage and have a several gridViews and capsuled controls inside of gridviews.
But as I said, if I edit or checkut aspx page before i switch between modes, that works nice.
Otherweise came "Masterpage will loading.. " and then crash of VS.
I think, that is a bug of VS, which cannot work with a large content.
If I delete subfolder, as You write, I will have a big problems to get solution working again.
Contributor
3730 Points
1429 Posts
Re: Visual Studio crash after switsch aspx-Page in design view
Oct 05, 2020 07:08 AM|yij sun|LINK
Hi vve,
If you're not sure what's causing your crashes or they seem random, then you can capture dumps locally each time Visual Studio crashes and attach those to separate feedback items.You could debug your project on the different computer.
More details,you could refer to below article:
https://docs.microsoft.com/en-us/visualstudio/ide/how-to-increase-chances-of-performance-issue-being-fixed?view=vs-2019#crashes
Best regards,
Yijing Sun