EDN Admin
Well-known member
Hello there,
I developed some app on C# .NET 3.5 framework on my Windows 7 machine. From one day I suddenly cant neither develop nor run this app anymore on my machine. I thought, there is problem in .NET 3.5, but it seems fine (more info on http://social.msdn.microsoft.com/Forums/en-US/netfxsetup/thread/90926163-b715-4954-ada3-d404dc23db9f
)<br/>
It runs with no problems on every computer I tried, only on my not. I can develope it in .NET 3.5 on every other machines, only my not. When I switch app .NET version to 4, it works fine even on my machine.<br/>
I tried to reinstall .NET 3.5 so many times. I tried to reinstall visual studio express 2010 too.<br/>
The exception look like this: "The type initializer for WindowsFormsApplication1.Refactor.SettingsProvider threw an exception."
And its thrown on line: hostname = Properties.Settings.Default.hostname;
It seems there is problem with reading from app config file through "Properties.Settings". But when I comment this line, another exception appears some steps furher (on connection to database).
Another app in C# .NET 3.5 works fine even on my computer.
Thanks for any suggestions.<br/>
View the full article
I developed some app on C# .NET 3.5 framework on my Windows 7 machine. From one day I suddenly cant neither develop nor run this app anymore on my machine. I thought, there is problem in .NET 3.5, but it seems fine (more info on http://social.msdn.microsoft.com/Forums/en-US/netfxsetup/thread/90926163-b715-4954-ada3-d404dc23db9f
)<br/>
It runs with no problems on every computer I tried, only on my not. I can develope it in .NET 3.5 on every other machines, only my not. When I switch app .NET version to 4, it works fine even on my machine.<br/>
I tried to reinstall .NET 3.5 so many times. I tried to reinstall visual studio express 2010 too.<br/>
The exception look like this: "The type initializer for WindowsFormsApplication1.Refactor.SettingsProvider threw an exception."
And its thrown on line: hostname = Properties.Settings.Default.hostname;
It seems there is problem with reading from app config file through "Properties.Settings". But when I comment this line, another exception appears some steps furher (on connection to database).
Another app in C# .NET 3.5 works fine even on my computer.
Thanks for any suggestions.<br/>
View the full article