Link to home
Start Free TrialLog in
Avatar of rrhandle8
rrhandle8Flag for United States of America

asked on

Cannot connect to localdb on hosting server

This is a tough one.
I created a web site using Visual Studio 2013.
There are two databases in the App_Data folder.
One is to handle memberships, the other is used by a 3rd-party scheduler app.
The web site was FTP'ed to a server.
Neither database can be connected to.

Here are the connection strings for the web.config file:

  <connectionStrings>
    <add name="DefaultConnection" connectionString="Data Source=(LocalDb)\v11.0;Initial Catalog=aspnet-WillowLane1-f59c4ece-32dd-40f4-9451-1620648a0486;AttachDbFilename=|DataDirectory|\aspnet-WillowLane1-f59c4ece-32dd-40f4-9451-1620648a0486.mdf;Integrated Security=True"
      providerName="System.Data.SqlClient" />
    <add name="DatabaseConnectionString" connectionString="Data Source=(LocalDB)\v11.0;AttachDbFilename=|DataDirectory|\Database.mdf;Integrated Security=True"
      providerName="System.Data.SqlClient" />
  </connectionStrings>

I have played around with the connectionstring trying different things according to other threats I have found on the web, but always end up with an error like this:

Server Error in '/' Application.

The system cannot find the file specified

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.ComponentModel.Win32Exception: The system cannot find the file specified

Source Error:


Line 22:             ' Validate the user password
Line 23:             Dim manager = New UserManager()
Line 24:             Dim user As ApplicationUser = manager.Find(UserName.Text, Password.Text)
Line 25:             If user IsNot Nothing Then
Line 26:                 IdentityHelper.SignIn(manager, user, RememberMe.Checked)

Source File: C:\Inetpub\vhosts\willowlanecare.com\site1\Account\Login.aspx.vb    Line: 24

Stack Trace:


[Win32Exception (0x80004005): The system cannot find the file specified]

Need some guidance here.
ASKER CERTIFIED SOLUTION
Avatar of Kamal Khaleefa
Kamal Khaleefa
Flag of Kuwait image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of rrhandle8

ASKER

King2002 says I need to access the control panel which on the server I do not have access to.  Therefore, I cannot do what I want to.
rrhandle8, every hosting company have a control panel through the web site to entitle you to check you site and properties.

and there they are mentioning the physical path

i don't mean the control panel at the server : Start --->Control Panel .....
or send an email to your hosting to give you the path