I Publish the MvcCms 2.0 source successful. But deploy on iis6 and view in browser it occurred an error
File in : MvcCms 2.0\MvcCms.Web\MvcCms.Web\Controllers\HomeController.cs Line: 46
Source Error:
Line 44: {
Line 45: currentPortal = cacheService.GetCurrentPortal();
Line 46: ViewData"SiteName" = _currentPortal.DisplayName;
Line 47: ViewData"DefaultLangID" = _currentPortal.DefaultLanguage.LanguageID;
Line 48: IDictionary<string, object> routeTokens = RouteData.DataTokens;
error message: Object reference not set to an instance of an object
File in : MvcCms 2.0\MvcCms.Web\MvcCms.Web\Controllers\HomeController.cs Line: 46
Source Error:
Line 44: {
Line 45: currentPortal = cacheService.GetCurrentPortal();
Line 46: ViewData"SiteName" = _currentPortal.DisplayName;
Line 47: ViewData"DefaultLangID" = _currentPortal.DefaultLanguage.LanguageID;
Line 48: IDictionary<string, object> routeTokens = RouteData.DataTokens;
error message: Object reference not set to an instance of an object
1 years 7 months 1 days
ago by
sgcms
