0
votes

I'm creating a sharepoint project with custom webpart that includes custom user controls.

Is there any way to include a web.config file in this project?

Some of the references I'm including use the web.config file.

Thanks

2
My problem is that some references that I'm including need to access a web.config to work properly - nunonaos

2 Answers

0
votes

You can use Property bags for storing configuration settings. Take a look on this post.

You have several options to work with the Property Bags:

  • SharePoint Designer
  • PowerShell
  • Custom code
  • Codeplex solutions (as SharePoint Property Bag Settings, that provides a farm solution to work with the Property Bag using the SharePoint UI).
0
votes

So, I believe there is no way. You have to include your entries in the SharePoint web.config file.

The correct way is not to use a web.config, but if you really need it then use the SharePoint web.config.