Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Cannot connect to localdb on hosting server

Posted on 2015-01-31
4
Medium Priority
?
447 Views
Last Modified: 2015-02-02
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.
0
Comment
Question by:rrhandle8
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 16

Accepted Solution

by:
Kamal Khaleefa earned 2000 total points
ID: 40582298
you need to know the exact file location on the hosting server.
try to go to the control panel and see what is the physical path of your site then put that value in your connection string or web.config ....etc
0
 

Author Closing Comment

by:rrhandle8
ID: 40585321
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.
0
 
LVL 16

Expert Comment

by:Kamal Khaleefa
ID: 40585518
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 .....
0
 
LVL 16

Expert Comment

by:Kamal Khaleefa
ID: 40585519
or send an email to your hosting to give you the path
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

One of the pain points with developing AJAX, JavaScript, JQuery, and other client-side behaviors is that JavaScript doesn’t allow for cross domain request for pulling content. For example, JavaScript code on www.johnchapman.name could not pull conte…
In an ASP.NET application, I faced some technical problems. In this article, I list them out and show the solutions that I found.  I hope it will be useful. Problem: After closing a pop-up window, the parent page should be refreshed automaticall…
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

610 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question