Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Question
Monday, October 12, 2015 3:51 PM
Since we began using VS 2015 and TFS 2013, we have had frequent problems with the Winforms designer when it is displaying usercontrols. Some of these usercontrols are in the same project as the exe, but some of them are not.
For example, I open the form designer containing a usercontrol and make a change such as resizing the form (no problem). I then run the exe in debug mode and then stop debugging. If I then try to resize the form in the designer, I get "Could not load file or assembly 'EXE ASSEMBLY NAME, version=2.0.5763.17561, Culture=neutral, PublicKeyToken=...". Once I get this message, I can't make any further changes or run the project again. Often times it will not allow me to save, so I have to close the solution without saving.
This problem doesn't always occur after debugging though. I use this as an example because it consistently triggers the issue. However, I frequently have the problem as we are going back and forth between editing code and modifying controls in the designer. We have to be careful to save each time we make code changes before making changes in the designers, otherwise, we get the error and are forced to close the project and loose work.
I've tried some of the suggestions offered on similar posts (making sure there are no commas in the assembly name, selecting "Any CPU").
All replies (11)
Tuesday, October 13, 2015 7:38 AM
Hi Joel Hammond,
Thank you for posting in MSDN forum.
For your issue, please check the following to see if it helps:
(1) Delete ALL bin and obj directories for all the projects in the solution.
(2) Delete the folder: C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\PublicAssemblies
Before you delete it, please make sure that you have back up it.
(3) Please open Windows Explorer, and navigate to <Visual Studio Installation Path>\Common7\IDE (by default is C:\Program Files or Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE), and run the following commands:
a.devenv.exe /resetsettings, it will restore Visual Studio default settings. Optionally resets the settings to the specified .vssettings file.
b.devenv.exe /resetuserdata, it will take a couple of minutes to run as Visual Studio cleans up and sets itself back to its original state. You may open Task Manager at this point to check whether the devenv.exe process is still running. After it has completed running, you can restart Visual Studio.
Best Regards,
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.
Tuesday, October 13, 2015 3:54 PM
I'm still having the problem. However, the first time I tried to reproduce it, it seemed to have worked. Then, after restarting VS the problem came back.
Now, I am also getting "The 'VSPackage' package did not load correctly".
Wednesday, October 14, 2015 8:00 AM
Hi Joel Hammond,
To make sure whether it is related to the add-ins, please run the following command:
devenv.exe /safemode, this can eliminate the possibility that third party Add-ins or packages are causing problems. Thus ensuring stable execution.
If in safe mode, it works, I doubt that it is related to the add-ins, please go to Tools -> Extenions and Updates to uninstall all the extensions, and go to Tools -> Add-in Manager, and disable all the add-ins.
If in safe mode, it still doesn't work, please run the following command and upload the ActivityLog.xml file to https://skydrive.live.com/ and share the link here.
Devenv.exe /log, to start Visual Studio and log all activity to the log file. By default, the log file is: %APPDATA%\Microsoft\VisualStudio\Version\ActivityLog.xml
Best Regards,
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.
Thursday, October 15, 2015 8:31 PM
I've uninstalled 2015. Then I reinstalled 2013 and 2015 and still have the problems. Here is my ActivityLog.xml...
Friday, October 16, 2015 6:05 AM
Hi Joel Hammond,
I found the following error from your ActivityLog.xml:
Extension will not be loaded because an extension with the same ID 'Microsoft.VisualStudio.TeamFoundation.TeamExplorer.Extensions' is already loaded at C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 14.0\COMMON7\IDE\EXTENSIONS\O5CGPI52.CG4\..
* C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 14.0\COMMON7\IDE\COMMONEXTENSIONS\MICROSOFT\TEAMFOUNDATION\TEAM EXPLORER\*
Please go to Tools -> Extensions and Updates, search for "teamexplorer", uninstall and reinstall it to see if it helps.
Best Regards,
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.
Friday, October 16, 2015 4:28 PM
I don't have any Extensions for teamexplorer showing up in the Extentions list. It seems that this extension is built into VS 2015. I see no way to install or uninstall it. Just to be sure, I uninstalled all of the other extensions that had an uninstall button.
Thank you for helping!
Tuesday, October 20, 2015 10:04 AM
Hi Joel Hammond,
>>"Could not load file or assembly 'EXE ASSEMBLY NAME, version=2.0.5763.17561, Culture=neutral, PublicKeyToken=...".
What is the real assembly? Is it the custom control or others?
Whether all Winform apps have the same issue? If just the specific app has this issue, maybe it is not the VS IDE /setup issue.
Could you get the assembly in your project references? Maybe you could remove and re-add it again. Or you would make sure that all projects are builded using the same .NET Framework version and Platform target(Any CPU/X86/X64) if it has the project refereces in the same solution.
For the reference dll files, maybe you could set the property "copy local=true" if it is the custom or third party dll files or others.
If still no help, you could share us a simple sample using one drive, we would test it in our side.
Of course, if all projects have the same issue, we would collect the detailed step logs.
Please use http://aka.ms/vscollect to gather the VS and .Net Frameowrk installation logs. After using it, you will find vslogs.cab from %temp% folder. Please upload the file to Onedrive and share the link here.
Thanks,
Jack
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.
Tuesday, October 20, 2015 10:15 PM
The main exe project seems to be the one reporting the error. I was wrong about my earlier description where I said the problem was occurring on forms that had controls from another project. It turns out that the problem surfaces when I try to resize any form after doing a build or running in debug mode. What we've been doing is closing the designer windows after we make each change, before building.
Tuesday, October 20, 2015 10:54 PM
I have had a similar problem with C++ projects and the form designer.
For some reason sometimes it doesn't display the designer form I just get an error.
n.Wright
Wednesday, October 21, 2015 10:56 AM
We have VS2015 and TFS2013 and if i using the designer i get the same error. I redsign a UserControl but i can't really work with VS2015 because i get this error every 2 min.
Joel description with error after build/debug -> resize -> error, can i confirm.
I try the safemode, but chance nothing.
I switched to VS2013, there i didn't have any trouble.
Friday, October 23, 2015 1:38 AM
Hi Joel Hammond,
To make sure whether it is related to the installation, could you upload your log files to us as Jack suggested?
Best Regards,
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.