This project is read-only.
1
Vote

ArgumentException: Expecting non-empty string for 'providerInvariantName' parameter.

description

Due to .NET framework limitations on the server that I have to work with, I downloaded the ASP.NET Portal Starter Kit v3.5.0.16650. I compiled the solution and ran Portal_CreateDB.sql and Portal_LoadData.sql. I did not make any modifications to the solution other than the connection string in the app.config.

When I try to open up the site, I get the following error:

"
[ArgumentException: Expecting non-empty string for 'providerInvariantName' parameter.]
System.Data.Common.ADP.CheckArgumentLength(String value, String parameterName) +2105161
System.Data.Common.DbProviderFactories.GetFactory(String providerInvariantName) +21
ASPNET.StarterKit.Portal.Db..cctor() in C:\Purchasing\PODD\ASPNetPortal\source\Framework\Framework\Db.cs:39

[TypeInitializationException: The type initializer for 'ASPNET.StarterKit.Portal.Db' threw an exception.]
ASPNET.StarterKit.Portal.Db.CreateParameter(String ParameterName, Object ParameterValue) in C:\Purchasing\PODD\ASPNetPortal\source\Framework\Framework\Db.cs:61
ASPNET.StarterKit.Portal.DataLayer.DataObjects.SqlServer.LinkDB.GetLinks(Int32 moduleId) in C:\Purchasing\PODD\ASPNetPortal\source\DataLayer\DataObjects\SqlServer\LinksDB.cs:18
ASPNET.StarterKit.Portal.BusinessLayer.Facade.DesktopModulesFacade.Links(Int32 moduleId) in C:\Purchasing\PODD\ASPNetPortal\source\BusinessLayer\Facade\DesktopModulesFacade.cs:134
DesktopModules.Web.QuickLinks.Page_Load(Object sender, EventArgs e) in C:\Purchasing\PODD\ASPNetPortal\source\DevelopmentWebsite\DesktopModules\QuickLinks.ascx.cs:36
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
System.Web.UI.Control.OnLoad(EventArgs e) +99
System.Web.UI.Control.LoadRecursive() +50
System.Web.UI.Control.LoadRecursive() +141
System.Web.UI.Control.LoadRecursive() +141
System.Web.UI.Control.LoadRecursive() +141
System.Web.UI.Control.LoadRecursive() +141
System.Web.UI.Control.LoadRecursive() +141
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627
"

Any ideas on what I can do to handle this? Do I need to run another one of the SQL scripts or something?

comments