For some reason the following model is causing the scaffolding templates to crash it is not giving me an error just the visual studio 2017 dialog stooped responding and then crashes out.
It produces no errors and I checked the event log couldnt see anything linking to scafollding
Also are their any scaffolding templates that output Bootstrap comp table forms ?.
public class basketheader
{
[Key]
public int id { get; set; }
public int orderId { get; set; }
public string title { get; set; }
public string description { get; set; }
public string emailBasket { get; set; }
public decimal basketTotal { get; set; }
public int currency { get; set; }
public bool isDeleted { get; set; }
public bool isActive { get; set; }
public DateTime createDated { get; set; }
public bool isSaved { get; set; }
public string notes { get; set; }
public int basketSessionId { get; set; }
public string EnteredBy { get; set; }
public BasketStatus BasketStatusSetting { get; set; }
public enum BasketStatus
{
Basket=0,
Order = 1,
Abandon=2,
FailedPayment=3,
Discarded=4
}
}
Yu said your visual studio 2017 dialog stooped responding and then crashes out.
I think this has nothing to do with your model.
I could add a scaffolding by using your model.
So, I suggest you could open you solution I vs, then add scaffolding again.
Best regards
Cathy
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.
Check the scaffold created in my project by using your model:
After I create a record. Index view as below:
To find out if your problem is caused by a misbehaving add-in, run Visual Studio in safe mode from the command-line:
c:\> devenv /SafeMode
Then try to create a controller again.
If it works, disable any installed add-ins one by one to find out which one is causing the problem and update/remove it(or contact appropriate tech support).
If not, you are likely to deal with a corrupt installation in which case it's probably wise to reinstall Visual Studio.
You also could try the solution in the following links:
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.
Member
5 Points
30 Posts
Following Model Casuing Scaffolding to crash
Sep 25, 2017 07:26 PM|rogue1nib|LINK
For some reason the following model is causing the scaffolding templates to crash it is not giving me an error just the visual studio 2017 dialog stooped responding and then crashes out.
It produces no errors and I checked the event log couldnt see anything linking to scafollding
Also are their any scaffolding templates that output Bootstrap comp table forms ?.
Star
8670 Points
2882 Posts
Re: Following Model Casuing Scaffolding to crash
Sep 26, 2017 07:52 AM|Cathy Zou|LINK
Hi rogue1nib,
Yu said your visual studio 2017 dialog stooped responding and then crashes out.
I think this has nothing to do with your model.
I could add a scaffolding by using your model.
So, I suggest you could open you solution I vs, then add scaffolding again.
Best regards
Cathy
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.
Member
5 Points
30 Posts
Re: Following Model Casuing Scaffolding to crash
Sep 27, 2017 04:48 PM|rogue1nib|LINK
Tried this its def something to do with visual studio it is persitant
Star
8670 Points
2882 Posts
Re: Following Model Casuing Scaffolding to crash
Sep 28, 2017 03:03 AM|Cathy Zou|LINK
Hi rogue1nib
Check the scaffold created in my project by using your model:
After I create a record. Index view as below:
To find out if your problem is caused by a misbehaving add-in, run Visual Studio in safe mode from the command-line:
Then try to create a controller again.
If it works, disable any installed add-ins one by one to find out which one is causing the problem and update/remove it(or contact appropriate tech support).
If not, you are likely to deal with a corrupt installation in which case it's probably wise to reinstall Visual Studio.
You also could try the solution in the following links:
https://social.msdn.microsoft.com/Forums/vstudio/en-US/23163b75-26b9-473d-a1e2-0331eb71f774/visual-studio-2015-hangs-when-adding-a-controlle-in-an-aspnet-mvc-project?forum=visualstudiogeneral
http://digioz.blogspot.sg/2013/06/visual-studio-2012-freezes-or-crashes.html
https://forums.asp.net/t/2064906.aspx?Bug+Add+Controller+hangs+with+No+response+after+MVC+added+to+legacy+webforms+application+
Best regards
Cathy
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.