1

我有一個名爲約會的webforms 4/5應用程序。我正嘗試從子文件夾/ m或/ mobile上運行mvc 4.5移動網站模板應用程序,但沒有多大成功。我仍然在學習,並且正在與IIS掙扎。如果我只是發表我的移動應用程序到子文件夾中,我得到大意如下錯誤:添加MVC4.5 web應用程序到webforms 4.5應用程序的子目錄

"Parser Error Message: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS." 

Line 27:  <authentication mode="Forms"> 

,當我的文件夾設置爲一個虛擬目錄或將其轉換爲一個應用程序,我得到以下錯誤:

Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies. The system cannot find the file specified. 

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.IO.FileNotFoundException: Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies. The system cannot find the file specified. 

Source Error: 

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. 

Assembly Load Trace: The following information can be helpful to determine why the assembly 'AjaxControlToolkit' could not be loaded. 


=== Pre-bind state information === 
LOG: User = IIS APPPOOL\Dating 
LOG: DisplayName = AjaxControlToolkit 
(Partial) 
WRN: Partial binding information was supplied for an assembly: 
WRN: Assembly Name: AjaxControlToolkit | Domain ID: 8 
WRN: A partial bind occurs when only part of the assembly display name is provided. 
WRN: This might result in the binder loading an incorrect assembly. 
WRN: It is recommended to provide a fully specified textual identity for the assembly, 
WRN: that consists of the simple name, version, culture, and public key token. 
WRN: See whitepaper http://go.microsoft.com/fwlink/?LinkId=109270 for more information and common solutions to this issue. 
LOG: Appbase = file:///D:/WebProjects/Dating/Dating/DatingMobile/ 
LOG: Initial PrivatePath = D:\WebProjects\Dating\Dating\DatingMobile\bin 
Calling assembly : (Unknown). 
=== 
LOG: This bind starts in default load context. 
LOG: Using application configuration file: D:\WebProjects\Dating\Dating\DatingMobile\web.config 
LOG: Using host configuration file: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet.config 
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v4.0.30319\config\machine.config. 
LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind). 
LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/Temporary ASP.NET Files/m/03cc50e2/37a5ccf4/AjaxControlToolkit.DLL. 
LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/Temporary ASP.NET Files/m/03cc50e2/37a5ccf4/AjaxControlToolkit/AjaxControlToolkit.DLL. 
LOG: Attempting download of new URL file:///D:/WebProjects/Dating/Dating/DatingMobile/bin/AjaxControlToolkit.DLL. 
LOG: Attempting download of new URL file:///D:/WebProjects/Dating/Dating/DatingMobile/bin/AjaxControlToolkit/AjaxControlToolkit.DLL. 
LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/Temporary ASP.NET Files/m/03cc50e2/37a5ccf4/AjaxControlToolkit.EXE. 
LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/Temporary ASP.NET Files/m/03cc50e2/37a5ccf4/AjaxControlToolkit/AjaxControlToolkit.EXE. 
LOG: Attempting download of new URL file:///D:/WebProjects/Dating/Dating/DatingMobile/bin/AjaxControlToolkit.EXE. 
LOG: Attempting download of new URL file:///D:/WebProjects/Dating/Dating/DatingMobile/bin/AjaxControlToolkit/AjaxControlToolkit.EXE. 

Stack Trace: 


[FileNotFoundException: Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies. The system cannot find the file specified.] 
    System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +0 
    System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +210 
    System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean forIntrospection) +242 
    System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +17 
    System.Reflection.Assembly.Load(String assemblyString) +35 
    System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +122 

[ConfigurationErrorsException: Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies. The system cannot find the file specified.] 
    System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +12759734 
    System.Web.Configuration.AssemblyInfo.get_AssemblyInternal() +214 
    System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig) +334 
    System.Web.Compilation.BuildManager.CallPreStartInitMethods(String preStartInitListPath) +203 
    System.Web.Compilation.BuildManager.ExecutePreAppStart() +152 
    System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException) +1151 

[HttpException (0x80004005): Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies. The system cannot find the file specified.] 
    System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +12880068 
    System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +159 
    System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +12721257 

我有ajaxcontroltoolkit在我的web表單應用程序,但不是在移動應用(瀏覽到移動路徑是,當我得到的錯誤)

我用盡我的MVC應用程序建立一個新的應用程序池,但它仍然不會工作。如果有人可以指向我在正確的方向id是非常偉大的

回答

相關問題