問:服務部分可以運行,部分請求報以下這個異常 線上環境有問題,自己本地開發機或者自己的云服務器部署正常。
— 16:28:31.3998 –Message:無法執行程序。所執行的命令為 "D:\\www\\zts03\\www\\bin\\roslyn\\csc.exe" /shared /keepalive:"10" /noconfig /fullpaths @"D:\\tmp_aspnet\\\\f251c7f2\\9c01c1a2\\2aosulyx.cmdline"。StackTrace: 在 System.CodeDom.Compiler.Executor.ExecWaitWithCaptureUnimpersonated(SafeUserTokenHandle , cmd, currentDir, TempFileCollection , & , & , trueCmdLine) 在 System.CodeDom.Compiler.Executor.ExecWaitWithCapture(SafeUserTokenHandle , cmd, currentDir, TempFileCollection , & , & , trueCmdLine) 在 System.CodeDom.Compiler.Executor.ExecWaitWithCapture(IntPtr , cmd, currentDir, TempFileCollection , & , & errorName) 在 Microsoft.CodeDom.Providers.DotNetCompilerPlatform.Compiler.Compile(CompilerParameters , compilerFullPath, arguments, & , Int32& nativeReturnValue) 在 Microsoft.CodeDom.Providers.DotNetCompilerPlatform.Compiler.FromFileBatch(CompilerParameters , String[] fileNames) 在 Microsoft.CodeDom.Providers.DotNetCompilerPlatform.Compiler.CompileAssemblyFromFileBatch(CompilerParameters , String[] fileNames) 在 System.Web.Compilation.AssemblyBuilder.Compile() 在 System.Web.Compilation.BuildProvidersCompiler.PerformBuild() 在 System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath) 在 System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath , noBuild, allowCrossApp, allowBuildInPrecompile, throwIfNotFound, ensureIsUpToDate) 在 System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext , virtualPath, noBuild, allowCrossApp, allowBuildInPrecompile, throwIfNotFound, ensureIsUpToDate) 在 System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath , context, allowCrossApp, throwIfNotFound) 在 System.Web.Compilation.BuildManager.GetCompiledType(VirtualPath virtualPath) 在 System.Web.Mvc.BuildManagerCompiledView.Render(ViewContext , writer) 在 System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context) 在 System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 , Int32 , ResultExecutingContext , ControllerContext controllerContext, actionResult) 在 System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 , Int32 , ResultExecutingContext , ControllerContext controllerContext, actionResult) 在 System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 , Int32 , ResultExecutingContext , ControllerContext controllerContext, actionResult) 在 System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 , Int32 , ResultExecutingContext , ControllerContext controllerContext, actionResult) 在 System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList`1 , actionResult) 在 System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass21.<BeginInvokeAction>b__1e(IAsyncResult asyncResult)ExtInfo:
,.net部署環境問題 不支持
答:您好,
因為虛擬主機安全策略規則, 虛擬主機不能運行exe文件, 我們幫您注釋掉使用的csc.exe編譯器, 使用vb即可正確運行; 非常感謝您長期對我司的支持!
問:上面的問題可以了 這個又是什么限制導致?
[FileNotFoundException: 未能加載文件或程序集“Microsoft.AI.Web”或它的某一個依賴項。系統找不到指定的文件。] System.RuntimeTypeHandle.GetTypeByName(String name, throwOnError, ignoreCase, reflectionOnly, StackCrawlMarkHandle , pPrivHostBinder, loadTypeFromPartialName, ObjectHandleOnStack type) 0 System.RuntimeTypeHandle.GetTypeByName(String name, throwOnError, ignoreCase, reflectionOnly, & , pPrivHostBinder, loadTypeFromPartialName) 95 System.Type.GetType(String , throwOnError, ignoreCase) 64 System.Web.Compilation.BuildManager.GetType(String , throwOnError, ignoreCase) 59 System.Web.Configuration.ConfigUtil.GetType(String , propertyName, ConfigurationElement , node, checkAptcaBit, ignoreCase) 49
[ConfigurationErrorsException: 未能加載文件或程序集“Microsoft.AI.Web”或它的某一個依賴項。系統找不到指定的文件。] System.Web.Configuration.ConfigUtil.GetType(String , propertyName, ConfigurationElement , node, checkAptcaBit, ignoreCase) 550 System.Web.Configuration.ConfigUtil.GetType(String , propertyName, ConfigurationElement , checkAptcaBit) 30 System.Web.Configuration.Common.ModulesEntry.SecureGetType(String , propertyName, ConfigurationElement configElement) 57 System.Web.Configuration.Common.ModulesEntry..ctor(String name, typeName, propertyName, ConfigurationElement configElement) 57 System.Web.HttpApplication.BuildIntegratedModuleCollection(List`1 moduleList) 173 System.Web.HttpApplication.GetModuleCollection(IntPtr appContext) 1069 System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr , context, MethodInfo[] handlers) 130 System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] , appContext, context) 165 System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr , context) 267 System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) 341
[HttpException (0x: 未能加載文件或程序集“Microsoft.AI.Web”或它的某一個依賴項。系統找不到指定的文件。] System.Web.HttpRuntime.FirstRequestInit(HttpContext context) 523 System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) 107 System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, context) 688
答:您好,
核實bin目錄下存在Microsoft.AI.Web.dll ,幫您切換到32位站點池運行,請現在測試下,非常感謝您長期對我司的支持!
三五互聯(35.com)是經工信部、ICANN、CNNIC認證審批,持有ISP、云牌照、IDC、CDN、頂級域名注冊商等全業務資質的正規老牌服務商,自成立至今20余年專注于域名注冊、虛擬主機、云服務器、企業郵箱、企業建站等互聯網基礎服務!
截止目前,已經為超過2000萬個域名提供了注冊、解析等服務,是中國五星級域名注冊注冊商!已為超過50萬個網站提供了高速穩定的云托管服務,獲評中國最受用戶喜歡云主機服務商。
三五互聯提供全方位7X24H專業售后支撐,域名注冊特價1元起,高速穩定云主機45元起,更多詳情請瀏覽三五互聯官網:http://m.shinetop.cn/