the application want read settings writes section of machine.config in c:\windows\microsoft.net\framework\v2.0.50727\config.
but when use following code:
configuration mymc = webconfigurationmanager.openmachineconfiguration(); console.writeline(mymc.filepath.tostring());
the path returned .net 4 machine.config:
c:\windows\microsoft.net\framework\v4.0.30319\config\machine.config
edit: app uses mef, requires .net 4, writing app .net 2 not option.
you can open xml or text file, see: http://support.microsoft.com/kb/307548
you create service runs in .net 2.0, , call service .net 4.0 app.
but why need this?
Comments
Post a Comment