本文介绍了webconfig访问denid的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 我搜索但我无法找到解决此问题的方法。当我想保存web.config我收到此错误: 加载配置文件时出错:访问路径'E:\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ .ir\httpdocs\egqz2vnh.tmp'被拒绝。 i使用此代码进行访问并保存webconfig: i search but i cant find a solution for this problem. when i want to save web.config i recieve this error:An error occurred loading a configuration file: Access to the path 'E:\vhosts\some.ir\httpdocs\egqz2vnh.tmp' is denied.i use this code for access and save webconfig: var config = Misconfiguration.OpenWebConfiguration("~");config.AppSettings.Settings["name"].Value = txt1.Text;config.Save(ConfigurationSaveMode.Modified); 任何想法?谢谢any idea? thanks推荐答案 这篇关于webconfig访问denid的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!
10-19 11:49