This project is read-only.

in WCF Service using RazorEngin


in Console Application it works greate

but, with WCF it casue an error
  1. Solution stuructor
    1) MVC Web project
    2) WCF Service Project
  2. What i did
    1) in Wcf Service i add reference RazorEngin and in service i write
    some code to get template
string template = "Hello @Model.Name! Welcome to Razor!";
string result = Razor.Parse(template, new { Name = "World" });

2) in MVC Web i add WCf service
3) I called that service No 1)
  1. Result
    • Error occure, but i did same way in Console program and it works fine
      only When i Called that service from MVC Project...