开发者

Read web.config from browser-enabled InfoPath form

开发者 https://www.devze.com 2022-12-12 16:50 出处:网络
I\'ve built in C# a dll that accesses the appSettings section from the web.config file in the Inetpub\\wwwroot\\wss\\VirtualDirectories\\80. I do it the way it was described by Microsoft Community her

I've built in C# a dll that accesses the appSettings section from the web.config file in the Inetpub\wwwroot\wss\VirtualDirectories\80. I do it the way it was described by Microsoft Community here. I use this dll in a browser-enabled form published to a SharePoint site collection. It works fine on my local machine, but when i publish it to the 开发者_如何学Pythonserver, it cannot access the configuration file. What could be the reason?


I've found what was wrong. I've checked the path of the config file the application was using. I don't know why, but it was using the web.config from a web application on another port (8080 instead of 80).

I've added the configuration data to that config file and now it works fine.

0

精彩评论

暂无评论...
验证码 换一张
取 消