[Mono-aspnet-list] Migration ASP.Net MVC Project Issue

zabr zabralex85 at gmail.com
Sun Aug 9 11:31:46 EDT 2009


I have ported ASP.Net MVC web app, it's compiles in Monodevelop with no
errors, but in debug it show strange error:


Description: HTTP 500. Error processing request.

Stack Trace: 

System.NotImplementedException: The requested feature is not implemented.
  at Kushatpodano.Ru.Models.KushDBDataContext..ctor () [0x00000] in
/usr/share/mono/asp.net/apps/Kushatpodano.Ru/Classes/BusinessLayer/Mailer.cs:1 
  at Kushatpodano.Ru.Classes.BusinessLayer.KushMenu..cctor () [0x00000] in
/usr/share/mono/asp.net/apps/Kushatpodano.Ru/Classes/BusinessLayer/Mailer.cs:1 


Version information:  Mono Version: 2.0.50727.1433; ASP.NET Version:
2.0.50727.1433 



[System.Web.HttpUnhandledException]: Exception of type
'System.Web.HttpUnhandledException' was thrown.
  at System.Web.UI.Page.ProcessException (System.Exception e) [0x00053] in
/usr/src/packages/BUILD/mono-2.4.2.3/mcs/class/System.Web/System.Web.UI/Page.cs:1391 

  at System.Web.UI.Page.ProcessRequest (System.Web.HttpContext context)
[0x00089] in
/usr/src/packages/BUILD/mono-2.4.2.3/mcs/class/System.Web/System.Web.UI/Page.cs:1365 

  at System.Web.HttpApplication+c__Iterator2.MoveNext () [0x00c8b] in
/usr/src/packages/BUILD/mono-2.4.2.3/mcs/class/System.Web/System.Web/HttpApplication.cs:1345 

  at System.Web.HttpApplication.Tick () [0x00000] in
/usr/src/packages/BUILD/mono-2.4.2.3/mcs/class/System.Web/System.Web/HttpApplication.cs:915 


[System.InvalidOperationException]: An error occurred while creating a
controller of type 'Kushatpodano.Ru.Controllers.HomeController'. If the
controller doesn't have a controller factory, ensure that it has a
parameterless public constructor.

  at System.Web.Mvc.DefaultControllerFactory.GetControllerInstance
(System.Type controllerType) [0x00000] 

  at System.Web.Mvc.DefaultControllerFactory.CreateController
(System.Web.Routing.RequestContext requestContext, System.String
controllerName) [0x00000] 

  at System.Web.Mvc.MvcHandler.ProcessRequest (System.Web.HttpContextBase
httpContext) [0x00000] 

  at System.Web.Mvc.MvcHandler.ProcessRequest (System.Web.HttpContext
httpContext) [0x00000] 

  at System.Web.Mvc.MvcHandler.System.Web.IHttpHandler.ProcessRequest
(System.Web.HttpContext httpContext) [0x00000] 

  at System.Web.Mvc.MvcHttpHandler.VerifyAndProcessRequest (IHttpHandler
httpHandler, System.Web.HttpContextBase httpContext) [0x00000] 

  at System.Web.Routing.UrlRoutingHandler.ProcessRequest
(System.Web.HttpContextBase httpContext) [0x00000] 

  at System.Web.Routing.UrlRoutingHandler.ProcessRequest
(System.Web.HttpContext httpContext) [0x00000] 

  at
System.Web.Routing.UrlRoutingHandler.System.Web.IHttpHandler.ProcessRequest
(System.Web.HttpContext context) [0x00000] 

  at Kushatpodano.Ru._Default.Page_Load (System.Object sender,
System.EventArgs e) [0x0001b] in
/usr/share/mono/asp.net/apps/Kushatpodano.Ru/Default.aspx.cs:13 

  at System.Web.UI.Control.OnLoad (System.EventArgs e) [0x00029] in
/usr/src/packages/BUILD/mono-2.4.2.3/mcs/class/System.Web/System.Web.UI/Control.cs:979 

  at System.Web.UI.Control.LoadRecursive () [0x00020] in
/usr/src/packages/BUILD/mono-2.4.2.3/mcs/class/System.Web/System.Web.UI/Control.cs:1459 

  at System.Web.UI.Page.ProcessLoad () [0x0004a] in
/usr/src/packages/BUILD/mono-2.4.2.3/mcs/class/System.Web/System.Web.UI/Page.cs:1598 

  at System.Web.UI.Page.ProcessPostData () [0x0004d] in
