Error when creating a SQLDataSource

B

BobLaughland

Hi There,

I have created an ASP .NET web site. Whenever I try to create an
SQLDataSource I get the following message,

'Following error occured while getting connection string information
from configuration. "Cannot get web application service" '

I have the following line in my web.config file, so I don't understand
it,

<connectionStrings>
<add name="ConnectionString" connectionString="Data
Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\ASPNETDB.MDF;Integrated
Security=True;User Instance=True"
providerName="System.Data.SqlClient" />
</connectionStrings>
 
B

BobLaughland

Can't quite remember, but I think I recreated the connection using an
SQLDatasource.

I think I did something dodgy when I was mucking around and the
settings probably went a bit funny.
 

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,236
Members
46,822
Latest member
israfaceZa

Latest Threads

Top