DAL2: Getting started error 'Unable to find the requested .Net Framework Data Provider'
Add an Answer
Your question has been submitted and is awaiting moderation.
Thank you for reporting this content, moderators have been notified of your submission.
I'm starting out with a blank project (based on Chris Hammond's DAL2 template.) I'm using DNN 7.0.6. After building my first data class and controller, I go in for a test and poof!
{"Message":"An error has occurred.","ExceptionMessage":"Unable to find the requested .Net Framework Data Provider. It may not be installed.","ExceptionType":"System.ArgumentException","StackTrace":" at System.Data.Common.DbProviderFactories.GetFactory(String providerInvariantName)\r\n at PetaPoco.Database.CommonConstruct()\r\n at PetaPoco.Database..ctor(String connectionStringName)\r\n at DotNetNuke.Data.PetaPoco.PetaPocoDataContext..ctor(String connectionStringName, String tablePrefix)\r\n at DotNetNuke.Data.DataContext.Instance()\r\n at AgencyRevolution.Modules.Resources.Controllers.TemplateController.CreateItem(Template t) in c:\\Websites\\AR-Clients\\DesktopModules\\Resources\\Controllers\\TemplateController.cs:line 26\r\n at AgencyRevolution.Modules.Resources.ApiControllers.TemplateController.AddUpdate(Template template) in c:\\Websites\\AR-Clients\\DesktopModules\\Resources\\ApiControllers\\TemplateController.cs:line 23\r\n at lambda_method(Closure , Object , Object[] )\r\n at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.c__DisplayClass13.b__c(Object instance, Object[] methodParameters)\r\n at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.Execute(Object instance, Object[] arguments)\r\n at System.Threading.Tasks.TaskHelpers.RunSynchronously[TResult](Func`1 func, CancellationToken cancellationToken)"}
What is this error about? Google isn't giving me anything related to DNN.
One Stack Article looks promising, but I'm not even sure what the correct Data Provider values would be.