Including:
on an *.aspx.cs web page is standard in a C# ASP.NET website page generated by VS 2008. But if I port that page to my server, there occurs a compiler error when I try to access that page via the Internet (IE 8). Once the 'Linq' statements are commented out, the page works just fine.Code:using System.Linq; using System.Xml.Linq;
One thing I notice. The Web.config file on the local VS 2008 generated ASP.NET Website contains the following
whereas my server based Web.config file does not contain the 'System.Xml.Linq' assembly. Could that be the problem?Code:<assemblies> <add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/> <add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> <add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/> <add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/> </assemblies>


Reply With Quote

Bookmarks