Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Entry point was not found mv3 and sharp architecture

Hi i receive this error

Sharp architecture 2.0 works on mvc 3 the error is

Entry point was not found

I have both mvc 3 and mvc 4 installed on my Pc,as i un-install mvc 4 projects Work Correctly,but is there any one other way that can work i have tried to change assembly settings as well in web.config

Here is the Stack trace

[EntryPointNotFoundException: Entry point was not found.]
System.Web.Mvc.MvcRouteHandler.GetSessionStateBehavior(RequestContext requestContext) +159
System.Web.Mvc.MvcRouteHandler.GetHttpHandler(RequestContext requestContext) +41
System.Web.Mvc.MvcRouteHandler.System.Web.Routing.IRouteHandler.GetHttpHandler(RequestContext requestContext) +10
System.Web.Routing.UrlRoutingModule.PostResolveRequestCache(HttpContextBase context) +9024264
System.Web.Routing.UrlRoutingModule.OnApplicationPostResolveRequestCache(Object sender, EventArgs e) +86
System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +148 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75

like image 529
Muhammad Faizan Khatri Avatar asked Apr 10 '12 15:04

Muhammad Faizan Khatri


2 Answers

Thanks , Resolved had to remove all Previous refrences of mvc3 and re-refrence it again from /ProgramFiles/ASP.NET MVC 3/System.Web.Mvc.dll as on default it shows assemblies of only mvc4

like image 103
Muhammad Faizan Khatri Avatar answered Nov 09 '22 04:11

Muhammad Faizan Khatri


There is another way to resolve the "Entry point not found exception", you can add the following section in your

<runtime>
        <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
            <dependentAssembly>
                <assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" />
                <bindingRedirect oldVersion="1.0.0.0-4.0.0.0" newVersion="4.0.0.0" />
            </dependentAssembly>
        </assemblyBinding>
    </runtime>

This will instruct the runtime to use MVC4 binaries. We are using this in our projects without any exceptions.

like image 3
Sudhanshu Mishra Avatar answered Nov 09 '22 05:11

Sudhanshu Mishra