Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDevelopment and...Development and...SQL and SQL Ser...SQL and SQL Ser...Connection to external SQL Server connection string problemConnection to external SQL Server connection string problem
Previous
 
Next
New Post
4/23/2012 6:04 PM
 

I am having an issue running a module that connects to an external database.  My environment is as follows:

 Dev Machine & Production Server - DNN 6.1.5, VS2010.

On my dev machine, I created a c# project using Chris Hammond's template in the /desktopmodules folder per the instructions in his videos.  I originally attempted to use the entity framework to access my external data, but couldn't get it to work so I gave up and went back to classic ado.net.  I have a sqldatasource being used by a datagridview.  I created a new connectionstring in the web.config in the root of the dnn site, which is being utilized by the sqldatasource.  This all works great on my dev machine.  I then package and add the module to my production install, add the connection string to the web.config and add to a page.  I cannot get past this error when accessing the page:

Error: TestPlan is currently unavailable. DotNetNuke.Services.Exceptions.ModuleLoadException: The connection name 'conIOS' was not found in the applications configuration or the connection string is empty. ---> System.InvalidOperationException: The connection name 'conIOS' was not found in the applications configuration or the connection string is empty. at System.Web.Compilation.ConnectionStringsExpressionBuilder.GetConnectionString(String connectionStringName) at ASP.desktopmodules_testplan_view_ascx.__BuildControlTree(desktopmodules_testplan_view_ascx __ctrl) at System.Web.UI.TemplateControl.LoadControl(IWebObjectFactory objectFactory, VirtualPath virtualPath, Type t, Object[] parameters) at System.Web.UI.TemplateControl.LoadControl(VirtualPath virtualPath) at DotNetNuke.UI.ControlUtilities.LoadControl[T](TemplateControl containerControl, String ControlSrc) at DotNetNuke.UI.Modules.ModuleControlFactory.LoadModuleControl(TemplateControl containerControl, ModuleInfo moduleConfiguration) at DotNetNuke.UI.Modules.ModuleHost.LoadModuleControl() --- End of inner exception stack trace ---

 I have confirmed that this connectionstring does exist in the web.config file in the root of the site.  What am I missing?  I am a total dnn newbie, so I appreciate any ideas or suggestions regarding a better way to access external data.

 
New Post
4/24/2012 4:25 AM
 
please make sure, connection string with exact name (capitalization) exist in your web.config, section connectionStrings and maybe even app Settings, if you are using the old access format.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
Previous
 
Next
HomeHomeDevelopment and...Development and...SQL and SQL Ser...SQL and SQL Ser...Connection to external SQL Server connection string problemConnection to external SQL Server connection string problem


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out