This is a multil-langue website with three languages (Dutch, French and English)
For some reason the macro doesn't work on this website, I am getting the following error message:
Error loading Razor Script /MultiLanguage//LanguageSwitcher/DefaultForMacro.cshtml d:\Websites\flexisle\macroScripts\MultiLanguage\LanguageSwitcher\DefaultForMacro.cshtml(1): error CS0103: The name 'Parameter' does not exist in the current context
oeh that's a tough one and not related to my package. Seems your Model and Parameters are not bound. I don't know why that happens. Could be some old dll that is messing things up or a wrong configuration in the web.config.
Hi Yannick, good news, I followed your advice and checked the razor forum. Sebastiaan Janssens pointed me to the fact that the web.config has some changes for razor, so I copied the web.config of the Umbraco 4.7 build to my webfolder. Now the Multilanguage Tools work like a charm :) Your package really rocks!!
Error loading razor script
Hi,
I installed the Multi-language tools on my client's website:
www.flexisle.com
This is a multil-langue website with three languages (Dutch, French and English)
For some reason the macro doesn't work on this website, I am getting the following error message:
d:\Websites\flexisle\macroScripts\MultiLanguage\LanguageSwitcher\DefaultForMacro.cshtml(1): error CS0103: The name 'Parameter' does not exist in the current context
Anyone familiar with this error?
thanks for your help,
Anthony Candaele
Belgium
What's the value you have assigned to the macro parameter?
Hi Yannick,
Glad your online, I inserted the value 'DropDown'
Anthony
hmm strange. Don't know why the parameter is not recognized. do you have other razor macro's with parameters that work?
Either way you could circumvent the parameter need by calling the script directly from your template:
<umbraco:Macro Language="cshtml" runat="server">
@RenderPage("~/macroscripts/MultiLanguage/LanguageSwitcher/DropDown.cshtml")
</umbraco:Macro>
I tried that already, then I get the error:
Cannot perform runtime binding on a null reference
I wonder if the problems are related to the fact that I upgraded this website from Umbraco 4.5.2 to Umbraco 4.7
After that, I deleted the Dutch and French website, and made two new copies of the English website, one for the Dutch and one for the French website.
oeh that's a tough one and not related to my package. Seems your Model and Parameters are not bound. I don't know why that happens. Could be some old dll that is messing things up or a wrong configuration in the web.config.
Hi Yannick, do you have an idea which web.config settings could be wrong, so that the Model and Parameters are not bound?
Thanks for your advice,
Anthony
i have no clue, maybe ask in the razor forum.
Hi Yannick, good news, I followed your advice and checked the razor forum. Sebastiaan Janssens pointed me to the fact that the web.config has some changes for razor, so I copied the web.config of the Umbraco 4.7 build to my webfolder. Now the Multilanguage Tools work like a charm :) Your package really rocks!!
greetings,
Anthony
is working on a reply...