views:

173

answers:

1

Hi

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 server, it cannot access the configuration file. What could be the reason?

A: 

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.

Alexandr