问题描述
09-2811:21:51:Createapplicationhosterror,thesitenameis'default'Couldnotfindmethod'VoidSetHostingEnvironment()'intype'System.Web.Hosting.ApplicationHost'09-2811:21:51:[Error,website:default]CreateAsp.netApplicationhosterror:System.Runtime.Serialization.SerializationException:Couldnotfindmethod'VoidSetHostingEnvironment()'intype'System.Web.Hosting.ApplicationHost'Serverstacktrace:atSystem.Reflection.MemberInfoSerializationHolder.GetRealObject(StreamingContextcontext)[0x00000]in<filenameunknown>:0atSystem.Runtime.Serialization.ObjectRecord.LoadData(System.Runtime.Serialization.ObjectManagermanager,ISurrogateSelectorselector,StreamingContextcontext)[0x00000]in<filenameunknown>:0atSystem.Runtime.Serialization.ObjectManager.DoFixups()[0x00000]in<filenameunknown>:0atSystem.Runtime.Serialization.Formatters.Binary.ObjectReader.ReadNextObject(System.IO.BinaryReaderreader)[0x00000]in<filenameunknown>:0atSystem.Runtime.Serialization.Formatters.Binary.ObjectReader.ReadObjectGraph(BinaryElementelem,System.IO.BinaryReaderreader,BooleanreadHeaders,System.Object&result,System.Runtime.Remoting.Messaging.Header[]&headers)[0x00000]in<filenameunknown>:0atSystem.Runtime.Serialization.Formatters.Binary.BinaryFormatter.NoCheckDeserialize(System.IO.StreamserializationStream,System.Runtime.Remoting.Messaging.HeaderHandlerhandler)[0x00000]in<filenameunknown>:0atSystem.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(System.IO.StreamserializationStream)[0x00000]in<filenameunknown>:0atSystem.Runtime.Remoting.RemotingServices.DeserializeCallData(System.Byte[]array)[0x00000]in<filenameunknown>:0at(wrapperxdomain-dispatch)System.AppDomain:DoCallBack(object,byte[]&,byte[]&)Exceptionrethrownat[0]:at(wrapperxdomain-invoke)System.AppDomain:DoCallBack(System.CrossAppDomainDelegate)at(wrapperremoting-invoke-with-check)System.AppDomain:DoCallBack(System.CrossAppDomainDelegate)atSystem.Web.Hosting.ApplicationHost.CreateApplicationHost(System.TypehostType,System.StringvirtualDir,System.StringphysicalDir)[0x00000]in<filenameunknown>:0atjxAspx.Aspx.A(System.Stringname,System.StringvPath,System.StringpPath,IAspxRequestBrokerrequestBroker)[0x00000]in<filenameunknown>:0atjxAspx.Aspx.CreateAspxEngine(System.StringsiteName,System.StringvPath,System.StringpPath,IAspxRequestBrokerbroker)[0x00000]in<filenameunknown>:0ata.b.A(a.lA)[0x00000]in<filenameunknown>:0