Error: Invalid variable in a connection string.

Skip Navigation LinksHome  /  Support  /  Forums  /  DynamicPDF Generator for .NET (v4)  /  Error: Invalid variable in a connection string.

DynamicPDF Generator for .NET (v4) Forum

Any thoughts on why I would be getting the error message?:

"Invalid variable in a connection string."

I looked at the ConnectionString in the .dspx document and it looks correct to me. In fact, the application was working great until I moved it to a new server.  This is what it looks like:

<query id="Query1" dataProvider="msSql" connectionString="server=aaa.bbb.ccc.dd;uid=MyUserID;pwd=MyPassword;database=MyDatabase">

Could it be security related?  I did some searching on it and did not find anything at all.  Any thoughts on this would be greatly appreciated!

To add to the details, here is the call stack that is captured when it fails:


System.Web.HttpUnhandledException: Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> ceTe.DynamicPDF.ReportWriter.DplxParseException: Invalid variable in a connection string.
   at zz93.av.a(StringBuilder A_0)
   at zz93.av.b()
   at zz93.et.u()
   at zz93.j.a(et A_0)
   at zz93.fb.a(et A_0)
   at ceTe.DynamicPDF.ReportWriter.DplxFile.a(et A_0)
   at ceTe.DynamicPDF.ReportWriter.DplxFile..ctor(String filePath)
   at ceTe.DynamicPDF.ReportWriter.DocumentLayout..ctor(String filePath)
   at Print1234.Page_Load(Object sender, EventArgs e) in C:\websites\www_1234_com\Leave\Print1234.aspx.vb:line 22
   at System.Web.UI.Control.OnLoad(EventArgs e)
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
   --- End of inner exception stack trace ---
   at System.Web.UI.Page.HandleError(Exception e)
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
   at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
   at System.Web.UI.Page.ProcessRequest()
   at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context)
   at System.Web.UI.Page.ProcessRequest(HttpContext context)
   at ASP.leave_print3065_aspx.ProcessRequest(HttpContext context)
   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
Okay, I solved the problem.  It turns out that it was caused by special characters being a part of the password.  Since the .dspx file is an XML Document, I guess that the special characters would have to be escaped for the document to be well formed.  In the end, I removed the special characters and changed the password in the database and the error went away.
DooD, get a grip, you fokked up the password!
Hi there,

We run a Youtube growth service, where we can increase your subscriber count safely and practically.

- Guaranteed: We guarantee to gain you 700+ new subscribers each month.
- Real, human subscribers who subscribe because they are interested in your channel/videos.
- Safe: All actions are done, without using any automated tasks / bots.

Our price is just $60 (USD) per month and we can start immediately.

If you are interested then we can discuss further.

Kind Regards,
Emily

All times are US Eastern Standard time. The time now is 8:41 AM.