I have a website that I access with VS 2013 community on a web server. I have a mapped drive to the server (N: mapped to myserver \ inetpub \ myapplication). This has worked with all versions of VS express/community except 2015. When I use VS 2015 community to open the same site, it crashes with a devenv error. When I poke around further, the debugger tells me that the mscorlib.dll is complaining about an invalid path. Just to test, I copied the entire website down to my PC and then opened that local copy with VS 2015. I figured there was a problem with the web.config and I would work with a local copy to narrow down the problem. But, VS 2015 opened the local version without any problems. Is there an issue opening a website with a mapped drive in VS 2015? I also tried opening the VS 2013 solution file with VS 2015 which uses the same server/mapped area and that also caused VS 2015 to crash.
And I still do not have any problems using VS 2013 community to do my development so this isn't preventing me from working, just keeping me from upgrading.
To further test the problem and try and see if there was something wrong with my site, I then did the following:
I went to my web server and created a "test" folder under inetpub. I then mapped a drive letter (X) to that folder.
I launched Visual Studio 2013 community and created a blank web site on drive X - which just created two files in that folder: web.config and web.debug.config . I can close out of VS 2013 and reopen the website from VS 2013 without problems. Can also use VS 2012 or VS 2008.
I then launch VS 2015 community and choose the option to open a web site. I browse to my X drive. VS 2015 opens up and shows the solution explorer on the right side which displays the web.config file underneath "X". But after a few seconds of being unresponsive, it crashes with the message that "Microsoft Visual Studio 2015 has stopped working". Options of Debug or Close Program.
If I click on debug, I get the message: An unhandled exception of type 'System.ArgumentException' occurred in mscorlib.dll. Additional information: Invalid path. No other information specified.
I can copy this blank website to my local drive and open with VS 2015 without issues. Or I can continue to work on this site with all previous VS community/express editions.
In the windows event viewer, I have the following two errors:
The first one:
Log Name: Application Source: .NET Runtime Date: 9/4/2015 11:39:30 AM Event ID: 1026 Task Category: None Level: Error Keywords: Classic User: N/A Computer: mypcname Description: Application: devenv.exe Framework Version: v4.0.30319 Description: The process was terminated due to an unhandled exception. Exception Info: System.ArgumentException Stack: at System.Runtime.CompilerServices.AsyncMethodBuilderCore+<>c__DisplayClass2.<ThrowAsync>b__3(System.Object) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32) at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate) at System.Windows.Threading.DispatcherOperation.InvokeImpl() at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(System.Object) at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean) at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean) at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object) at System.Windows.Threading.DispatcherOperation.Invoke() at System.Windows.Threading.Dispatcher.ProcessQueue() at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef) at MS.Win32.HwndWrapper.WndProc(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef) at MS.Win32.HwndSubclass.DispatcherCallbackOperation(System.Object) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32) at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate) at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(System.Windows.Threading.DispatcherPriority, System.TimeSpan, System.Delegate, System.Object, Int32) at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr, Int32, IntPtr, IntPtr)
The second error:
Log Name: Application Source: Application Error Date: 9/4/2015 11:39:30 AM Event ID: 1000 Task Category: (100) Level: Error Keywords: Classic User: N/A Computer: mypcname Description: Faulting application name: devenv.exe, version: 14.0.23107.0, time stamp: 0x559b7ead Faulting module name: KERNELBASE.dll, version: 6.1.7601.18847, time stamp: 0x554d7b00 Exception code: 0xe0434352 Fault offset: 0x0000812f Faulting process id: 0x262c Faulting application start time: 0x01d0e727db1a7806 Faulting application path: C:\Program Files\Microsoft Visual Studio 14.0\Common7\IDE\devenv.exe Faulting module path: C:\Windows\system32\KERNELBASE.dll Report Id: 21a9ed81-531b-11e5-ab67-e839354352aa
Does anyone have any ideas why VS 2015 is crashing with a mapped drive to a web server? Does anyone else have this type of setup and can this be replicated with others? I don't really know if this is a VS 2015 configuration issue or an issue with the Windows 2008 web server and how VS 2015 communicates with it? Can only guess that it might be trying to find some component that does not exist on the mapped drive. I am really hoping Microsoft can replicate with the steps I've shown and figure out the issue. Appreciate any help you can give.
Thanks,
Ken