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

  • SEARCH
  • Home
  • 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 8695157
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T00:57:42+00:00 2026-06-13T00:57:42+00:00

I have created basic login module in ASP.net using C#. I am using C#

  • 0

I have created basic login module in ASP.net using C#. I am using C# web application for this purpose.

Earlier I used SQL Server 2008 Express as a database. At that time application was running fine.

But then I uninstalled that database and installed SQL Server 2008 R2.

From that point onwards I am getting 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: 25 – Connection string is not valid)

I found in config.xml I have code as:

<connectionStrings>
    <add name="ApplicationServices"
         connectionString="data source=.\SQLEXPRESS ;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|\aspnetdb.mdf;User Instance=true"
         providerName="System.Data.SqlClient" />
  </connectionStrings>

where my SQL Server is called MSSQLSERVER.

This connection string must be the issue. But I am not able to resolve this issue.

Is my conclusion correct and can I get some help?

PS: my SQL Server 2008 R2 is installed correctly.

But whenever I try to connect with SQL Server 2008 R2 its connecting to 2008, which is uninstalled but have same name. (both earlier and this server have same name i.e. my computer name.)

  • 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-06-13T00:57:44+00:00Added an answer on June 13, 2026 at 12:57 am

    I have used following connection String:

    <connectionStrings>
        <add name="ApplicationServices"
             connectionString="Server=EGT-GIS;Integrated Security=True;Database=C:\inetpub\wwwroot\AddMarker\Map\Map\App_Data\ASPNETDB.MDF; Asynchronous Processing=False;" />
      </connectionStrings>
    

    And it worked!!!

    But just one concern, is this connection will be safe for Login database?

    Got the connection string help from Connection String and thanks to Marc_s

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

Sidebar

Related Questions

I have created a basic ASP.NET membership application, whereby users can login to view
I have created a basic site using ASP.NET routing according to Mike Ormond's example
I have simple jQuery Mobile site created using asp.net mvc 2 and uses basic
I followed this tutorial to create a sample Login application using ASP.NET MVC I
I have a Rails 3.2.2 application using Ruby version 1.9.2. I have created basic
Please help! I am new to the .NET web application development. I have used
I am newbie to Sencha Touch 2 and have created a basic applications using
We have created a simple wix project for a basic windows application. Everything builds
I have basic hello word example of Prime Faces. I have created dynamic web
I have an application, very basic description: Users login -> they post activities (like

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.