Click here to Skip to main content
15,912,329 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Net neutrality summarized by the oatmeal Pin
Simon O'Riordan from UK10-Nov-14 21:44
Simon O'Riordan from UK10-Nov-14 21:44 
GeneralRe: Net neutrality summarized by the oatmeal Pin
charlieg10-Nov-14 23:54
charlieg10-Nov-14 23:54 
GeneralRe: Net neutrality summarized by the oatmeal Pin
Marc Clifton11-Nov-14 0:32
mvaMarc Clifton11-Nov-14 0:32 
GeneralRe: Net neutrality summarized by the oatmeal Pin
charlieg11-Nov-14 3:26
charlieg11-Nov-14 3:26 
GeneralRe: Net neutrality summarized by the oatmeal Pin
Mark_Wallace11-Nov-14 14:35
Mark_Wallace11-Nov-14 14:35 
GeneralRe: Net neutrality summarized by the oatmeal Pin
Andy Brummer11-Nov-14 11:00
sitebuilderAndy Brummer11-Nov-14 11:00 
GeneralRe: Net neutrality summarized by the oatmeal Pin
Dan Neely12-Nov-14 3:27
Dan Neely12-Nov-14 3:27 
RantMVC and RazorEngine rant Pin
Marc Clifton10-Nov-14 14:38
mvaMarc Clifton10-Nov-14 14:38 
So, on the advise of SO, I installed RazorEngine so that I could generate some HTML directly from a template to create the body of a registration email. Why this can't be done in some simple way with Razor directly is beyond me, but nooo, one of the suggestions was to use RazorEngine.

So I use the package manger to install it, it does a couple updates and I get this effing message:

Inheritance security rules violated by type: 'System.Web.WebPages.Razor.WebPageRazorHost'. Derived types must either match the security accessibility of the base type or be less accessible.

So I google around and everyone tells me to remove the dependency in web.config. Sure enough, that works.

But NOW, after I deploy the app to WinHost (I don't think this is their fault), I get:

Could not load file or assembly 'System.Web.Razor, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

But of course. That makes total sense. NOT. Mad | :mad:

So then I figure I ought to fix the root cause of the problem locally and not just delete the dependency in web.config. So I find this post.[^]

Useful. Especially this (regarding my original error):

Which could not be resolved by the solution listed in the reference, however after doing some research I found my answer in the update release notes. The "Removal of security transparent attribute. Note: This is a breaking change, and makes Razor 3 incompatible with MVC4 and earlier, while Razor 2 is incompatible with MVC5 or assemblies compiled against MVC5".

OMFG. Really? So how the eff do I install Razor 2, I really don't give a rat's arse about compatibility with MVC5 (which, when reading about how to install that, looks like yet another rabbit hole of a nightmare I don't want to go down.)

Wow Microsoft. In attempting to copy the garbage that is Ruby on Rails, I believe you have taken what was a slightly smelly pile of refuse and turned it into something that looks like
this[^] - and that's us, picking through the shyte that is MVC and Razor.

Not to mention that the deployment doesn't work right (THAT might be an issue with WinHost), the database migration stuff is a joke (as in it doesn't work) and my foray into Entity Framework is reminding me why I don't use that pile of crap.

And no, my rant is not over yet.

Marc

GeneralRe: MVC and RazorEngine rant Pin
Mycroft Holmes10-Nov-14 15:14
professionalMycroft Holmes10-Nov-14 15:14 
GeneralRe: MVC and RazorEngine rant Pin
Andy Brummer10-Nov-14 15:52
sitebuilderAndy Brummer10-Nov-14 15:52 
GeneralRe: MVC and RazorEngine rant Pin
Sander Rossel10-Nov-14 22:15
professionalSander Rossel10-Nov-14 22:15 
GeneralRe: MVC and RazorEngine rant Pin
Marc Clifton10-Nov-14 23:53
mvaMarc Clifton10-Nov-14 23:53 
GeneralRe: MVC and RazorEngine rant Pin
Pete O'Hanlon10-Nov-14 23:45
mvePete O'Hanlon10-Nov-14 23:45 
GeneralRe: MVC and RazorEngine rant Pin
Marc Clifton10-Nov-14 23:51
mvaMarc Clifton10-Nov-14 23:51 
GeneralRe: MVC and RazorEngine rant Pin
Pete O'Hanlon11-Nov-14 0:17
mvePete O'Hanlon11-Nov-14 0:17 
GeneralRe: MVC and RazorEngine rant Pin
Marc Clifton11-Nov-14 0:23
mvaMarc Clifton11-Nov-14 0:23 
GeneralRe: MVC and RazorEngine rant Pin
Pete O'Hanlon11-Nov-14 1:07
mvePete O'Hanlon11-Nov-14 1:07 
GeneralRe: MVC and RazorEngine rant Pin
jschell11-Nov-14 9:34
jschell11-Nov-14 9:34 
GeneralRe: MVC and RazorEngine rant Pin
Pete O'Hanlon11-Nov-14 10:13
mvePete O'Hanlon11-Nov-14 10:13 
GeneralRe: MVC and RazorEngine rant Pin
loctrice11-Nov-14 1:34
professionalloctrice11-Nov-14 1:34 
GeneralRe: MVC and RazorEngine rant Pin
charliebear2411-Nov-14 5:47
charliebear2411-Nov-14 5:47 
GeneralRe: MVC and RazorEngine rant Pin
Marc Clifton11-Nov-14 7:39
mvaMarc Clifton11-Nov-14 7:39 
GeneralRe: MVC and RazorEngine rant Pin
Fabio Franco11-Nov-14 6:38
professionalFabio Franco11-Nov-14 6:38 
GeneralRe: MVC and RazorEngine rant Pin
Marc Clifton11-Nov-14 7:38
mvaMarc Clifton11-Nov-14 7:38 
GeneralRe: MVC and RazorEngine rant Pin
Fabio Franco11-Nov-14 7:45
professionalFabio Franco11-Nov-14 7:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.