Monday, March 12, 2012

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,

MikeMike:
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" <Mike@.discussions.microsoft.com> wrote in message
news:43FD832F-D583-4884-AEE8-A7CEACF3F49F@.microsoft.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
Hi Mike,

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

Is the other machine running DPAPI?

http://msdn.microsoft.com/library/d...ml/secmod22.asp

"Mike" <Mike@.discussions.microsoft.com> wrote in message
news:43FD832F-D583-4884-AEE8-A7CEACF3F49F@.microsoft.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

0 comments:

Post a Comment