问题描述
我用的是VISUALSTUDIO2008版,ASP.NET工程编译通过了,可是在IE里面运行的时候老是报如下错误:C:ProgramFilesMicrosoftVisualStudio9.0Common7IDE>"C:WINDOWSMicrosoft.NETFrameworkv3.5csc.exe"/t:library/utf8output/R:"C:WINDOWSassemblyGAC_32System.Data2.0.0.0__b77a5c561934e089System.Data.dll"/R:"C:WINDOWSassemblyGAC_MSILSystem.WorkflowServices3.5.0.0__31bf3856ad364e35System.WorkflowServices.dll"/R:"C:WINDOWSassemblyGAC_MSILSystem.Configuration2.0.0.0__b03f5f7f11d50a3aSystem.Configuration.dll"/R:"C:WINDOWSassemblyGAC_32System.EnterpriseServices2.0.0.0__b03f5f7f11d50a3aSystem.EnterpriseServices.dll"/R:"C:WINDOWSassemblyGAC_MSILSystem.Core3.5.0.0__b77a5c561934e089System.Core.dll"/R:"C:WINDOWSassemblyGAC_MSILSystem.Web.Services2.0.0.0__b03f5f7f11d50a3aSystem.Web.Services.dll"/R:"C:WINDOWSassemblyGAC_MSILSystem.ServiceModel3.0.0.0__b77a5c561934e089System.ServiceModel.dll"/R:"C:WINDOWSassemblyGAC_MSILSystem.Drawing2.0.0.0__b03f5f7f11d50a3aSystem.Drawing.dll"/R:"C:WINDOWSassemblyGAC_MSILSystem.Data.DataSetExtensions2.0.0.0__b77a5c561934e089System.Data.DataSetExtensions.dll"/R:"C:WINDOWSassemblyGAC_MSILSystem.Xml2.0.0.0__b77a5c561934e089System.Xml.dll"/R:"C:WINDOWSassemblyGAC_MSILSystem.Xml.Linq3.5.0.0__b77a5c561934e089System.Xml.Linq.dll"/R:"C:WINDOWSassemblyGAC_MSILSystem2.0.0.0__b77a5c561934e089System.dll"/R:"C:WINDOWSMicrosoft.NETFrameworkv2.0.50727mscorlib.dll"/R:"C:WINDOWSassemblyGAC_MSILSystem.Web.Extensions3.5.0.0__31bf3856ad364e35System.Web.Extensions.dll"/R:"C:WINDOWSassemblyGAC_MSILSystem.IdentityModel3.0.0.0__b77a5c561934e089System.IdentityModel.dll"/R:"C:WINDOWSassemblyGAC_MSILSystem.Web.Mobile2.0.0.0__b03f5f7f11d50a3aSystem.Web.Mobile.dll"/R:"C:WINDOWSassemblyGAC_MSILSystem.Runtime.Serialization3.0.0.0__b77a5c561934e089System.Runtime.Serialization.dll"/R:"C:WINDOWSassemblyGAC_MSILSystem.ServiceModel.Web3.5.0.0__31bf3856ad364e35System.ServiceModel.Web.dll"/R:"C:WINDOWSMicrosoft.NETFrameworkv2.0.50727TemporaryASP.NETFilesroot2e56d46a61a1128dassemblydl3cac17912034c534_c510c801chengren2.DLL"/R:"C:WINDOWSassemblyGAC_32System.Web2.0.0.0__b03f5f7f11d50a3aSystem.Web.dll"/out:"C:WINDOWSMicrosoft.NETFrameworkv2.0.50727TemporaryASP.NETFilesroot2e56d46a61a1128dApp_Web_index.aspx.cdcab7d2.g8e1bdke.dll"/D:DEBUG/debug+/optimize-/win32res:"C:WINDOWSMicrosoft.NETFrameworkv2.0.50727TemporaryASP.NETFilesroot2e56d46a61a1128d-fkbgngf.res"/warnaserror/w:4/nowarn:1659;1699/warnaserror-"C:WINDOWSMicrosoft.NETFrameworkv2.0.50727TemporaryASP.NETFilesroot2e56d46a61a1128dApp_Web_index.aspx.cdcab7d2.g8e1bdke.0.cs""C:WINDOWSMicrosoft.NETFrameworkv2.0.50727TemporaryASP.NETFilesroot2e56d46a61a1128dApp_Web_index.aspx.cdcab7d2.g8e1bdke.1.cs"Microsoft(R)VisualC#2008CompilerBeta2version3.05.20706.1forMicrosoft(R).NETFrameworkversion3.5Copyright(C)MicrosoftCorporation.Allrightsreserved.e:progchengren2chengren2includeconn.aspx(3,1):errorCS1044:Cannotusemorethanonetypeinafor,using,fixed,ordeclarationstatemente:progchengren2chengren2includeconn.aspx(3,42):errorCS1002:;expectede:progchengren2chengren2includeconn.aspx(4,51):errorCS1002:;expectede:progchengren2chengren2includeconn.aspx(5,88):errorCS1002:;expectede:progchengren2chengren2includeconn.aspx(6,18):errorCS1002:;expectede:progchengren2chengren2includeconn.aspx(8,14):errorCS1002:;expectede:progchengren2chengren2includeconn.aspx(9,68):errorCS1002:;expectede:progchengren2chengren2includeconn.aspx(10,9):errorCS1528:Expected;or=(cannotspecifyconstructorargumentsindeclaration)e:progchengren2chengren2includeconn.aspx(10,32):errorCS1002:;expectede:progchengren2chengren2includeconn.aspx(10,32):errorCS1525:Invalidexpressionterm'>'e:progchengren2chengren2includeconn.aspx(10,34):errorCS1002:;expectede:progchengren2chengren2includeconn.aspx(10,36):errorCS1002:;expectede:progchengren2chengren2includeconn.aspx(10,44):errorCS1528:Expected;or=(cannotspecifyconstructorargumentsindeclaration)e:progchengren2chengren2includeconn.aspx(10,65):errorCS1002:;expectede:progchengren2chengren2includeconn.aspx(10,65):errorCS1525:Invalidexpressionterm'>'e:progchengren2chengren2includeconn.aspx(10,67):errorCS1002:;expectede:progchengren2chengren2includeconn.aspx(10,69):errorCS1002:;expectede:progchengren2chengren2includeconn.aspx(10,77):errorCS1528:Expected;or=(cannotspecifyconstructorargumentsindeclaration)e:progchengren2chengren2includeconn.aspx(10,99):errorCS1002:;expectede:progchengren2chengren2includeconn.aspx(10,99):errorCS1525:Invalidexpressionterm'>'e:progchengren2chengren2includeconn.aspx(10,100):errorCS1002:;expectede:progchengren2chengren2includeconn.aspx(10,102):errorCS1002:;expectede:progchengren2chengren2includeconn.aspx(10,110):errorCS1528:Expected;or=(cannotspecifyconstructorargumentsindeclaration)e:progchengren2chengren2includeconn.aspx(10,131):errorCS1002:;expectede:progchengren2chengren2includeconn.aspx(10,131):errorCS1525:Invalidexpressionterm'>'e:progchengren2chengren2includeconn.aspx(10,132):errorCS1002:;expectede:progchengren2chengren2includeconn.aspx(10,134):errorCS1002:;expected………………源码如下:行1:<%行2:dimconn,connstr,TimesDB,rs行3:TimesDB="5929800/xxx.mdb"行4:Setconn=Server.CreateObject("ADODB.Connection")行5:connstr="Provider=Microsoft.Jet.OLEDB.4.0;DataSource="&Server.MapPath(""&TimesDB&"")行6:conn.Openconnstr行7:行8:DimUserAgent行9:UserAgent=Trim(Lcase(Request.Servervariables("HTTP_USER_AGENT")))行10:IfInStr(UserAgent,"teleport")>0orInStr(UserAgent,"webzip")>0orInStr(UserAgent,"flashget")>0orInStr(UserAgent,"offline")>0Then行11:Response.Write"请不要采用teleport/Webzip/Flashget/Offline等工具来浏览商城!"行12:Response.End行13:EndIf行14:行15:FunctionFormatSQL(strChar)行16:ifstrChar=""then行17:FormatSQL=""行18:else行19:FormatSQL=replace(replace(replace(replace(replace(replace(replace(replace(strChar,"'","’"),"*","×"),"?","?"),"(","("),")",")"),"<","〈"),".","。"),";",";")行20:endif行21:EndFunction行22:行23:FunctionSafeRequest(ParaName,ParaType)行24:DimParaValue行25:ParaValue=Request(ParaName)行26:IfParaType=1then行27:IfnotisNumeric(ParaValue)then行28:Response.write"<center>参数"&ParaName&"必须为数字型!</center>"行29:Response.end行30:Endif行31:Else行32:ParaValue=replace(ParaValue,"'","''")行33:Endif行34:SafeRequest=ParaValue行35:Endfunction行36:行37:strVersion="86gou购物系统"行38:%>行39:<metahttp-equiv="Content-Type"content="text/html;charset=gb2312">行40:<!--#includefile="css.aspx"-->行41:<bodybgcolor="#FFFFFF"leftmargin="4"topmargin="4"marginwidth="0"marginheight="0">兄弟急啊,在线等,谢谢
解决方案
解决方案二:
你用的是VB么?改动文件顶部语言的设置
解决方案三:
解决方案四:
不行啊,我也是这样设置的,问题是这样的,这是个完整的工程文件,是别人给我的,在他那里能够正常运行,但是拿到我这里来就不行了(我这里编译是可以通过的)谢谢了