-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Starting with .net 4.7, empty System.Windows.Forms.ApplicationConfigurationSection added to web.config #435
Comments
I sent mail to the team ... |
@richlander Thanks for this...for info I have also created a SO "issue" and at least one person confirms this problem: https://stackoverflow.com/questions/44764032/why-latest-net-4-7-adds-an-invalid-configsection-to-my-web-config. This problem happened since the latest Windows 10 "creator's update" was pushed on the target machine and I have managed to reproduce it in my own dev environment. |
Thank you so much aludin for reporting this. Our team has identified the issue and working on a solution that will be available in the next release of .NET framework/Operating System. Meanwhile, you can safely remove the empty <System.Windows.Forms.ApplicationConfigurationSection/> section from web config file and unblock your applications. |
@adreddy507 Many thanks for the feedback. Yes I realized that by removing the |
I actually got this in an app.config for a desktop application -- at one point during initialization, the application runs A slightly sanitized stack trace is below.
|
I just sent mail to the team again. |
Hi narc0tiq, Is it possible to send us a sample app here? Also, can you please provide following details?
Thanks, |
Sample app might take a while, because I'm in the middle of other stuff, but let me get you the other data:
Naturally, the In case it's not obvious, the application rewrites its own app.config (using the |
Hi, Sample code used to repro: private void Form1_Load(object sender, EventArgs e) Thanks |
Ok, I've got code: https://github.com/narc0tiq/dotnet-temp/ Reproduction steps are in the readme, but essentially involve:
The projects include |
Thank you so much for this narc0tiq. We will be looking at it and update this thread soon. |
This issue has not got any input for long time and we have changed were issues are tracked. If this is still an issue kindly raise a new issue in the appropriate repo as mentioned in dotnet/1275 |
I have an asp.net app which can be updated using a dedicated settings page. The corresponding controller writes those settings as key/values under appsettings in the web.config file (to be precise, appsettings uses a referenceSource attribute to reference the file where the appSettings are actually written). This works file with all previous versions of the .net framework.
Starting from .net framework 4.7, the following issue has appeared:
The code for saving the app configuration is given below:
The text was updated successfully, but these errors were encountered: