Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by enderandpeter · Jan 12, 2018 at 06:11 PM · c#scripting problemvisual studiofatal error

Why does a script launched in Visual Studio from Unity say "Unrecognized Guid Format"?

So, I recently updated from Unity 5 to 2017.3.0f3. I had some problems getting this back in order but things are slowly returning to normal. I'm trying to open a Unity script in Visual Studio. Unity will launch Visual Studio and you even see the files in the project, but it keeps showing error windows. Also, MonoDevelop will additionally start up. At first, MonoDevelop was having trouble running until I updated the Gtk# for Windows. Now, I still get those error windows in Visual Studio.

The popup window that keeps coming up says "The 'Microsoft.VisualStudio.Editor.Implementation.EditorPackage' package did not load correctly. The problem may have been caused bya configuration change or by the installation of another extension..."

When I try to open the script file in Visual Studio as I see it there in the Solution panel, I get an error window saying "Unrecognized Guid format".

So, how might I get Unity to open scripts in Visual Studio without a problem...?

Comment
Add comment · Show 3
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image enderandpeter · Jan 12, 2018 at 06:24 PM 0
Share

Just wanted to add that when I open the .sln file Unity created, I'm able to open the script file just fine. It's only when opening the script from Unity that I get all the errors. Working with the script file after opening the Solution file directly in VS appears to be a workaround for now.

According to %APPDATAA%\Roa$$anonymous$$g\$$anonymous$$icrosoft\VisualStudio\15.0_8df82ecc\ActivityLog.xml, I think the bulk of the real error is:

LegacySitePackage failed for package [$$anonymous$$icrosoft.VisualStudio.Editor.Implementation.EditorPackage]Source: 'mscorlib' Description: Unrecognized Guid format. System.FormatException: Unrecognized Guid format. at System.Guid.TryParseGuid(String g, GuidStyles flags, GuidResult& result) at System.Guid..ctor(String g) at $$anonymous$$icrosoft.VisualStudio.Editor.Implementation.LanguageServiceToContentType$$anonymous$$apper.$$anonymous$$akeLanguageServiceContentTypes(SettingsStore settingsStore) at $$anonymous$$icrosoft.VisualStudio.Editor.Implementation.LanguageServiceToContentType$$anonymous$$apper.InitLanguageServiceToContentType$$anonymous$$apper(IServiceProvider serviceProvider) at $$anonymous$$icrosoft.VisualStudio.Editor.Implementation.EditorPackage.Initialize() at $$anonymous$$icrosoft.VisualStudio.Shell.Package.$$anonymous$$icrosoft.VisualStudio.Shell.Interop.IVsPackage.SetSite(IServiceProvider sp)

And I have a feeling the incorrect GUID Unity is using might be E269B994-EF71-4CE0-8BCD-581C217372E8 ins$$anonymous$$d of the EE04719D-5C14-A3C9-B8B3-A1914BD2798B as defined in the <ProjectGuid> element in the .csproj file.

avatar image enderandpeter · Jan 15, 2018 at 01:04 AM 0
Share

I also wanted to add that although I've not found a solution, a workaround that seems to be okay for now is that I can open the Solution file independently in Visual Studio and then edit the script files without issue from there. So there's only a problem when opening the scripts from Unity.

avatar image Hoorza · Nov 01, 2021 at 09:38 PM 0
Share

Hi, does anyone have this problem still? I got it now in 2020 and, 2018, and 2021. Same as @enderandpeter said. Can start script from VS but whenever I go from Unity it gives me an error and "Unrecognized Guid Format" issue.

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by Ginxx009 · Jan 15, 2018 at 01:13 AM

Try this solution mate

  • Navigate to devenv.exe by right clicking Visual Studio from start, click properties, and select "Open File Location...".

  • Right click on devenv.exe and select "Troubleshoot Compatibility".

  • Click "Troubleshoot Program"

  • Uncheck "it worked with older versions of windows"

  • Click "Next"

  • Click "Test the program"

  • Confirm everything opens correctly

  • Click "Next"

  • Click "Yes, save these settings for this program"

If this doesn't work for you try running the VS as administration .

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image enderandpeter · Jan 15, 2018 at 01:58 AM 0
Share

I'm not sure if changing the compatibility settings or forcing it to run as ad$$anonymous$$ is the best solution for my case because I use Visual Studio for other C# program$$anonymous$$g as well and it has not had any problem from what I can tell, and I'm wary of inadvertently causing another issue. I'm somewhat doubtful that's the culprit because there's just no way the latest IDE from $$anonymous$$icrosoft has compatibility issues with the latest OS from the same company.

Also, when I open the Solution file for the Unity scripts directly from VS, I'm able to edit the scripts without issue, leading me to believe that VS itself is probably okay but something's off with the way Unity is launching this Solution.

avatar image Hoorza · Nov 01, 2021 at 09:38 PM 0
Share

Hi, does anyone have this problem still? I got it now in 2020 and, 2018, and 2021. Same as @enderandpeter said. Can start script from VS but whenever I go from Unity it gives me an error and "Unrecognized Guid Format" issue.

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

444 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

How to get referenced object from TransparentProxy? 0 Answers

Unity scripting - Script one can't find script2 via getComponent but script2 can 1 Answer

Multiple Cars not working 1 Answer

Keeping the int value "min" to be used in another scene. 2 Answers

Script not checking if a different script is active. 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges