Copied to clipboard

Flag this post as spam?

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


  • Chad 25 posts 196 karma points
    Aug 18, 2015 @ 22:56
    Chad
    0

    Error CS1056: Unexpected character '€'

    I tried to create an exact mirror of the video tutorial at and keep getting this error:

    "c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\598dc0c0\4bfd0868\AppWebstackedpromoitem.cshtml.353447c8.7eh-o1g0.0.cs(35): error CS1056: Unexpected character '€'"

    I've cleared everything out and also tried creating other custom things and get the same error. Anyone else experiencing this?

  • Henry 21 posts 141 karma points
    Aug 19, 2015 @ 16:15
    Henry
    0

    Yep just got it. Getting it on any newly created 'Leblender editor' grid editors. My previous grid editors are all working. Definitely not an error in my template.

    Any ideas anyone?

    d:\local\Temporary ASP.NET Files\root\92873ea1\f565ecd8\App_Web_industrycontainer.cshtml.353447c8.gqnaq_g1.0.cs(35): error CS1056: Unexpected character '€'
    
  • Henry 21 posts 141 karma points
    Aug 19, 2015 @ 16:35
    Henry
    0

    Apologies, think it is a template issue, but not sure how to solve it.

    in my template IndustryContainer.cshtml standard html works fine

    <p>Hello World</p>

    but this:

    @inherits UmbracoViewPage < Lecoati​.​LeBlender​.​Extension​.​Models​.​LeBlenderModel​ >
    
    @foreach(var item in Model​.​Items){
            <p>Hello!</p>   
    }
    

    gives me the error

  • Chad 25 posts 196 karma points
    Aug 19, 2015 @ 17:15
    Chad
    0

    Just updated my code some and the issue happens when the foreach loop is introduced. Will keep digging, but if anyone else has run in to this and knows where to look it would be appreciated!

  • Chad 25 posts 196 karma points
    Aug 19, 2015 @ 22:39
    Chad
    0

    Upon further investigation, it looks like it could be something in the plugin where extra characters are being added? In the screenshot attached, my value for Title is "This is a sample title." However, it's being rendered in the grid and on the front end as:

    This is a sample title.​
    

    I do have an image in the editor which is where I get the error about the character: €

    <img src="@Umbraco.TypedMedia(item.GetValue​<string>​("image")​).Url">
    

    When I remove this I don't get the cs1056 error. If extra characters are being added, where can this be removed?

    admin input

  • Henry 21 posts 141 karma points
    Aug 20, 2015 @ 12:11
    Henry
    0

    Strange, even having:

    @inherits UmbracoViewPage < Lecoati​.​LeBlender​.​Extension​.​Models​.​LeBlenderModel​ >
    
    }
    

    throws up the error for me.

    I've tried uninstalling and reinstalling Leblender but no luck there. Like I said my other 'Leblender Editor' gird editors are all still working fine.

    Feels like I'm hitting my head against a brick wall here!

  • Henry 21 posts 141 karma points
    Aug 20, 2015 @ 13:54
    Henry
    100

    I've got a solution, if I type out all of the code in the template it works. However if I copy + paste (working) code I get the error.

    Really not sure why it is doing that, as I have pasted in code in my other templates before. I don't think it's an IDE issue as the same error occurred on dreamweaver + visual studio online.

    Anyway hope it works for you.

  • Chad 25 posts 196 karma points
    Aug 20, 2015 @ 15:24
    Chad
    0

    Great catch Henry! Definitely strange that I can't copy the same code out of another cshtml file and paste it in, but as long as it's working I'll take it!

Please Sign in or register to post replies

Write your reply to:

Draft