Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Paul 7 posts 57 karma points
    Mar 17, 2013 @ 15:02
    Paul
    0

    Ublogsy 3 error on clean V6 missing UmbracoTemplatePage

    Hi, 

    I install the latest ublogsy code on a clean V6 site, copy the patch into thie bin,  move the blog to under the site. Everythign builds ok but when i browse to the blog I get the following 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 'UmbracoTemplatePage' could not be found (are you missing a using directive or an assembly reference?)

     

    Any help would be greatly appreciated. 

    Thanks, 

    Paul.

  • Anthony Dang 1404 posts 2558 karma points MVP 3x c-trib
    Mar 17, 2013 @ 19:21
    Anthony Dang
    0

    v6.0 or v6.02?

    The type or namespace name 'UmbracoTemplatePage' could not be found means that .net cant find a dll. Specifically an Umbraco dll.

    Which cshtml file is this in regard to?


  • Paul 7 posts 57 karma points
    Mar 17, 2013 @ 19:26
    Paul
    0

    Thanks for a quick reply!

    Umbraco v6.0.2 (Assembly version: 1.0.4811.18151)

    and the latest UBlogsy 3.0 RC


    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 'UmbracoTemplatePage' could not be found (are you missing a using directive or an assembly reference?)

    Source Error:

     
    Line 35:     
    Line 36:     
    Line 37: public class _Page_Views_uBlogsyLanding_cshtml : UmbracoTemplatePage { Line 38:         
    Line 39: #line hidden


    Source File: c:\Users\Paul\AppData\Local\Temp\Temporary ASP.NET Files\root\aa1b4fa8\8d1cc6f\App_Web_ublogsylanding.cshtml.65a2d1ee.h2uce93j.0.cs    Line: 37 

  • Anthony Dang 1404 posts 2558 karma points MVP 3x c-trib
    Mar 17, 2013 @ 21:06
    Anthony Dang
    0

    Try deleting all the files in c:\Users\Paul\AppData\Local\Temp


  • Paul 7 posts 57 karma points
    Mar 17, 2013 @ 21:45
    Paul
    0

    ok, i tried that but still the same message. Also cleaned, rebuilt and re-installed ublogsy but still the same. 

    all my references look ok, but I can't see what I don't have. Can you tell me which assembly the UmbracoTemplatePage comes from?

    As an extra bit of background info, i installed umbraco via nuget in VS2012. Have you heard of problems with that?

    I presume its best to be on 6.0.2 rather than 6.0.0 ?

    Is there anywhere I can either get your latest source, or a blank project already setup with Umbraco 6.0.2 and Ublogsy installed?

    Many thanks for your help so far...

  • Anthony Dang 1404 posts 2558 karma points MVP 3x c-trib
    Mar 18, 2013 @ 00:47
    Anthony Dang
    0

    Perhaps repalce UmbracoTemplatePage with Umbraco.Web.Mvc.UmbracoTemplatePage

    I just did a test. Works fine with Umbraco from NuGet. 6.0.2 is just bug fixes.

    Perhaps start over... Install Umbraco, then install uBlogsy (including the hotfix). It should all work out of the box.

     

     

     

  • Paul 7 posts 57 karma points
    Mar 18, 2013 @ 09:26
    Paul
    0

    I've tried changing to fully qualified but I can't change the code where the error is thrown. 

    I've also tried starting over (many times!) 

    I don't have a reference to umbraco.web.mvc if that is an assembly thats missing? Should that come down with Nuget?

     

  • Paul 7 posts 57 karma points
    Mar 18, 2013 @ 10:16
    Paul
    100

    Hold everything! i've got it! My problem is having the ability to read the most basic of instructions!

    On the first line of the nuget page it says to

    "Installs Umbraco Cms in your Visual Studio ASP.NET Webforms project"

    ... not an MVC4 app!

    So far it looks to resolve the issue.

    Many thanks for all your help, although i've not got to use ublogsy yet, of what i've seen it looks fantastic.

     

  • Anthony Dang 1404 posts 2558 karma points MVP 3x c-trib
    Mar 18, 2013 @ 11:20
    Anthony Dang
    0

    Good to know you solved it.

    Let me know if you find any issues with uBlogsy. I want to hit the "release" button soon and would like to have it bug free :)

    btw umbraco.web.mvc is in umbraco.dll.


     

  • Rasmus Trumf 78 posts 160 karma points
    Mar 29, 2013 @ 15:14
    Rasmus Trumf
    0

    Hi

    What was the solution ?

    Did you start over and manually copy umbraco instead of installing via Nuget or did you change a config setting or something ?

  • Maria 34 posts 128 karma points
    Apr 11, 2013 @ 11:05
    Maria
    0

    Hi,

    I'm also having the same problem as Paul (and the same error). I installed Umbraco 6.0.3 through NuGet and changed the setting to Mvc and then installed uBlogsy from within the backoffice. 

    I don't really understand what Paul means by his solution. Do you have some ideas of what I can do with the problem?

    Maria

  • Maria 34 posts 128 karma points
    Apr 11, 2013 @ 16:36
    Maria
    0

    Ah, got it now. The solution is to start by creating Webforms project (not MVC project) and install Umbraco into it.  Which I guess is what was meant by Paul :)

  • Rasmus Trumf 78 posts 160 karma points
    Apr 11, 2013 @ 16:44
    Rasmus Trumf
    0

    Yes, thats the way. I managed to insert some using statements and kept it as a MVC solution though.

    I have written some thoughts and ideas about it here http://our.umbraco.org/projects/starter-kits/ublogsy/ublogsy-mvc/39750-Thoughts-and-ideas-when-implementing-a-uBlogsy-blog

    Rasmus

Please Sign in or register to post replies

Write your reply to:

Draft