The type or namespace name 'Slimsy' could not be found
I'm using:
Umbraco 7.13.2
Slimsy 2.0.0
framework 4.5.2
HtmlAgilityPack 1.11.15.0
I have formated my PC, installed Visual Studio Community 2019 and on top of that the plugin Web Compiler 1.12.394. But starting up my website suddenly failed.
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: CS0246: The type or namespace name 'Slimsy' could not be found (are you missing a using directive or an assembly reference?)
Source Error:
Line 43: using Examine;
Line 44: using Umbraco.Web.PublishedContentModels;
Line 45: using Slimsy;
Line 46:
Line 47: #line 2 "C:\WEB\Roldskov\Views\Frontpage.cshtml"
Source File: C:\Users\Mikes\AppData\Local\Temp\Temporary ASP.NET Files\vs\53d3e076\5534c5e\App_Web_frontpage.cshtml.65a2d1ee.bhykxbl_.0.cs Line: 45
Just taking a chance here: Could it perhaps be caching in the Temp files from the above source file?
I found a solution and I can't really explain why or how it worked.
I ended up uninstalling Slimsy from the Umbraco backend and remove the namespace under Views/web.config.
Upon removing the plugin I ended up with a bunch of errors including web.optimization not working so I reinstalled that.
I also downloaded Slimsy 2 from the official package site (https://our.umbraco.com/packages/website-utilities/slimsy/) - I choosed Version 2 in the bottom.
When Slimsy was reinstalled it started working!
I think something went wrong when I reinstalled Windows and Visual studio because I simply copy-pasted the entire site to the new harddrive and started Visual Studio up.
Anyway it works like a charm now! Thanks for still providing suppot for Slimsy, it's a great plugin!
The type or namespace name 'Slimsy' could not be found
I'm using:
I have formated my PC, installed Visual Studio Community 2019 and on top of that the plugin Web Compiler 1.12.394. But starting up my website suddenly failed.
Upon researching the subject I found a ticket which had lots of informations but unfortunately, nothing that helped me (https://our.umbraco.com/packages/website-utilities/slimsy/slimsy-feedback/61805-Error-during-install-of-Slimsy-114)
My HtmlAgilityPack in web.config looks like:
The entire error log I get is:
Hey, sounds like you are missing the namespace in the views/web.config, here's an example https://github.com/Jeavon/Slimsy/blob/develop/TestSite/Views/Web.config#L27
Hey Jeavon,
Thank you for the extremly quick response!
I took a look in the views/web.config and found that Slimsy is present:
I logged into the backend to rebuild models but that didn't help either.
I have to admit I'm kind of lost. Everything my experience and imagination allows me to do, I've tried.
// Mike
Strange, could you please post the code you have in this view?
If I remove everything in frontpage.cshml expect for:
I still get the error.
Just taking a chance here: Could it perhaps be caching in the Temp files from the above source file?
// Mike
I found a solution and I can't really explain why or how it worked.
I ended up uninstalling Slimsy from the Umbraco backend and remove the namespace under Views/web.config.
Upon removing the plugin I ended up with a bunch of errors including web.optimization not working so I reinstalled that.
I also downloaded Slimsy 2 from the official package site (https://our.umbraco.com/packages/website-utilities/slimsy/) - I choosed Version 2 in the bottom.
When Slimsy was reinstalled it started working!
I think something went wrong when I reinstalled Windows and Visual studio because I simply copy-pasted the entire site to the new harddrive and started Visual Studio up.
Anyway it works like a charm now! Thanks for still providing suppot for Slimsy, it's a great plugin!
// Mike
is working on a reply...