問:服務(wù)部分可以運(yùn)行,部分請求報以下這個異常 線上環(huán)境有問題,自己本地開發(fā)機(jī)或者自己的云服務(wù)器部署正常。
— 16:28:31.3998 –Message:無法執(zhí)行程序。所執(zhí)行的命令為 "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部署環(huán)境問題 不支持
答:您好,
因?yàn)?span id="5x8s5pqxtz3" class='wp_keywordlink'>虛擬主機(jī)安全策略規(guī)則, 虛擬主機(jī)不能運(yùn)行exe文件, 我們幫您注釋掉使用的csc.exe編譯器, 使用vb即可正確運(yùn)行; 非常感謝您長期對我司的支持!
問:上面的問題可以了 這個又是什么限制導(dǎo)致?
[FileNotFoundException: 未能加載文件或程序集“Microsoft.AI.Web”或它的某一個依賴項(xiàng)。系統(tǒng)找不到指定的文件。] 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”或它的某一個依賴項(xiàng)。系統(tǒng)找不到指定的文件。] 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”或它的某一個依賴項(xiàng)。系統(tǒng)找不到指定的文件。] System.Web.HttpRuntime.FirstRequestInit(HttpContext context) 523 System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) 107 System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, context) 688
答:您好,
核實(shí)bin目錄下存在Microsoft.AI.Web.dll ,幫您切換到32位站點(diǎn)池運(yùn)行,請現(xiàn)在測試下,非常感謝您長期對我司的支持!
三五互聯(lián)(35.com)是經(jīng)工信部、ICANN、CNNIC認(rèn)證審批,持有ISP、云牌照、IDC、CDN、頂級域名注冊商等全業(yè)務(wù)資質(zhì)的正規(guī)老牌服務(wù)商,自成立至今20余年專注于域名注冊、虛擬主機(jī)、云服務(wù)器、企業(yè)郵箱、企業(yè)建站等互聯(lián)網(wǎng)基礎(chǔ)服務(wù)!
截止目前,已經(jīng)為超過2000萬個域名提供了注冊、解析等服務(wù),是中國五星級域名注冊注冊商!已為超過50萬個網(wǎng)站提供了高速穩(wěn)定的云托管服務(wù),獲評中國最受用戶喜歡云主機(jī)服務(wù)商。
三五互聯(lián)提供全方位7X24H專業(yè)售后支撐,域名注冊特價1元起,高速穩(wěn)定云主機(jī)45元起,更多詳情請瀏覽三五互聯(lián)官網(wǎng):http://www.shinetop.cn/