Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attempt to upload a single media file throws System.MissingMethodException #13

Closed
orchardbot opened this issue Nov 19, 2009 · 3 comments

Comments

@orchardbot
Copy link

@bradmi created:
https://orchard.codeplex.com/workitem/14930

  1. Click Manage Media
  2. Click the Images folder
  3. Click "Add media" link
  4. Browse for a media image (e.g. JPEG file)
  5. Click Upload button

RESULT:

Method not found: 'System.Web.Mvc.IValueProvider System.Web.Mvc.FormCollection.ToValueProvider()'.
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: 'System.Web.Mvc.IValueProvider System.Web.Mvc.FormCollection.ToValueProvider()'.

Source Error:

Line 163: return View(viewModel);
Line 164: }
Line 165: }
Line 166:
Line 167: public ActionResult EditMedia(string name, string caption, DateTime lastUpdated, long size, string folderName, string mediaPath) {

Source File: C:\Orchard\trunk\src\Orchard.Web\Packages\Orchard.Media\Controllers\AdminController.cs Line: 165

Stack Trace:

[MissingMethodException: Method not found: 'System.Web.Mvc.IValueProvider System.Web.Mvc.FormCollection.ToValueProvider()'.]
Orchard.Media.Controllers.AdminController.Add(FormCollection input) in C:\Orchard\trunk\src\Orchard.Web\Packages\Orchard.Media\Controllers\AdminController.cs:165
lambda_method(ExecutionScope , ControllerBase , Object[] ) +86
System.Web.Mvc.ActionMethodDispatcher.Execute(ControllerBase controller, Object[] parameters) +17
System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary2 parameters) +178 System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary2 parameters) +24
System.Web.Mvc.<>c__DisplayClassa.b__7() +52
System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func1 continuation) +254 System.Web.Mvc.<>c__DisplayClassc.<InvokeActionMethodWithFilters>b__9() +19 System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func1 continuation) +254
System.Web.Mvc.<>c__DisplayClassc.b__9() +19
System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodWithFilters(ControllerContext controllerContext, IList1 filters, ActionDescriptor actionDescriptor, IDictionary2 parameters) +192
System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) +392
System.Web.Mvc.Controller.ExecuteCore() +126
System.Web.Mvc.ControllerBase.Execute(RequestContext requestContext) +39
System.Web.Mvc.ControllerBase.System.Web.Mvc.IController.Execute(RequestContext requestContext) +7
System.Web.Mvc.MvcHandler.ProcessRequest(HttpContextBase httpContext) +151
System.Web.Mvc.MvcHandler.ProcessRequest(HttpContext httpContext) +57
System.Web.Mvc.MvcHandler.System.Web.IHttpHandler.ProcessRequest(HttpContext httpContext) +7
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +181
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75

@orchardbot
Copy link
Author

@loudej commented:

With which changeset did you hit this exception? I was running into something similar when a pre MVC 2 beta dll was checked in while I had the latest on my box.

@orchardbot
Copy link
Author

@loudej commented:

Yeah, sounds like the same problem with the conflict between mvc2 preview 2 and mvc2 beta. Please try removing mvc2 preview 2, installing mvc2 beta, and getting the latest copy of source, to see if the problem is resolved.

@orchardbot
Copy link
Author

Anonymous user closed and commented:

Should be resolved. Please reactivate if you see this again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant