This project is read-only.

Error in first run:

Jun 10, 2010 at 5:37 PM
Edited Jun 10, 2010 at 8:59 PM
Server Error in '/' Application. Expecting non-empty string for 'providerInvariantName' parameter. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.ArgumentException: Expecting non-empty string for 'providerInvariantName' parameter. Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. Stack Trace: [ArgumentException: Expecting non-empty string for 'providerInvariantName' parameter.] System.Data.Common.ADP.CheckArgumentLength(String value, String parameterName) +2107497 System.Data.Common.DbProviderFactories.GetFactory(String providerInvariantName) +21 NearForums.DataAccess.BaseDataAccess..ctor() +65 NearForums.DataAccess.ForumsDataAccess..ctor() +5 NearForums.ServiceClient.ForumsServiceClient.GetList() +23 NearForums.Web.Controllers.ForumsController.List() +11 lambda_method(ExecutionScope , ControllerBase , Object[] ) +39 System.Web.Mvc.ActionMethodDispatcher.Execute(ControllerBase controller, Object[] parameters) +17 System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters) +178 System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters) +24 System.Web.Mvc.<>c__DisplayClassa.<InvokeActionMethodWithFilters>b__7() +52 System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation) +254 System.Web.Mvc.<>c__DisplayClassc.<InvokeActionMethodWithFilters>b__9() +19 System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodWithFilters(ControllerContext controllerContext, IList`1 filters, ActionDescriptor actionDescriptor, IDictionary`2 parameters) +192 System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) +399 System.Web.Mvc.Controller.ExecuteCore() +126 System.Web.Mvc.ControllerBase.Execute(RequestContext requestContext) +27 System.Web.Mvc.ControllerBase.System.Web.Mvc.IController.Execute(RequestContext requestContext) +7 System.Web.Mvc.MvcHandler.ProcessRequest(HttpContextBase httpContext) +151 System.Web.Mvc.MvcHandler.ProcessRequest(HttpContext httpContext) +57 System.Web.Mvc.MvcHandler.System.Web.IHttpHandler.ProcessRequest(HttpContext httpContext) +7 System.Web.Mvc.MvcHttpHandler.VerifyAndProcessRequest(IHttpHandler httpHandler, HttpContextBase httpContext) +61 System.Web.Routing.UrlRoutingHandler.ProcessRequest(HttpContextBase httpContext) +101 System.Web.Routing.UrlRoutingHandler.ProcessRequest(HttpContext httpContext) +39 System.Web.Routing.UrlRoutingHandler.System.Web.IHttpHandler.ProcessRequest(HttpContext context) +7 NearForums.Web.UI._Default.Page_Load(Object sender, EventArgs e) +95 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.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627 Version Information: Microsoft .NET Framework Version:2.0.50727.4200; ASP.NET Version:2.0.50727.4016
Jun 12, 2010 at 2:18 AM

Me too - same error - the solution is to add:

providerName="System.Data.SqlClient"

as an attribute/value of you connectionString element.

(Did I make that sound like it didn't have me pulling my hair out for several hours??)

Probably shoud mention of this in the install steps...

Andles...

 

Jun 12, 2010 at 2:19 AM

I made an assumption there that you were using sql server, adjust accordingly if not.

Jun 12, 2010 at 11:00 PM

I followed your advice Andles:

Updated the installation guide, included the providerName attribute.

 

Regards!

Oct 15, 2010 at 6:33 AM

Look at the code a headache, I tell a joke!

 

Microsoft vs. GM

At a recent computer expo (COMDEX), Bill Gates reportedly compared the computer industry with the auto industry and stated, If GM had kept up with technology like the computer industry has, we would all be driving twenty-five dollar cars that got 1000 mi/gal.

Recently General Motors addressed this comment by releasing the statement, Yes, but would you want your car to crash twice a day?

And...

1. Every time they repainted the lines on the road you would have to buy a new car.

2. Occasionally your car would die on the freeway for no reason, and you would just accept this, restart and drive on.

3. Occasionally, executing a maneuver would cause your car to stop and fail and you would have to re-install the engine. For some strange reason, you would accept this too.

4. You could only have one person in the car at a time, unless you bought Car95 or CarNT. But, then you would have to buy more seats.ugg

5. Macintosh would make a car that was powered by the sun, was reliable, five times as fast, twice as easy to drive, but would only run on five percent of the roads.

6. The Macintosh car owners would get expensive Microsoft upgrades to their cars, which would make their cars run much slower.

7. The oil, gas and alternator warning lights would be replaced by a single general car default warning light.  ugg boots

8. New seats would force everyone to have the same size butt.

9. The airbag system would say, Are you sure? before going off.