Server Error in '/' Application.

The call is ambiguous between the following methods or properties: 'System.Text.Encoding.GetBytes(char[])' and 'System.Text.Encoding.GetBytes(string)'

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: Microsoft.CSharp.RuntimeBinder.RuntimeBinderException: The call is ambiguous between the following methods or properties: 'System.Text.Encoding.GetBytes(char[])' and 'System.Text.Encoding.GetBytes(string)'

Source Error:


Line 107:                                    <i class="fa fa-user crumina-icon" style="    margin-right: 10px;" >  </i>
Line 108:                                 <a href="@Globalval.__siteHome/@blg.postedby" class="post-comments" style="font-size:12px;">
Line 109:                                    @blg.postedby
Line 110:                                </a></div>
Line 111:                      

Source File: g:\pleskvhosts\advid.in\squareit.in\blog.cshtml    Line: 109

Stack Trace:


[RuntimeBinderException: The call is ambiguous between the following methods or properties: 'System.Text.Encoding.GetBytes(char[])' and 'System.Text.Encoding.GetBytes(string)']
   CallSite.Target(Closure , CallSite , Encoding , Object ) +248
   System.Dynamic.UpdateDelegates.UpdateAndExecute2(CallSite site, T0 arg0, T1 arg1) +698
   ASP._Page_blog_cshtml.Execute() in g:\pleskvhosts\advid.in\squareit.in\blog.cshtml:109
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +252
   System.Web.WebPages.WebPage.ExecutePageHierarchy(IEnumerable`1 executors) +99
   System.Web.WebPages.WebPage.ExecutePageHierarchy() +185
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +107
   System.Web.WebPages.WebPageHttpHandler.ProcessRequestInternal(HttpContextBase httpContext) +142


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4700.0