Server Error in '/997' Application.

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: BC30561: 'Globalization' is ambiguous, imported from the namespaces or types 'System.Web, System'.

Source Error:


Line 30:                                     <asp:LinkButton ID="cmdNews" runat="server" Text='<%# Eval("Title") %>' CommandArgument='<%# Eval("NewsId") %>' CommandName="ShowNews" />
Line 31:                                     <asp:HyperLink ID="lnkNews" runat="server" Text='<%# Eval("Title") %>' NavigateUrl='<%# "~/News/Default.aspx?NewsID=" & Eval("NewsId").ToString() %>' Visible="false" />
Line 32:                                     <asp:Label ID="lblPublishDate" runat="server" Text='<%# Convert.ToDateTime(Eval("PublishDate")).ToString("h:mmtt", Globalization.DateTimeFormatInfo.InvariantInfo) %>' ForeColor="#666666" />
Line 33:                                 </div>
Line 34:                             </ItemTemplate>

Source File: C:\inetpub\wwwroot\997\News\Default.aspx    Line: 32






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