Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VS2015 Update 2 Crashes When Creating ASP.NET Core Project #368

Open
RehanSaeed opened this issue Apr 10, 2016 · 7 comments
Open

VS2015 Update 2 Crashes When Creating ASP.NET Core Project #368

RehanSaeed opened this issue Apr 10, 2016 · 7 comments

Comments

@RehanSaeed
Copy link
Contributor

My ASP.NET MVC Boilerplate project template has started causing VS2015 Update 2 to crash out. The project gets created but during the package restore phase it crashes out. I debugged Visual Studio and found that it was throwing the following exception:

System.ObjectDisposedException was unhandled
Message: An unhandled exception of type 'System.ObjectDisposedException' occurred in mscorlib.dll
Additional information: Cannot access a disposed object.

@sayedihashimi Did anything change in Update 2 that could have caused this problem? Are there any workarounds?

@sayedihashimi
Copy link
Member

Can you get a full call stack?

@RehanSaeed
Copy link
Contributor Author

That's all I got when debugging my experimental instance of VS with the extension. Any good resources on how to get a crash dump from VS?

@codewithtyler
Copy link
Member

@RehanSaeed Here's some info on collecting a crash dump.

@RehanSaeed
Copy link
Contributor Author

RehanSaeed commented May 11, 2016

@RandomlyKnighted Thanks for that.

You can find the crash dump here. It was quite large, so I 7-zipped it up.

The crash is a bit random, it occurred the second time I created a new project using my ASP.Net Core template. I suspect it is something to do with VS downloading packages and then my feature selection wizard modifying the package.json, project.json and bower.json files so that VS gets it's state corrupted or it has to start again.

@sayedihashimi
Copy link
Member

There is some JSON serialization exception happening. Do you have any invalid JSON files (any files with comments)

-       $exception  {"Unexpected end when deserializing object. Path 'dependencies.chai', line 44, position 1."}    Newtonsoft.Json.JsonSerializationException

@RehanSaeed
Copy link
Contributor Author

RehanSaeed commented May 12, 2016

Yes, my template starts with code like this with comments in it:

{
  "version": "1.0.0-*",
  "dependencies": {
    // $Start-Glimpse$
    "Glimpse": "2.0.0-beta1",
    // $End-Glimpse$
    "Microsoft.AspNet.Mvc": "6.0.0-rc1-final"
    ...
}

If the developer enables the feature, I I remove the comments or if they disabled the feature, I remove the line between the comments, as well as the comments themselves. Is there some workaround I could use or will this problem be fixed in RC2?

@codewithtyler
Copy link
Member

@RehanSaeed were you able to find a solution to your problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants