Bonjour,

Je début avec ASP.net. J'ai fait le tutoriel ci dessous Vendredi dernier:
http://www.asp.net/mvc/tutorials/get...with-mvc-part4

Quand je me suis arrêté, j'avais un problème pour la création de nouveaux enregistrements. Ce matin, à ma grande surprise je n'ai plus rien qui marche.

Ca fait 3h00 que je cherche et ne trouve rien de concluant. voici l'erreur que j'ai:
Server Error in '/' Application.
Unable to load the specified metadata resource.
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.Data.MetadataException: Unable to load the specified metadata resource.

Source Error:

Line 32: /// Initializes a new MovieEntities object using the connection string found in the 'MovieEntities' section of the application configuration file.
Line 33: /// </summary>
Line 34: public MovieEntities() : base("name=MovieEntities", "MovieEntities")
Line 35: {
Line 36: this.ContextOptions.LazyLoadingEnabled = true;


Source File: Z:\_DEVELOPPEMENT\C#\R&D\Tests\TestMaquetageCL\TestMaquetageCL\Models\Model.Designer.cs Line: 34

Stack Trace:

[MetadataException: Unable to load the specified metadata resource.]
System.Data.Metadata.Edm.MetadataArtifactLoaderCompositeResource.LoadResources(String assemblyName, String resourceName, ICollection`1 uriRegistry, MetadataArtifactAssemblyResolver resolver) +2490148
System.Data.Metadata.Edm.MetadataArtifactLoaderCompositeResource.CreateResourceLoader(String path, ExtensionCheck extensionCheck, String validExtension, ICollection`1 uriRegistry, MetadataArtifactAssemblyResolver resolver) +170
System.Data.Metadata.Edm.MetadataArtifactLoader.Create(String path, ExtensionCheck extensionCheck, String validExtension, ICollection`1 uriRegistry, MetadataArtifactAssemblyResolver resolver) +8517824
System.Data.Metadata.Edm.MetadataCache.SplitPaths(String paths) +271
System.Data.Common.Utils.<>c__DisplayClass2.<Evaluate>b__0() +19
System.Data.Common.Utils.Result.GetValue() +100
System.Data.Common.Utils.Memoizer`2.Evaluate(TArg arg) +181
System.Data.EntityClient.EntityConnection.GetMetadataWorkspace(Boolean initializeAllCollections) +292
System.Data.Objects.ObjectContext.RetrieveMetadataWorkspaceFromConnection() +29
System.Data.Objects.ObjectContext..ctor(EntityConnection connection, Boolean isConnectionConstructor) +205
System.Data.Objects.ObjectContext..ctor(String connectionString, String defaultContainerName) +27
TestMaquetageCL.Models.MovieEntities..ctor() in Z:\_DEVELOPPEMENT\C#\R&D\Tests\TestMaquetageCL\TestMaquetageCL\Models\Model.Designer.cs:34
TestMaquetageCL.Controllers.MoviesController..ctor() in Z:\_DEVELOPPEMENT\C#\R&D\Tests\TestMaquetageCL\TestMaquetageCL\Controllers\MoviesController.cs:14

[TargetInvocationException: Exception has been thrown by the target of an invocation.]
System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck) +0
System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache) +98
System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean skipCheckThis, Boolean fillCache) +241
System.Activator.CreateInstance(Type type, Boolean nonPublic) +69
System.Activator.CreateInstance(Type type) +6
System.Web.Mvc.DefaultControllerFactory.GetControllerInstance(RequestContext requestContext, Type controllerType) +491

[InvalidOperationException: An error occurred when trying to create a controller of type 'TestMaquetageCL.Controllers.MoviesController'. Make sure that the controller has a parameterless public constructor.]
System.Web.Mvc.DefaultControllerFactory.GetControllerInstance(RequestContext requestContext, Type controllerType) +628
System.Web.Mvc.DefaultControllerFactory.CreateController(RequestContext requestContext, String controllerName) +204
System.Web.Mvc.MvcHandler.ProcessRequestInit(HttpContextBase httpContext, IController& controller, IControllerFactory& factory) +193
System.Web.Mvc.MvcHandler.BeginProcessRequest(HttpContextBase httpContext, AsyncCallback callback, Object state) +160
System.Web.Mvc.MvcHandler.BeginProcessRequest(HttpContext httpContext, AsyncCallback callback, Object state) +80
System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData) +45
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +8841400
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +184
Si quelqu'un à une idée pour "relancer la machine", je suis preneur.

D'avance merci.