Error Message.

Discussion in 'ASP.NET / ASP.NET Core' started by BoBoDev, Feb 9, 2011.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. Hello, my site was running fine until recently. Didn't know what's going on, so I republished my site using WebMatrix Web Deploy. But, now I got this new error message. What to do? Thank you.



    Method not found: 'Void System.Web.WebPages.ApplicationPart.Register(System.String, System.Reflection.Assembly)'.
    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.MissingMethodException: Method not found: 'Void System.Web.WebPages.ApplicationPart.Register(System.String, System.Reflection.Assembly)'.

    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:


    [MissingMethodException: Method not found: 'Void System.Web.WebPages.ApplicationPart.Register(System.String, System.Reflection.Assembly)'.]
    AdminPackage.AdminModule.RegisterAdminModule() +0
    AdminPackage.PreApplicationStartCode.Start() +22

    [InvalidOperationException: The pre-application start initialization method Start on type AdminPackage.PreApplicationStartCode threw an exception with the following error message: Method not found: 'Void System.Web.WebPages.ApplicationPart.Register(System.String, System.Reflection.Assembly)'..]
    System.Web.Compilation.BuildManager.InvokePreStartInitMethods(ICollection`1 methods) +423
    System.Web.Compilation.BuildManager.CallPreStartInitMethods() +306
    System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException) +591

    [HttpException (0x80004005): The pre-application start initialization method Start on type AdminPackage.PreApplicationStartCode threw an exception with the following error message: Method not found: 'Void System.Web.WebPages.ApplicationPart.Register(System.String, System.Reflection.Assembly)'..]
    System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +8950644
    System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +97
    System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +256
     
  2. ...Did you compare what's on the server now with what was before?
    i.e. Your /bin/ folder and it's contents.
    With the Assembly errors your getting I'd first suspect something is missing.
     
  3. I didn't change anything myself, but, how do I change it or check it? Thank you.
     
  4. ...If you have Visual Studio or Expression Web both can do a comparison.
    Just using the Site FTP tools in each allows you to have your local files on the left side of a file dialog and the remote files on the right, then you can perform file syncs.
     
  5. Thank you, I still don't know what's wrong, but, I have removed everything and redeployed it, which is fine know. I think I had AdminPack and somehow when you guys did something, the old AdminPack was still running. Since I am not really using AdminPack (I just installed it for the hack of it), there is no further problems.
     
  6. ...Good to know you got it going. ;-)
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page