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 9113823
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T04:03:18+00:00 2026-06-17T04:03:18+00:00

I have to deploy ASP.Net application with remote database connection in IIS server. Deployment

  • 0

I have to deploy ASP.Net application with remote database connection in IIS server.

Deployment has worked fine without database. And I was able to run that application on the IIS server.

Coming to the application with remote database I have given the connection string in C# code. And it is connected.

My web.config has thsi connection string :

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

I have replaced that with my database connection credentials as follows:

<configuration>
  <connectionStrings>
    <add name="ApplicationServices"
         connectionString="Data Source=RemoteHost,1433;Initial Catalog=DBNAME;user Id=MyUserId;Password=MyPassword"
         providerName="System.Data.SqlClient" />
  </connectionStrings>

In Package/Publish options I have selected (Import from web.config) and deployed that. Then I got the following error:

Web deployment task failed.(Object of type ‘dbFullSql’ and path ‘Data
“Data Source=RemoteHost,1433;Initial Catalog=DBNAME;user
Id=MyUserId;Password=MyPassword” cannot be created.)

Object of type ‘dbFullSql’ and path “Data Source=RemoteHost,1433;Initial Catalog=DBNAME;user
Id=MyUserId;Password=MyPassword” cannot be created.

The source is invalid.
Script failed for Database ‘DBNAME’.
Script failed for Database ‘DBNAME’.
Index was outside the bounds of the array.

I am new to ASP.Net. Anybody please help me.

Thank you in advance

  • 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-17T04:03:20+00:00Added an answer on June 17, 2026 at 4:03 am

    I think you didn’t configure Web deployment package correct you can do that right Click on Project ,Select Properties and go to package/Publish SQL
    I have add link for Walkthrough: Deploying a Web Application Project Using a Web Deployment Package (Part 1 of 4) for VS2010
    http://msdn.microsoft.com/en-us/library/dd483479(v=vs.100).aspx

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

Sidebar

Related Questions

I have an asp.net 2.0 application that i want to deploy to a server.
I have to deploy my ASP.NET application into two seperated IIS servers. My application
Team, I have an ASP.NET MVC application that I'm deploying. When I deploy it
I have created a ASP.NET website and deploy it in IIS 7 (in place
I have a web application in asp.net and C# that must access a remote
I am trying to deploy my ASP.NET website with database (SQL Server 2008) on
How to deploy the subsonic asp.net mvc application. Do i have to install anything.
We currently have an ASP.NET Web Application running on a single server. That server
Can anyone help. I have an ASP.NET application which has a web.config file so
When I deploy an ASP.NET MVC3 application to an IIS 7.5 on WindowsServer 8RC2

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.