Windows Application App.config Files vs. web.config

N

Nick Johnson

I am working to expose functionalitly from a .NET 2.0 assembly (API) as a web
service. The problem I am having is the the API uses the app.config settings
from a windows application to retrieve it's connectionstring.

I have tried adding the entire <connectionStrings> tag from a working
app.config file and placing the contecnts in the <connectionSetrings> tag in
the web.config file without any success.

Here is a portion of the exception that is thrown:

System.NullReferenceException: Object reference not set to an instance of an
object.
at dotnet.API.Properties.Settings.get_Item(String propertyName)
at dotnet.API.Properties.Settings.get_CredentialsConnectionString()
at dotnet.API.dsMasterTableAdapters.PeopleTableAdapter.InitConnection()
at dotnet.API.dsMasterTableAdapters.PeopleTableAdapter.get_Connection()
at dotnet.API.dsMasterTableAdapters.PeopleTableAdapter.InitAdapter()
at dotnet.API.dsMasterTableAdapters.PeopleTableAdapter.get_Adapter()


Thanks for any help...

Nick Johnson
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,228
Members
46,818
Latest member
SapanaCarpetStudio

Latest Threads

Top