Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7398825
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T03:55:11+00:00 2026-05-29T03:55:11+00:00

I have an Runtime error when I’m trying to perform login action or create

  • 0

I have an Runtime error when I’m trying to perform login action or create user action on published website.

I have an ASPNETDB.MDF in appData folder, that created from ASP.NET Configuration.
I created new database in hosting, exported from ASPNETDB.MDF to a new database. I changed connection string.
Localy it work perfect, even with new connection string, but after i publish it i have an Runtime error.

I’m using asp login control and CreateUserWizard.
BTW, i’ve created some GridView and SqlDataSource to show all users, and it works.. But login and createWizard are not.

web.config

<configuration>
  <connectionStrings>
    <add name="ConnectionString" connectionString="Server=mssql3322.dotnet-host.com;Database=aspnetdb3;Uid=SomeUserNAme;Password=SomePassword;"  providerName="System.Data.SqlClient"/>  
  </connectionStrings>
   <system.web>    
      <roleManager enabled="true" />
      <authentication mode="Forms" />
      <compilation debug="false" targetFramework="4.0" />     
    </system.web>

</configuration>

BTW, i tryed to add membership provider to web.config and it didn’t work even localy ))

UPD:

The error
A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 – Error Locating Server/Instance Specified)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T03:55:11+00:00Added an answer on May 29, 2026 at 3:55 am

    Well for starters you could add the following to your web.config:

    <configuration>
      <system.web>
        <customErrors mode="off"></customErrors>
      </system.web>
    </configuration>
    

    This should allow you to get a more detailed error message about what is wrong. See if that get’s you started down the right path. It should at least provide more information about what might be wrong.

    Update – try this in your web.config:

    <connectionStrings>
        <remove name="LocalSqlServer" />
        <add name="LocalSqlServer" connectionString="Server=mssql3322.dotnet-host.com;Database=aspnetdb3;Uid=SomeUserNAme;Password=SomePassword;"  providerName="System.Data.SqlClient"/>
        <add name="ConnectionString" connectionString="Server=mssql3322.dotnet-host.com;Database=aspnetdb3;Uid=SomeUserNAme;Password=SomePassword;"  providerName="System.Data.SqlClient"/>
    </connectionStrings>
    

    Update – That worked! Here is a short explanation why:
    By default the ASP membership classes use the connection string LocalSqlServer. The reason the code worked on your local machine is because the connection LocalSqlServer is defined in a machine level config file to point to the local sql database. When you published it the SqlDataSource/GridView worked because it was pulling the connection named ConnectionString that pointed to the correct server. However ASP membership was still trying to connect to the LocalSqlServer connection. The above config just ignores the machine level LocalSqlServer connection and defines it’s own (and it leaves the ConnectionString one in place so that the GridView continues to function).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Trying to create a request only to have a runtime error thrown. Method initiating
i have to create an asp.net page dynamically on runtime. It should work like
I get runtime error when I do this. I have this class: public abstract
I have got an(other) error while trying to upgrade our large project to SL4.
I am trying to have a method in my code behind at runtime add
I have runtime error and I don't know what's the reason . void replace(char
I have problem with asynctask on doInBackground because I get a runtime error this
Can anyone have a solution for this issue Microsoft JScript runtime error: AjaxControlToolkit requires
I have a random Runtime Error 216 that appears on application close. I have
I am getting this runtime error from a new project. I actually don't have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.