question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error when trying to create Settings file (VB.Net)

See original GitHub issue
  • .NET Core Version: 3.1 or 5.0
  • Have you experienced this same bug with .NET Framework?: No

Problem description: When I create a new .NET Core Windows Forms project in VB.NET and go to Project > Properties > Settings, Visual Studio says that the project doesn’t have a default Settings file. However when I click the message to create a new Settings file I get HRESULT_EXCEPTION 0x80070002 (Unable to find specified file). This issue doesn’t occur in .NET Core C# projects, nor in .NET Framework. Screenshot (103)

Expected behavior: When I click the message, I expect a new empty settings file to be created, like in .NET Framework.

Minimal repro: I just created a blank solution and project and the error immediately displays when I go to Project > Properties > Settings and click on the link to create a new settings file. I’m using Visual Studio 16.8.2, I tried to repair my installation and change .NET Core target version but nothing changed.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:13 (13 by maintainers)

github_iconTop GitHub Comments

1reaction
Zheng-Li01commented, Dec 2, 2020

There have a similar issue 3346 to track it. and have the comments from klaus:https://github.com/dotnet/winforms/issues/3346#issuecomment-706361699

0reactions
RussKiecommented, Sep 1, 2021
Read more comments on GitHub >

github_iconTop Results From Across the Web

Can't create Settings file in Windows Forms .Net Core ...
However, when I try to create it I get this error: ... NET 5.0 but only in VB.NET. In C# I am able...
Read more >
Error accessing my.settings - corrupt user.config
config file. It creates a new user.config with default values and goes on its merry way with no problems. What I have tried:...
Read more >
VB.Net My.Settings is broken - Microsoft Q&A
Connection string settings all generate BC30469 error which I cannot resolve. Development status - dead stopped. Cannot build/debug due to ...
Read more >
VB .NET System.Configuration.ConfigurationErrorsException
Designer.vb ... I tried having visual studio rebuild the settings file. ... Message=An error occurred creating the form. See Exception.
Read more >
Vb.net – Configuration system failed to initialize in .NET
NET. configurationfilevb.net. I have an .NET winforms application(A). ... Although I did not intentionally create a configuration file, one was created by ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found