473,320 Members | 1,853 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

works on my xp pc but not on server...

I have a small application that accesses the webconfig file for the
connection string. The connection string has been encrypted. The app works
fine in IIS 5.1 on my xp machine but when I try it on windows 2003 server,
whenever the app needs to access the connection string it give me the below
error:

Format of the initialization string does not conform to specification
starting at index 0.
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.ArgumentException: Format of the initialization
string does not conform to specification starting at index 0.

Source Error:

An unhandled exception was generated during the execution of the current web
request. Information regarding the origin and location of the exception can
be identified using the exception stack trace below.
Any help would be much appreciated... Thanks in advance.

Thanks,

Mike

Nov 19 '05 #1
2 1138
Mike:
I can only guess that a different version of mdac or something is installed
on the two machines...it seems like your connection string has an error in
it that one system tolerates and the other doesn't (or a feature which isn't
supported in one vs the other).

Check out http://connectionstrings.com or provide us your connection string
(replace sensitive information with dummy data).

Karl
--
MY ASP.Net tutorials
http://www.openmymind.net/ - New and Improved (yes, the popup is annoying)
http://www.openmymind.net/faq.aspx - unofficial newsgroup FAQ (more to
come!)
"Mike" <Mi**@discussions.microsoft.com> wrote in message
news:43**********************************@microsof t.com...
I have a small application that accesses the webconfig file for the
connection string. The connection string has been encrypted. The app works
fine in IIS 5.1 on my xp machine but when I try it on windows 2003 server,
whenever the app needs to access the connection string it give me the below error:

Format of the initialization string does not conform to specification
starting at index 0.
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.ArgumentException: Format of the initialization
string does not conform to specification starting at index 0.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Any help would be much appreciated... Thanks in advance.

Thanks,

Mike

Nov 19 '05 #2
Hi Mike,

Does it work if you don't use an encrypted string?

Is the other machine running DPAPI?

http://msdn.microsoft.com/library/de...l/secmod22.asp

"Mike" <Mi**@discussions.microsoft.com> wrote in message
news:43**********************************@microsof t.com...
I have a small application that accesses the webconfig file for the
connection string. The connection string has been encrypted. The app works
fine in IIS 5.1 on my xp machine but when I try it on windows 2003 server,
whenever the app needs to access the connection string it give me the
below
error:

Format of the initialization string does not conform to specification
starting at index 0.
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.ArgumentException: Format of the initialization
string does not conform to specification starting at index 0.

Source Error:

An unhandled exception was generated during the execution of the current
web
request. Information regarding the origin and location of the exception
can
be identified using the exception stack trace below.
Any help would be much appreciated... Thanks in advance.

Thanks,

Mike


Nov 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

26
by: Dan Nash | last post by:
Hi guys I have a page that is *supposed* to list the directories on the server. Here's the code... folderspec = server.MapPath("./images/") set fso =...
1
by: Gerd Güldenast | last post by:
Hi, I am having a problem with a replication over a Modem-Connection, which works fine over LAN. Has anyone experienced this problem before? Settings are: 2 SQL Servers 2000, SP3 on Windows...
3
by: Vincento Harris | last post by:
Can anyone give clues as to why the same copy command works in DOS and not in xp_command shell.I am an admin in both servers and in the database. The results indicate one file is copied but no...
6
by: Ook | last post by:
I've given up on MySQL for now - and just built a basic c# dotnet asp web app. It works. However, if I try to view the app in a non-Microsoft browser, it doesn't do anything. Specifically, I'm...
0
by: Peter Row | last post by:
Hi, BACKGROUND: Win2K Server SP4, ASP.NET 1.1 Win2K Pro SP4, ASP.NET 1.1 I have a wrapper class around all the asp objects. Website physical directory structure (phoney names) Server:...
15
by: KBuser | last post by:
I recently developed an internal website with various queries against our SQL server. I added buttons with Response.Redirect. These buttons do not work with Internet Explorer, however when using...
0
by: patmg | last post by:
Hello, We use a SQL Server database to manage accounts in AD via a COM object using ADSI written in VB6. I have to move this database to a new server. The only real difference between the two...
6
by: nild | last post by:
Hello i have a strange problem. I'm using LogonUser to impersonate the user under which my program must run. On Win XP or Server 2003 it works. But on 2000 it doesn't. So i found out, to set...
1
by: Ted | last post by:
In MS SQL I used the following to create a stored procedure. USE AdventureWorks; GO IF OBJECT_ID ( 'HumanResources.usp_My_Search', 'P' ) IS NOT NULL DROP PROCEDURE HumanResources.usp_My_Search;...
8
by: Brett | last post by:
I wrote an ASP.NET application that queries a SQL Server database (on a different box from the web server) and displays the result in a GridView. The datasource for the GridView is a SQLDataSource....
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.