Error with MVC 3 Preview 1

94 views
Skip to first unread message

Troy Goode

unread,
Jul 27, 2010, 8:32:45 PM7/27/10
to Spark View Engine Dev
Looks like Spark doesn't quite work out of the box with the MVC 3
Preview 1 that was released today. I'm getting the following error:

Dynamic view compilation failed.
(0,0): error CS1701: Warning as Error: Assuming assembly reference
'System.Web.Mvc, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35' matches 'System.Web.Mvc,
Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35',
you may need to supply runtime policy

I already have the runtime binding from MVC 2.0 to MVC 3.0 in place in
the web.config though:

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

Any ideas?

Henning

unread,
Jul 29, 2010, 4:30:50 AM7/29/10
to Spark View Engine Dev
Try to do a custom build where you reference the mvc 3 directly. Might
be some breaking changes.

Henning

Troy Goode

unread,
Aug 1, 2010, 1:15:40 PM8/1/10
to Spark View Engine Dev
That is what I ended up doing. Had some funkiness related to
attributes that I think are present for medium-trust permission
request reasons, so I removed those, recompiled against MVC3/NET4 and
everything worked okay.
Reply all
Reply to author
Forward
0 new messages