ValidfroM
ValidfroM

Reputation: 2837

Install ServiceStack Web Service Framework via NuGet then got an exception

The exception is strange, seems I missing sth. Any ideas?

Locating source for 'C:\src\ServiceStack\src\ServiceStack.FluentValidation.Mvc3\Mvc\FunqControllerFactory.cs'. Checksum: MD5 {eb 6 8b dc fb 97 cb 8 2b 74 bc 37 37 79 7b f8} The file 'C:\src\ServiceStack\src\ServiceStack.FluentValidation.Mvc3\Mvc\FunqControllerFactory.cs' does not exist. Looking in script documents for 'C:\src\ServiceStack\src\ServiceStack.FluentValidation.Mvc3\Mvc\FunqControllerFactory.cs'... Looking in the projects for 'C:\src\ServiceStack\src\ServiceStack.FluentValidation.Mvc3\Mvc\FunqControllerFactory.cs'. The file was not found in a project. Looking in directory 'C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\crt\src\'... Looking in directory 'C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\atlmfc\src\mfc\'... Looking in directory 'C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\atlmfc\src\atl\'... Looking in directory 'C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\atlmfc\include\'... The debug source files settings for the active solution indicate that the debugger will not ask the user to find the file: C:\src\ServiceStack\src\ServiceStack.FluentValidation.Mvc3\Mvc\FunqControllerFactory.cs. The debugger could not locate the source file 'C:\src\ServiceStack\src\ServiceStack.FluentValidation.Mvc3\Mvc\FunqControllerFactory.cs'.

Upvotes: 2

Views: 630

Answers (1)

ValidfroM
ValidfroM

Reputation: 2837

Think I find the solution myself. If you install the servicestack to a MVC3 project through nuget,you need to comment out the original routs.MapRoute in Global.ascx.cs

        public static void RegisterRoutes(RouteCollection routes)
    {
        routes.IgnoreRoute("{resource}.axd/{*pathInfo}");

        //routes.MapRoute(
        //    "Default", // Route name
        //    "{controller}/{action}/{id}", // URL with parameters
        //    new { controller = "Home", action = "Index", id = UrlParameter.Optional } // Parameter defaults
        //);

        routes.IgnoreRoute("api/{*pathInfo}");
        routes.IgnoreRoute("{*favicon}", new { favicon = @"(.*/)?favicon.ico(/.*)?" }); //Prevent exceptions for favicon

    }

Upvotes: 3

Related Questions