• Register
0 votes
77 views

Problem :

I am new to ASP.Net  and I have an ASP.Net application which runs correctly on my local development machine.

But when I try to run this application online, it shows me following error

Format of the initialization string does not conform to specification starting at index 0

 I don’t have any clue about this error. Does anybody have any idea regarding solution on this error?

7.5k points

1 Answer

0 votes

Solution :

To resolve this issue please check your connection string. If you need any further help with it then please check Connection Strings, which has the list of commonly used ones.

Please find below the commonly used Connection Strings:

1.    SQL Server 2012

a.      Standard Security

Server=myServerAddress;Database=myDataBase;User Id=myUsername;Password=myPassword;

 

b.      Trusted Connection

    Server=myServerAddress;Database=myDataBase;Trusted_Connection=True;

 

c.       Connection to a SQL Server instance

The server/instance name syntax used in the server option is the same for all SQL Server connection strings.

    Server=myServerName\myInstanceName;Database=myDataBase;User Id=myUsername;Password=myPassword;

2.    SQL Server 2005

a.      Standard Security

Server=myServerAddress;Database=myDataBase;User Id=myUsername;Password=myPassword;

b.      Trusted Connection

    Server=myServerAddress;Database=myDataBase;Trusted_Connection=True;

c.       Connection to a SQL Server instance

The server/instance name syntax used in the server option is the same for all SQL Server connection strings.

Server=myServerName\myInstanceName;Database=myDataBase;User Id=myUsername;Password=myPassword;

3.    MySQL

a.      Standard

                    Server=myServerAddress;Database=myDataBase;Uid=myUsername;Pwd=myPassword;

b.      Specifying TCP port

                    Server=myServerAddress;Port=1234;Database=myDataBase;Uid=myUsername;Pwd=myPassword;

 

4.    Oracle

a.      Using TNS

Data Source=TORCL;User Id=myUsername;Password=myPassword;

b.      Using integrated security

Data Source=TORCL;Integrated Security=SSPI;

c.       Using ODP.NET without tnsnames.ora

Data Source=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=MyHost)(PORT=MyPort)))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=MyOracleSID)));User Id=myUsername;Password=myPassword;

36.1k points

Related questions

0 votes
1 answer 42 views
42 views
Problem : I am having my radcombo machines on aspx page and whenever I try to select any option from them then it gives me following `Server Error in '/' Application. Exception Details: System.InvalidOperationException: Operation is not valid due to the current state of the object. My Version Information: Microsoft .NET Framework Version: 2.0.50727.3634 ASP.NET Version: 2.0.50727.3634
asked Dec 2, 2019 alecxe 7.5k points
0 votes
1 answer 25 views
25 views
Problem : I am very new to ASP.Net. I have created my first ASP.Net application which impersonates the user in order to create the AD group, and after that it launches the powershell process as the user saperately. But because of some reason the group ... I would rather not compromise with the security policy with the server ideally, and this application will be used by around 100+ users.
asked Dec 5, 2019 alecxe 7.5k points
0 votes
2 answers 100 views
100 views
Problem : Currently I am migrating from the Identity 1.0.0 to Identity 2.0.1. But the migrations code generated is nothing about the new IdentityUser. And It does not even add the new columns. So I tried to make the new project and also I ... current context At below line IdentityResult result = await UserManager.CreateAsync(user, model.Password); Any clue about the solution on my above problem?
asked Dec 25, 2019 alecxe 7.5k points
0 votes
2 answers 63 views
63 views
Problem : I am facing below error: Index and length must refer to a location within the string. Parameter name: length I am using below code: string s1 = ddlweek.Text.Substring(0, 8); string s3 = ddlweek.Text.Substring(10, 14); How can I resolve the error?
asked Dec 14, 2019 alecxe 7.5k points
1 vote
1 answer 8 views
8 views
Problem: I am having fundamental knowledge on C#. Currently I am unable to connect to the HTTPS server with the use of WebRequest as I am facing below error message: "The request was aborted: Could not create SSL/TLS secure channel." I understand that my ... my server never really validates a certificate and it fails with a above error. Kindly guide me in fixing above certificate related error.
asked Jun 30 Raphael Pacheco 2.3k points