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 147:                                 
Line 148:                                    <div class="postm" style="font-size:12px;margin-left: 9px;">
Line 149:                                    @blg.postedby
Line 150:                                        </div>
Line 151:                                </a></div>

Source File: g:\pleskvhosts\advid.in\squareit.in\blog_detail.cshtml    Line: 149

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_detail_cshtml.Execute() in g:\pleskvhosts\advid.in\squareit.in\blog_detail.cshtml:149
   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