Jexus独立版5.8.1和5.8.2都试了,运行VS2010建的ASP.Net Webform项目(默认初建项目没做任何改动)时,报如题错误。求解.....
详细错误如下:
Description: Error parsing a resource required to service this request. Review your source file and modify it to fix this error.
Details: Cannot find type Default2, WebSite3_deploy
Error origin: Parser
Error source file: /var/www/default/TempBuildDir/Default2.aspx
Exception stack trace:
at System.Web.UI.BaseParser.ThrowParseException (System.String message, System.Object[] parms) [0x00022] in <773b4d6751eb49b6b9905c61cc1619de>:0 at System.Web.UI.TemplateParser.SetBaseType (System.String type) [0x00047] in <773b4d6751eb49b6b9905c61cc1619de>:0 at System.Web.UI.TemplateParser.ProcessMainAttributes (System.Collections.IDictionary atts) [0x002ad] in <773b4d6751eb49b6b9905c61cc1619de>:0 at System.Web.UI.TemplateControlParser.ProcessMainAttributes (System.Collections.IDictionary atts) [0x000de] in <773b4d6751eb49b6b9905c61cc1619de>:0 at System.Web.UI.PageParser.ProcessMainAttributes (System.Collections.IDictionary atts) [0x00777] in <773b4d6751eb49b6b9905c61cc1619de>:0 at System.Web.UI.TemplateParser.AddDirective (System.String directive, System.Collections.IDictionary atts) [0x00083] in <773b4d6751eb49b6b9905c61cc1619de>:0 at System.Web.UI.TemplateControlParser.AddDirective (System.String directive, System.Collections.IDictionary atts) [0x001f8] in <773b4d6751eb49b6b9905c61cc1619de>:0 at System.Web.UI.PageParser.AddDirective (System.String directive, System.Collections.IDictionary atts) [0x00135] in <773b4d6751eb49b6b9905c61cc1619de>:0 at System.Web.Compilation.AspGenerator.GetInheritedType (System.String fileContents, System.String filename) [0x00114] in <773b4d6751eb49b6b9905c61cc1619de>:0 at System.Web.Compilation.AspGenerator.GetRootBuilderType (System.IO.Stream inputStream, System.String filename) [0x0001f] in <773b4d6751eb49b6b9905c61cc1619de>:0 at System.Web.Compilation.AspGenerator.CreateRootBuilder (System.IO.Stream inputStream, System.String filename) [0x00009] in <773b4d6751eb49b6b9905c61cc1619de>:0 at System.Web.Compilation.AspGenerator.InitParser (System.IO.TextReader reader, System.String filename) [0x0005c] in <773b4d6751eb49b6b9905c61cc1619de>:0 at System.Web.Compilation.AspGenerator.Parse (System.IO.TextReader reader, System.String filename, System.Boolean doInitParser) [0x0001e] in <773b4d6751eb49b6b9905c61cc1619de>:0 at System.Web.Compilation.GenericBuildProvider`1[TParser].Parse () [0x0003c] in <773b4d6751eb49b6b9905c61cc1619de>:0 at System.Web.Compilation.GenericBuildProvider`1[TParser].GenerateCode () [0x00000] in <773b4d6751eb49b6b9905c61cc1619de>:0 at System.Web.Compilation.GenericBuildProvider`1[TParser].GenerateCode (System.Web.Compilation.AssemblyBuilder assemblyBuilder) [0x00008] in <773b4d6751eb49b6b9905c61cc1619de>:0 at System.Web.Compilation.BuildManager.GenerateAssembly (System.Web.Compilation.AssemblyBuilder abuilder, System.Web.Compilation.BuildProviderGroup group, System.Web.VirtualPath vp, System.Boolean debug) [0x000a0] in <773b4d6751eb49b6b9905c61cc1619de>:0 at System.Web.Compilation.BuildManager.BuildInner (System.Web.VirtualPath vp, System.Boolean debug) [0x00106] in <773b4d6751eb49b6b9905c61cc1619de>:0 at System.Web.Compilation.BuildManager.Build (System.Web.VirtualPath vp) [0x00058] in <773b4d6751eb49b6b9905c61cc1619de>:0 at System.Web.Compilation.BuildManager.GetCompiledType (System.Web.VirtualPath virtualPath) [0x00037] in <773b4d6751eb49b6b9905c61cc1619de>:0 at System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath (System.Web.VirtualPath virtualPath, System.Type requiredBaseType) [0x0000f] in <773b4d6751eb49b6b9905c61cc1619de>:0 at System.Web.UI.PageParser.GetCompiledPageInstance (System.String virtualPath, System.String inputFile, System.Web.HttpContext context) [0x00021] in <773b4d6751eb49b6b9905c61cc1619de>:0 at System.Web.UI.PageHandlerFactory.GetHandler (System.Web.HttpContext context, System.String requestType, System.String virtualPath, System.String path) [0x00000] in <773b4d6751eb49b6b9905c61cc1619de>:0 at System.Web.HttpApplication.GetHandler (System.Web.HttpContext context, System.String url, System.Boolean ignoreContextHandler) [0x00059] in <773b4d6751eb49b6b9905c61cc1619de>:0 at System.Web.HttpApplication.GetHandler (System.Web.HttpContext context, System.String url) [0x00000] in <773b4d6751eb49b6b9905c61cc1619de>:0 at System.Web.HttpApplication+<Pipeline>d__225.MoveNext () [0x00564] in <773b4d6751eb49b6b9905c61cc1619de>:0
作者:gl 发布时间:17年11月08日 可选操作:
删除 回复VS2015以前的版本預設初建項目專案是不能直接用在Deploy Mono上, 會報錯。
需要手動移除一些dll.
建議解決方式請參考此篇
https://www.linuxdot.net/bbsfile-4758
如果是新專案, 可以試試Visual Studio 2017 直接用 Asp.net core 2.
搭配 Jexus也很不錯.
作者:小白 发布时间:17年11月10日 可选操作:
删除 回复