asp.net - The connection string specifies a local Sql Server Express instance using a database location within the application's App_Data directory. -


i'm building sms application , error. don't understand error because i'm beginner.

the connection string specifies local sql server express instance using database location within application's app_data directory. provider attempted automatically create application services database because provider determined database not exist. here it's showing sql server express want use sql server 2008 db.

an unhandled exception generated during execution of current web request. information regarding origin , location of exception can identified using exception stack trace below.

stack trace:

[sqlexception (0x80131904): network-related or instance-specific error occurred while establishing connection sql server. server not found or not accessible. verify instance name correct , sql server configured allow remote connections. (provider: sql network interfaces, error: 26 - error locating server/instance specified)]
system.data.sqlclient.sqlinternalconnection.onerror(sqlexception exception, boolean breakconnection) +5066458
system.data.sqlclient.tdsparser.throwexceptionandwarning() +234
system.data.sqlclient.tdsparser.connect(serverinfo serverinfo, sqlinternalconnectiontds connhandler, boolean ignoresniopentimeout, int64 timerexpire, boolean encrypt, boolean trustservercert, boolean integratedsecurity) +341
system.data.sqlclient.sqlinternalconnectiontds.attemptonelogin(serverinfo serverinfo, string newpassword, boolean ignoresniopentimeout, timeouttimer timeout, sqlconnection owningobject) +129
system.data.sqlclient.sqlinternalconnectiontds.loginnofailover(serverinfo serverinfo, string newpassword, boolean redirecteduserinstance, sqlconnection owningobject, sqlconnectionstring connectionoptions, timeouttimer timeout) +270
system.data.sqlclient.sqlinternalconnectiontds.openloginenlist(sqlconnection owningobject, timeouttimer timeout, sqlconnectionstring connectionoptions, string newpassword, boolean redirecteduserinstance) +195 system.data.sqlclient.sqlinternalconnectiontds..ctor(dbconnectionpoolidentity identity, sqlconnectionstring connectionoptions, object providerinfo, string newpassword, sqlconnection owningobject, boolean redirecteduserinstance) +232
system.data.sqlclient.sqlconnectionfactory.createconnection(dbconnectionoptions options, object poolgroupproviderinfo, dbconnectionpool pool, dbconnection owningconnection) +5080107
system.data.providerbase.dbconnectionfactory.createnonpooledconnection(dbconnection owningconnection, dbconnectionpoolgroup poolgroup) +31
system.data.providerbase.dbconnectionfactory.getconnection(dbconnection owningconnection) +76
system.data.providerbase.dbconnectionclosed.openconnection(dbconnection outerconnection, dbconnectionfactory connectionfactory) +126
system.data.sqlclient.sqlconnection.open() +125
system.web.management.sqlservices.getsqlconnection(string server, string user, string password, boolean trusted, string connectionstring) +82

[httpexception (0x80004005): unable connect sql server database.]
system.web.management.sqlservices.getsqlconnection(string server, string user, string password, boolean trusted, string connectionstring) +137
system.web.management.sqlservices.setupapplicationservices(string server, string user, string password, boolean trusted, string connectionstring, string database, string dbfilename, sqlfeatures features, boolean install) +94
system.web.management.sqlservices.install(string database, string dbfilename, string connectionstring) +27
system.web.dataaccess.sqlconnectionhelper.createmdffile(string fullfilename, string datadir, string connectionstring) +395

have added connection string web.config file? if have, like? sorry can't add comments due not having enough points.


Comments

Popular posts from this blog

c# - How Configure Devart dotConnect for SQLite Code First? -

java - Copying object fields -

c++ - Clear the memory after returning a vector in a function -