/usr/src/packages/BUILD/mono-2.4.2.3/mcs/class/System.Web/System.Web.UI/Page.cs:1576 

  at System.Web.UI.Page.InternalProcessRequest () [0x001bf] in
/usr/src/packages/BUILD/mono-2.4.2.3/mcs/class/System.Web/System.Web.UI/Page.cs:1534 

  at System.Web.UI.Page.ProcessRequest (System.Web.HttpContext context)
[0x0005b] in
/usr/src/packages/BUILD/mono-2.4.2.3/mcs/class/System.Web/System.Web.UI/Page.cs:1353 

[System.Reflection.TargetInvocationException]: Exception has been thrown by
the target of an invocation.
  at System.Reflection.MonoCMethod.Invoke (System.Object obj, BindingFlags
invokeAttr, System.Reflection.Binder binder, System.Object[] parameters,
System.Globalization.CultureInfo culture) [0x000b8] in
/usr/src/packages/BUILD/mono-2.4.2.3/mcs/class/corlib/System.Reflection/MonoMethod.cs:450 

  at System.Reflection.MonoCMethod.Invoke (BindingFlags invokeAttr,
System.Reflection.Binder binder, System.Object[] parameters,
System.Globalization.CultureInfo culture) [0x00000] in
/usr/src/packages/BUILD/mono-2.4.2.3/mcs/class/corlib/System.Reflection/MonoMethod.cs:459 

  at System.Reflection.ConstructorInfo.Invoke (System.Object[] parameters)
[0x0000e] in
/usr/src/packages/BUILD/mono-2.4.2.3/mcs/class/corlib/System.Reflection/ConstructorInfo.cs:77 

  at System.Activator.CreateInstance (System.Type type, Boolean nonPublic)
[0x00083] in
/usr/src/packages/BUILD/mono-2.4.2.3/mcs/class/corlib/System/Activator.cs:323 

  at System.Activator.CreateInstance (System.Type type) [0x00000] in
/usr/src/packages/BUILD/mono-2.4.2.3/mcs/class/corlib/System/Activator.cs:213 

  at System.Web.Mvc.DefaultControllerFactory.GetControllerInstance
(System.Type controllerType) [0x00000] 
[System.TypeInitializationException]: An exception was thrown by the type
initializer for Kushatpodano.Ru.Classes.BusinessLayer.KushMenu
  at Kushatpodano.Ru.Controllers.HomeController..ctor () [0x00000] in
/usr/share/mono/asp.net/apps/Kushatpodano.Ru/Classes/BusinessLayer/Mailer.cs:1 

  at (wrapper managed-to-native)
System.Reflection.MonoCMethod:InternalInvoke
(object,object[],System.Exception&)
  at System.Reflection.MonoCMethod.Invoke (System.Object obj, BindingFlags
invokeAttr, System.Reflection.Binder binder, System.Object[] parameters,
System.Globalization.CultureInfo culture) [0x000a6] in
/usr/src/packages/BUILD/mono-2.4.2.3/mcs/class/corlib/System.Reflection/MonoMethod.cs:444 


[System.NotImplementedException]: The requested feature is not implemented.

  at Kushatpodano.Ru.Models.KushDBDataContext..ctor () [0x00000] in
/usr/share/mono/asp.net/apps/Kushatpodano.Ru/Classes/BusinessLayer/Mailer.cs:1 

  at Kushatpodano.Ru.Classes.BusinessLayer.KushMenu..cctor () [0x00000] in
/usr/share/mono/asp.net/apps/Kushatpodano.Ru/Classes/BusinessLayer/Mailer.cs:1 





In class Mailer i have this data:


using System.Net;

using System.Net.Mail;


namespace Kushatpodano.Ru.Classes.BusinessLayer
{

  public class Mailer

  {

    public void Mail(string topic, string EmailTo,
string body)

    {

      SmtpClient Smtp = new SmtpClient();

      MailMessage Message = new
MailMessage("robot at kushatpodano.ru", EmailTo, topic, body);

      Message.IsBodyHtml = true;


      try

      {

        Smtp.Send(Message);

      }

      catch(SmtpException ex)

      {

        throw ex;

      }

    }

  }

}


What i shall do in this situation? 


Please help ...

Thanx.


-- 
View this message in context: http://www.nabble.com/Migration-ASP.Net-MVC-Project-Issue-tp24888062p24888062.html
Sent from the Mono - ASP.NET mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-aspnet-list/attachments/20090809/63cf1c1d/attachment.html 


More information about the Mono-aspnet-list mailing list