Skip to content

ViewBag strings in MVC4 #31

@collmemaybe

Description

@collmemaybe

I'm assuming this could be a problem with MVC4. When outputting a string using

${ViewBag.Message}

I get this exception:

[RuntimeBinderException: The call is ambiguous between the following methods or properties: 'System.IO.TextWriter.Write(string, params object[])' and 'System.IO.TextWriter.Write(char[])']
CallSite.Target(Closure , CallSite , TextWriter , Object ) +181
System.Dynamic.UpdateDelegates.UpdateAndExecuteVoid2(CallSite site, T0 arg0, T1 arg1) +450

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions