View Single Post
  #8 (permalink)  
Old January 1st, 2009, 02:49 PM
vantoko vantoko is offline
Friend of Wrox
 
Join Date: Aug 2006
Location: , , .
Posts: 142
Thanks: 0
Thanked 2 Times in 2 Posts
Send a message via MSN to vantoko
Default

Hi Doug

First of all happy 2009 :)

thanks for the info.
I can now open the project and start it by hitting F5.
I do get this error.


System.TypeInitializationException was unhandled by user code
Message="The type initializer for 'TheBeerHouse.Configuration.TheBeerHouseSection' threw an exception."
Source="TheBeerHouse"
TypeName="TheBeerHouse.Configuration.TheBeerHouseS ection"
StackTrace:
at TheBeerHouse.Models.ArticleQueries.GetPublishedArt icles(Table`1 source, String category, Int32 page) in C:\TheBeerHouse_MVC\TheBeerHouse\Models\ArticleQue ries.cs:line 159
at TheBeerHouse.Controllers.ArticleController.Index(S tring category, Int32 page) in C:\TheBeerHouse_MVC\TheBeerHouse\Controllers\Artic leController.cs:line 26
at lambda_method(ExecutionScope , ControllerBase , Object[] )
at System.Web.Mvc.ActionMethodDispatcher.Execute(Cont rollerBase controller, Object[] parameters)
at System.Web.Mvc.ControllerActionInvoker.InvokeActio nMethod(MethodInfo methodInfo, IDictionary`2 parameters)
at System.Web.Mvc.ControllerActionInvoker.<>c__Displa yClassc.<InvokeActionMethodWithFilters>b__9()
at System.Web.Mvc.ControllerActionInvoker.InvokeActio nMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation)
InnerException: System.Configuration.ConfigurationErrorsException
Message="Unrecognized element 'newsletter'. (C:\\TheBeerHouse_MVC\\TheBeerHouse\\web.config line 29)"
Source="System.Configuration"
BareMessage="Unrecognized element 'newsletter'."
Filename="C:\\TheBeerHouse_MVC\\TheBeerHouse\\web. config"
Line=29
StackTrace:
at System.Configuration.BaseConfigurationRecord.Evalu ateOne(String[] keys, SectionInput input, Boolean isTrusted, FactoryRecord factoryRecord, SectionRecord sectionRecord, Object parentResult)
at System.Configuration.BaseConfigurationRecord.Evalu ate(FactoryRecord factoryRecord, SectionRecord sectionRecord, Object parentResult, Boolean getLkg, Boolean getRuntimeObject, Object& result, Object& resultRuntimeObject)
at System.Configuration.BaseConfigurationRecord.GetSe ctionRecursive(String configKey, Boolean getLkg, Boolean checkPermission, Boolean getRuntimeObject, Boolean requestIsHere, Object& result, Object& resultRuntimeObject)
at System.Configuration.BaseConfigurationRecord.GetSe ction(String configKey, Boolean getLkg, Boolean checkPermission)
at System.Configuration.BaseConfigurationRecord.GetSe ction(String configKey)
at System.Web.HttpContext.GetSection(String sectionName)
at System.Web.Configuration.HttpConfigurationSystem.G etSection(String sectionName)
at System.Web.Configuration.WebConfigurationManager.G etSection(String sectionName)
at TheBeerHouse.Configuration.TheBeerHouseSection..cc tor() in C:\TheBeerHouse_MVC\TheBeerHouse\Configuration\The BeerHouseSection.cs:line 9
InnerException:


I will try to figure it out the next days when I have more time

koen