发布到服务器上之后出现如下乱码错误。
杩欐槸棰勭紪璇戝伐鍏风敓鎴愮殑鏍囪?鏂囦欢锛屼笉搴旇?鍒犻櫎!
经百度查询翻译乱码是如下错误。
这是预编译工具生成的标记文件,不应被删除!
用的万网M3型空间,.NET版本是 .NET Framework V2.0/V3.0/V3.5
以下是web.config
- C# code
<?xml version="1.0"?><configuration> <configSections> <section name="ReplaceUrl" type="URLRewriter.Config.UrlsSection, URLRewriter"/> <sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"> <sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"> <section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/> <sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"> <section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="Everywhere"/> <section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/> <section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/> </sectionGroup> </sectionGroup> </sectionGroup> </configSections> <ReplaceUrl> <urls> <add virtualUrl="~/index" destinationUrl="~/index.aspx"/> <add virtualUrl="~/page/html/company" destinationUrl="~/page/html/company.aspx"/> <add virtualUrl="~/page/html/company(.+)\" destinationUrl="~/page/html/company.aspx?id=$1"/> <add virtualUrl="~/page/html/HR" destinationUrl="~/page/html/HR.aspx"/> <add virtualUrl="~/page/html/HR(.+)\" destinationUrl="~/page/html/HR.aspx?id=$1"/> <add virtualUrl="~/page/html/contact" destinationUrl="~/page/html/contact.aspx"/> <add virtualUrl="~/page/html/guestbook" destinationUrl="~/page/html/guestbook.aspx"/> <add virtualUrl="~/news/class/newslist" destinationUrl="~/news/class/newslist.aspx"/> <add virtualUrl="~/news/class/newslist(.+)\" destinationUrl="~/news/class/newslist.aspx?id=$1"/> <add virtualUrl="~/news/class/newscontent(.+)\" destinationUrl="~/news/class/newscontent.aspx?id=$1"/> <add virtualUrl="~/news/class/SolutionsList(.+)\" destinationUrl="~/news/class/SolutionsList.aspx?id=$1"/> <add virtualUrl="~/news/class/SolutionsContent(.+)\" destinationUrl="~/news/class/SolutionsContent.aspx?id=$1"/> </urls> </ReplaceUrl> <appSettings> <add key="conn" value="~/App_Data/access.mdb"/> </appSettings> <connectionStrings> <add name="AccessConnStr1" connectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" providerName="System.Data.OleDb" /> <add name="ConnectionString" connectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|\access.mdb;Persist Security Info=True" providerName="System.Data.OleDb" /> </connectionStrings> <system.web> <customErrors mode="Off"/> <compilation debug="true"> </compilation> <httpModules> <add type="URLRewriter.RewriterModule, URLRewriter" name="RewriterModule"/> <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> </httpModules> </system.web> </configuration>