c:\inetpub\wwwroot\Umbraco\macroScripts\634928096430833609_Landing.cshtml(1): error CS0246: The type or namespace name 'Tocsoft' could not be found (are you missing a using directive or an assembly reference?)
OK, installed it on another umbraco environment and that installed properly so I copied the dll's to my dev area and it seems to be working.
Which leaves me with another question. What I want to do is allow the page editors to create cshtml files in the scripts folder under the settings section as I don't want to give them access to the Developer area, and then I would like to render those files via a macro. Now it does work, except for the fact that the cshtml files created under the scripts section does not seem to parse html.
error saving script file
c:\inetpub\wwwroot\Umbraco\macroScripts\634928096430833609_Landing.cshtml(1): error CS0246: The type or namespace name 'Tocsoft' could not be found (are you missing a using directive or an assembly reference?)
Hi Psib3r,
It's worth double-checking that the `Tocsoft.Umbraco.RazorComponents.dll` is in your /bin folder?
Cheers, Lee.
It's not there, should it have been in the package or do I need to get it from somewhere else?
I've just checked the package, the DLLs appear to be there. I'd suggest re-installing the package.
Cheers, Lee.
OK, installed it on another umbraco environment and that installed properly so I copied the dll's to my dev area and it seems to be working.
Which leaves me with another question. What I want to do is allow the page editors to create cshtml files in the scripts folder under the settings section as I don't want to give them access to the Developer area, and then I would like to render those files via a macro. Now it does work, except for the fact that the cshtml files created under the scripts section does not seem to parse html.
Is there a way of doing this?
Hi Psib3r, happy that you got it working.
I'm not the package developer, so not sure how to go about doing what you want to do.
is working on a reply...