Part of my MVC appplication is not working when deployed live
This is the first time I am deploying MVC web application in Amazon S3
server. And website is been loaded in browser but when I click on register
button it is throwing error. I can see only difference is My application
is named as reporting.e-tale.co.uk and Domain is set up as
dashboard.e-tale.co.uk, so I made a folder in live as
dashboard.e-tale.co.uk and copied my files. It is working fine in local
dont know the reason why it is throwing error.
Please correct me If I am doing any thing wrong. I am not sure what
details to provide. I will provide you more details if it is difficult to
suggest solution. Thanks
Server Error in '/' Application.
Object reference not set to an instance of an object.
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.NullReferenceException: Object reference not set
to an instance of an object.
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:
[NullReferenceException: Object reference not set to an instance of an
object.] reporting.e_tale.co.uk.Controllers.AccountController.Register()
+255 lambda_method(Closure , ControllerBase , Object[] ) +78
System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext
controllerContext, IDictionary2 parameters) +263
System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext
controllerContext, ActionDescriptor actionDescriptor, IDictionary2
parameters) +38 System.Web.Mvc.<>c_DisplayClass15.b_12() +128
System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter
filter, ActionExecutingContext preContext, Func1 continuation) +826106
System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter
filter, ActionExecutingContext preContext, Func1 continuation) +826106
System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter
filter, ActionExecutingContext preContext, Func1 continuation) +826106
System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodWithFilters(ControllerContext
controllerContext, IList1 filters, ActionDescriptor actionDescriptor,
IDictionary`2 parameters) +314
System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext
controllerContext, String actionName) +825328
System.Web.Mvc.Controller.ExecuteCore() +159
System.Web.Mvc.ControllerBase.Execute(RequestContext requestContext) +335
System.Web.Mvc.<>c_DisplayClassb.b_5() +62
System.Web.Mvc.Async.<>c_DisplayClass1.b_0() +20
System.Web.Mvc.<>c_DisplayClasse.b_d() +54
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
+469 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&
completedSynchronously) +375
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET
Version:4.0.30319.1008
Account controller (Register)
/// <summary>
/// GET: /Account/Register
/// Action account Register.
/// </summary>
/// <returns></returns>
[AcceptVerbs(HttpVerbs.Get)]
public ActionResult Register()
{
var myViewData = new RegisterForm
{
Person = new Person
{
CreatedAt = DateTime.Now,
AppellationId =
_appellationRepository.GetAppellationByDescription(
"Mr").Id,
CountryId =
_countryRepository.GetCountryByName(
"United Kingdom").Id,
CorporationId = _corporationRepository.GetCorporationByName(
"Samsung").Id
//ManufacturerId =
_manufacturerRepository.GetManufacturerByName(
//"Samsung").Id
},
User =
new User
{
CreatedAt = DateTime.Now,
Guid = Guid.NewGuid().ToString("N")
}
};
myViewData.Appellations = new
SelectList(_appellationRepository.GetAllAppellations().ToList(),
"Id",
"Description",
myViewData.Person.AppellationId);
myViewData.Countries = new
SelectList(_countryRepository.GetAllCountries().ToList(), "Id",
"Name",
myViewData.Person.CountryId);
myViewData.Corporations = new
SelectList(_corporationRepository.GetAllcorporations().ToList(),
"Id",
"Description",
myViewData.Person.CorporationId);
//myViewData.Manufacturers = new
SelectList(_manufacturerRepository.GetAllManufacturers().ToList(),"Id",
// "Description",myViewData.Person.ManufacturerId);
myViewData.PasswordLength = MembershipService.MinPasswordLength;
return View(myViewData);
}
New error:
Server Error in '/' Application.
Compilation Error
Description: An error occurred during the compilation of a resource
required to service this request. Please review the following specific
error details and modify your source code appropriately.
Compiler Error Message: CS1973: 'System.Web.Mvc.HtmlHelper' has no
applicable method named 'DropDownList' but appears to have an extension
method by that name. Extension methods cannot be dynamically dispatched.
Consider casting the dynamic arguments or calling the extension method
without the extension method syntax.
Source Error:
Line 36:
Line 37: Organisation: Line 38: <%=
Html.DropDownList("CorporationId",Model.Corporations ,"Select a
Organisation", new { style = "width:300px;" }) %> Line 39: <%=
Html.ValidationMessage("CorporationId","") %> Line 40:
Source File:
c:\inetpub\wwwroot\dashboard.e-tale.co.uk\Views\Account\Register.aspx
Line: 38
Show Detailed Compiler Output:
c:\windows\system32\inetsrv>
"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\csc.exe" /t:library
/utf8output
/R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.Entity\v4.0_4.0.0.0__b77a5c561934e089\System.Web.Entity.dll"
/R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET
Files\root\961689a1\98e5467e\assembly\dl3\9bffa507\ecfa05ff_7f84ce01\Ninject.dll"
/R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.CSharp\v4.0_4.0.0.0__b03f5f7f11d50a3a\Microsoft.CSharp.dll"
/R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.WebPages\v4.0_1.0.0.0__31bf3856ad364e35\System.Web.WebPages.dll"
/R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.Routing\v4.0_4.0.0.0__31bf3856ad364e35\System.Web.Routing.dll"
/R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll"
/R:"C:\Windows\Microsoft.Net\assembly\GAC_64\System.Data\v4.0_4.0.0.0__b77a5c561934e089\System.Data.dll"
/R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Core\v4.0_4.0.0.0__b77a5c561934e089\System.Core.dll"
/R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.Extensions\v4.0_4.0.0.0__31bf3856ad364e35\System.Web.Extensions.dll"
/R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.dll"
/R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.Web.Infrastructure\v4.0_1.0.0.0__31bf3856ad364e35\Microsoft.Web.Infrastructure.dll"
/R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET
Files\root\961689a1\98e5467e\assembly\dl3\fa1c4541\691e1dc2_2c9dce01\reporting.e-tale.co.uk.dll"
/R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET
Files\root\961689a1\98e5467e\assembly\dl3\b1cf1017\20c887dd_168ace01\LINQtoCSV.dll"
/R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET
Files\root\961689a1\98e5467e\App_global.asax.hi7xmese.dll"
/R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.ApplicationServices\v4.0_4.0.0.0__31bf3856ad364e35\System.Web.ApplicationServices.dll"
/R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.WebPages.Deployment\v4.0_1.0.0.0__31bf3856ad364e35\System.Web.WebPages.Deployment.dll"
/R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET
Files\root\961689a1\98e5467e\App_Web_wihtg4s5.dll"
/R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Data.Entity\v4.0_4.0.0.0__b77a5c561934e089\System.Data.Entity.dll"
/R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.Abstractions\v4.0_4.0.0.0__31bf3856ad364e35\System.Web.Abstractions.dll"
/R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET
Files\root\961689a1\98e5467e\assembly\dl3\2cff320f\d88520b4_9d83ce01\System.Web.Providers.dll"
/R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.Helpers\v4.0_1.0.0.0__31bf3856ad364e35\System.Web.Helpers.dll"
/R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel.Web\v4.0_4.0.0.0__31bf3856ad364e35\System.ServiceModel.Web.dll"
/R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Runtime.Serialization\v4.0_4.0.0.0__b77a5c561934e089\System.Runtime.Serialization.dll"
/R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Activities\v4.0_4.0.0.0__31bf3856ad364e35\System.Activities.dll"
/R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET
Files\root\961689a1\98e5467e\assembly\dl3\2ac68fe3\1344fffe_7f84ce01\EPPlus.dll"
/R:"C:\Windows\Microsoft.Net\assembly\GAC_64\System.Web\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.dll"
/R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.Services\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.Services.dll"
/R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.Razor\v4.0_1.0.0.0__31bf3856ad364e35\System.Web.Razor.dll"
/R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.WebPages.Razor\v4.0_1.0.0.0__31bf3856ad364e35\System.Web.WebPages.Razor.dll"
/R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel\v4.0_4.0.0.0__b77a5c561934e089\System.ServiceModel.dll"
/R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ComponentModel.DataAnnotations\v4.0_4.0.0.0__31bf3856ad364e35\System.ComponentModel.DataAnnotations.dll"
/R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Data.DataSetExtensions\v4.0_4.0.0.0__b77a5c561934e089\System.Data.DataSetExtensions.dll"
/R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml.Linq\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.Linq.dll"
/R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll"
/R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Drawing\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll"
/R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET
Files\root\961689a1\98e5467e\assembly\dl3\6d6213bd\1007e7b2_2c9dce01\EmsAdmin.dll"
/R:"C:\Windows\Microsoft.Net\assembly\GAC_64\System.EnterpriseServices\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.dll"
/R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET
Files\root\961689a1\98e5467e\assembly\dl3\235bf7dd\70de8fdd_168ace01\Memcached.ClientLibrary.dll"
/R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.Mvc\v4.0_3.0.0.0__31bf3856ad364e35\System.Web.Mvc.dll"
/R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET
Files\root\961689a1\98e5467e\assembly\dl3\b3a40b38\891005ff_7f84ce01\Newtonsoft.Json.dll"
/R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET
Files\root\961689a1\98e5467e\assembly\dl3\fdcdf28b\938c1f66_8084ce01\log4net.dll"
/R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.DynamicData\v4.0_4.0.0.0__31bf3856ad364e35\System.Web.DynamicData.dll"
/R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.WorkflowServices\v4.0_4.0.0.0__31bf3856ad364e35\System.WorkflowServices.dll"
/R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel.Activation\v4.0_4.0.0.0__31bf3856ad364e35\System.ServiceModel.Activation.dll"
/R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\mscorlib.dll"
/R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.IdentityModel\v4.0_4.0.0.0__b77a5c561934e089\System.IdentityModel.dll"
/R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET
Files\root\961689a1\98e5467e\assembly\dl3\bd72f076\723e1f66_8084ce01\ICSharpCode.SharpZipLib.dll"
/R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET
Files\root\961689a1\98e5467e\assembly\dl3\a969e044\e376a565_e4b8cd01\EntityFramework.dll"
/R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel.Activities\v4.0_4.0.0.0__31bf3856ad364e35\System.ServiceModel.Activities.dll"
/out:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET
Files\root\961689a1\98e5467e\App_Web_4evss3jw.dll" /debug- /optimize+ /w:4
/nowarn:1659;1699;1701 /warnaserror-
"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET
Files\root\961689a1\98e5467e\App_Web_4evss3jw.0.cs"
"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET
Files\root\961689a1\98e5467e\App_Web_4evss3jw.1.cs"
"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET
Files\root\961689a1\98e5467e\App_Web_4evss3jw.2.cs"
"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET
Files\root\961689a1\98e5467e\App_Web_4evss3jw.3.cs"
"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET
Files\root\961689a1\98e5467e\App_Web_4evss3jw.4.cs"
"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET
Files\root\961689a1\98e5467e\App_Web_4evss3jw.5.cs"
Microsoft (R) Visual C# 2010 Compiler version 4.0.30319.1 Copyright (C)
Microsoft Corporation. All rights reserved.
c:\inetpub\wwwroot\dashboard.e-tale.co.uk\Views\Account\Register.aspx(38,17):
error CS1973: 'System.Web.Mvc.HtmlHelper' has no applicable method named
'DropDownList' but appears to have an extension method by that name.
Extension methods cannot be dynamically dispatched. Consider casting the
dynamic arguments or calling the extension method without the extension
method syntax.
c:\inetpub\wwwroot\dashboard.e-tale.co.uk\Views\Account\Register.aspx(49,17):
error CS1973: 'System.Web.Mvc.HtmlHelper' has no applicable method named
'TextBox' but appears to have an extension method by that name. Extension
methods cannot be dynamically dispatched. Consider casting the dynamic
arguments or calling the extension method without the extension method
syntax.
c:\inetpub\wwwroot\dashboard.e-tale.co.uk\Views\Account\Register.aspx(55,17):
error CS1973: 'System.Web.Mvc.HtmlHelper' has no applicable method named
'DropDownList' but appears to have an extension method by that name.
Extension methods cannot be dynamically dispatched. Consider casting the
dynamic arguments or calling the extension method without the extension
method syntax.
c:\inetpub\wwwroot\dashboard.e-tale.co.uk\Views\Account\Register.aspx(61,17):
error CS1973: 'System.Web.Mvc.HtmlHelper' has no applicable method named
'TextBox' but appears to have an extension method by that name. Extension
methods cannot be dynamically dispatched. Consider casting the dynamic
arguments or calling the extension method without the extension method
syntax.
c:\inetpub\wwwroot\dashboard.e-tale.co.uk\Views\Account\Register.aspx(67,17):
error CS1973: 'System.Web.Mvc.HtmlHelper' has no applicable method named
'TextBox' but appears to have an extension method by that name. Extension
methods cannot be dynamically dispatched. Consider casting the dynamic
arguments or calling the extension method without the extension method
syntax.
c:\inetpub\wwwroot\dashboard.e-tale.co.uk\Views\Account\Register.aspx(73,17):
error CS1973: 'System.Web.Mvc.HtmlHelper' has no applicable method named
'TextBox' but appears to have an extension method by that name. Extension
methods cannot be dynamically dispatched. Consider casting the dynamic
arguments or calling the extension method without the extension method
syntax.
c:\inetpub\wwwroot\dashboard.e-tale.co.uk\Views\Account\Register.aspx(79,17):
error CS1973: 'System.Web.Mvc.HtmlHelper' has no applicable method named
'TextBox' but appears to have an extension method by that name. Extension
methods cannot be dynamically dispatched. Consider casting the dynamic
arguments or calling the extension method without the extension method
syntax.
c:\inetpub\wwwroot\dashboard.e-tale.co.uk\Views\Account\Register.aspx(85,17):
error CS1973: 'System.Web.Mvc.HtmlHelper' has no applicable method named
'TextBox' but appears to have an extension method by that name. Extension
methods cannot be dynamically dispatched. Consider casting the dynamic
arguments or calling the extension method without the extension method
syntax.
c:\inetpub\wwwroot\dashboard.e-tale.co.uk\Views\Account\Register.aspx(91,17):
error CS1973: 'System.Web.Mvc.HtmlHelper' has no applicable method named
'TextBox' but appears to have an extension method by that name. Extension
methods cannot be dynamically dispatched. Consider casting the dynamic
arguments or calling the extension method without the extension method
syntax.
c:\inetpub\wwwroot\dashboard.e-tale.co.uk\Views\Account\Register.aspx(97,17):
error CS1973: 'System.Web.Mvc.HtmlHelper' has no applicable method named
'DropDownList' but appears to have an extension method by that name.
Extension methods cannot be dynamically dispatched. Consider casting the
dynamic arguments or calling the extension method without the extension
method syntax.
c:\inetpub\wwwroot\dashboard.e-tale.co.uk\Views\Account\Register.aspx(103,17):
error CS1973: 'System.Web.Mvc.HtmlHelper' has no applicable method named
'TextBox' but appears to have an extension method by that name. Extension
methods cannot be dynamically dispatched. Consider casting the dynamic
arguments or calling the extension method without the extension method
syntax.
c:\inetpub\wwwroot\dashboard.e-tale.co.uk\Views\Account\Register.aspx(109,17):
error CS1973: 'System.Web.Mvc.HtmlHelper' has no applicable method named
'TextBox' but appears to have an extension method by that name. Extension
methods cannot be dynamically dispatched. Consider casting the dynamic
arguments or calling the extension method without the extension method
syntax.
c:\inetpub\wwwroot\dashboard.e-tale.co.uk\Views\Account\Register.aspx(115,17):
error CS1973: 'System.Web.Mvc.HtmlHelper' has no applicable method named
'TextBox' but appears to have an extension method by that name. Extension
met
No comments:
Post a Comment