For Programmers: Free Programming Magazines  


Home > Archive > ASP .NET > March 2005 > works on my xp pc but not on server...









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

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

2005-03-30, 8:59 pm

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

Karl Seguin

2005-03-30, 8:59 pm

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" <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
>



Ken Cox [Microsoft MVP]

2005-03-31, 3:59 am

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
>


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2010 codecomments.com