Click here to Skip to main content
15,893,668 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: Movember Pin
User 842011-Nov-14 8:00
User 842011-Nov-14 8:00 
GeneralRe: Movember Pin
jeron111-Nov-14 8:17
jeron111-Nov-14 8:17 
GeneralRe: Movember Pin
Mike Hankey11-Nov-14 6:53
mveMike Hankey11-Nov-14 6:53 
GeneralRe: Movember Pin
Dominic Burford11-Nov-14 21:16
professionalDominic Burford11-Nov-14 21:16 
GeneralRe: Movember Pin
Corporal Agarn11-Nov-14 8:53
professionalCorporal Agarn11-Nov-14 8:53 
GeneralAPOD Pin
R. Giskard Reventlov11-Nov-14 5:04
R. Giskard Reventlov11-Nov-14 5:04 
GeneralRe: APOD Pin
TheGreatAndPowerfulOz11-Nov-14 5:45
TheGreatAndPowerfulOz11-Nov-14 5:45 
GeneralConclusion: the "success story" with RazorEngine and MVC 4 Pin
Marc Clifton11-Nov-14 4:20
mvaMarc Clifton11-Nov-14 4:20 
And for the record, I:

1. git-cloned the RazorEngine repo
2. changed the System.Web.Razor reference from 3.0.0.0 to 2.0.0.0 (otherwise both were being referenced, 3.0 by RazorEngine and 2.0 by the MVC 4 framework)
3. compiled it
4. Added a reference to RazorEngine from the RazorEngine.core bin folder

And lo-and-behold, I was able to use the RazorEngine to parse a cshtml into a string.

One last note -- when I tried to use WebMail on the host provider, I got a security violation, requiring this fix:

<configuration>
  <system.web>
    <trust level="Full" originUrl=""/>


Sigh. I feel like I'm playing Whac-a-Mole. Whack one problem, and another surfaces. This should NOT be this hard! (Gee, I think I said the same thing about Ruby on Rails)

So, a couple lessons learned:

1. Don't use NuGet package installer. Build the pieces from the source code directly.
2. Make sure all the System.Web.[crap] assembly references reference exactly the same dll's.

Marc

GeneralRe: Conclusion: the "success story" with RazorEngine and MVC 4 Pin
wout de zeeuw11-Nov-14 5:46
wout de zeeuw11-Nov-14 5:46 
GeneralRe: Conclusion: the "success story" with RazorEngine and MVC 4 Pin
Brady Kelly11-Nov-14 6:25
Brady Kelly11-Nov-14 6:25 
GeneralRe: Conclusion: the "success story" with RazorEngine and MVC 4 Pin
Mark_Wallace11-Nov-14 5:59
Mark_Wallace11-Nov-14 5:59 
GeneralRe: Conclusion: the "success story" with RazorEngine and MVC 4 Pin
Brady Kelly11-Nov-14 7:04
Brady Kelly11-Nov-14 7:04 
GeneralRe: Conclusion: the "success story" with RazorEngine and MVC 4 Pin
Mark_Wallace11-Nov-14 10:22
Mark_Wallace11-Nov-14 10:22 
GeneralRe: Conclusion: the "success story" with RazorEngine and MVC 4 Pin
Marc Clifton11-Nov-14 7:33
mvaMarc Clifton11-Nov-14 7:33 
GeneralRe: Conclusion: the "success story" with RazorEngine and MVC 4 Pin
Suraj Sahoo | Coding Passion11-Nov-14 7:44
professionalSuraj Sahoo | Coding Passion11-Nov-14 7:44 
GeneralRe: Conclusion: the "success story" with RazorEngine and MVC 4 Pin
Marc Clifton11-Nov-14 7:45
mvaMarc Clifton11-Nov-14 7:45 
GeneralRe: Conclusion: the "success story" with RazorEngine and MVC 4 Pin
Mark_Wallace11-Nov-14 10:24
Mark_Wallace11-Nov-14 10:24 
GeneralRe: Conclusion: the "success story" with RazorEngine and MVC 4 Pin
Dave Kreskowiak11-Nov-14 6:26
mveDave Kreskowiak11-Nov-14 6:26 
GeneralRe: Conclusion: the "success story" with RazorEngine and MVC 4 Pin
Marc Clifton11-Nov-14 7:36
mvaMarc Clifton11-Nov-14 7:36 
GeneralRe: Conclusion: the "success story" with RazorEngine and MVC 4 Pin
Brady Kelly11-Nov-14 17:12
Brady Kelly11-Nov-14 17:12 
GeneralRe: Conclusion: the "success story" with RazorEngine and MVC 4 Pin
Marc Clifton12-Nov-14 1:44
mvaMarc Clifton12-Nov-14 1:44 
GeneralRe: Conclusion: the "success story" with RazorEngine and MVC 4 Pin
Brady Kelly12-Nov-14 2:09
Brady Kelly12-Nov-14 2:09 
GeneralRe: Conclusion: the "success story" with RazorEngine and MVC 4 Pin
AspDotNetDev11-Nov-14 16:52
protectorAspDotNetDev11-Nov-14 16:52 
GeneralRe: Conclusion: the "success story" with RazorEngine and MVC 4 Pin
Worried Brown Eyes11-Nov-14 21:50
Worried Brown Eyes11-Nov-14 21:50 
GeneralRe: Conclusion: the "success story" with RazorEngine and MVC 4 Pin
AspDotNetDev12-Nov-14 4:09
protectorAspDotNetDev12-Nov-14 4:09 

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.