David,
If you are running the sample project on the IIS via virtual directory, you
need to pass the virtual directory
Into the OpenWebConfiguration method like this:
System.Configuration.Configuration rootWebConfig =
System.Web.Configuration.WebConfigurationManager.OpenWebConfiguration("/Ajax
Pro6.7.5.1");
System.Configuration.ConnectionStringSettings connString =
rootWebConfig.ConnectionStrings.ConnectionStrings["AjaxDemoConnectionString"
];
In my case I am running the sample project from
http://locahost/AjaxPro6.7.5.1/.
Yuri
-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf
Of David Cruz
Sent: Thursday, October 12, 2006 1:49 PM
To: Ajax.NET Professional
Subject: [ajaxpro] Having problem with AjaxProStarterKit-6175
I'm having the following problem with the AjaxProStarterKit-6175 sample
project, exactly in the AutoComplete example:
System.Configuration.Configuration rootWebConfig =
System.Web.Configuration.WebConfigurationManager.OpenWebConfiguration(null);
System.Configuration.ConnectionStringSettings connString =
rootWebConfig.ConnectionStrings.ConnectionStrings["AjaxDemoConnectionString"
];
here, rootWebConfig.ConnectionStrings.ConnectionStrings doesn't have a
definition for AjaxDemoConnectionString.
can anybody tell me why?
thanks
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ajax.NET Professional" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/ajaxpro
The latest downloads of Ajax.NET Professional can be found at
http://www.ajaxpro.info/
Don't forget to read my blog at http://weblogs.asp.net/mschwarz/
The open source project is now located at
http://www.codeplex.com/Wiki/View.aspx?ProjectName=AjaxPro
-~----------~----~----~----~------~----~------~--~---