Using "Visual Studio Express 2012 for Web" I take the following steps; Create a new, empty project Use NUGET to install AjaxControlToolkit Create a "Toolbox" tab for AjaxControlToolkit Add a "Default.aspx" form Drag "AjaxFileUpload" into form1 of the new Default.aspx Drag "ToolkitScriptManager" into form1 When I run this in the local machine, it runs as expected. When I copy the resulting directory up to my Winhost folder, I get; "Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information." By the way: "Copy Local=True" for reference: AjaxControlToolkit Full Error: Server Error in '/' Application. Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information. 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.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information. Source Error: Line 11: <body> Line 12: <form id="form1" runat="server"> Line 13: <ajaxToolkit:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server"></ajaxToolkit:ToolkitScriptManager> Line 14: <div> Line 15: <ajaxToolkit:AjaxFileUpload ID="AjaxFileUpload1" runat="server" /> Source File: E:\web\pawtucco\Default.aspx Line: 13 Stack Trace: [ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.] System.Reflection.RuntimeModule.GetTypes(RuntimeModule module) +0 System.Reflection.RuntimeModule.GetTypes() +4 System.Reflection.Assembly.GetTypes() +61 AjaxControlToolkit.ToolkitScriptManagerConfig..cctor() +68 [TypeInitializationException: The type initializer for 'AjaxControlToolkit.ToolkitScriptManagerConfig' threw an exception.] AjaxControlToolkit.ToolkitScriptManager..ctor() +62 ASP.default_aspx.__BuildControlToolkitScriptManager1() in E:\web\pawtucco\Default.aspx:13 ASP.default_aspx.__BuildControlform1() in E:\web\pawtucco\Default.aspx:12 ASP.default_aspx.__BuildControlTree(default_aspx __ctrl) in E:\web\pawtucco\Default.aspx:1 ASP.default_aspx.FrameworkInitialize() +57 System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +48 System.Web.UI.Page.ProcessRequest() +72 System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +21 System.Web.UI.Page.ProcessRequest(HttpContext context) +58 ASP.default_aspx.ProcessRequest(HttpContext context) +37 System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +341 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +69 Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.18056 Default.aspx: Code: <%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Default.aspx.vb" Inherits="IHVN._Default" %> <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title></title> </head> <body> <form id="form1" runat="server"> <ajaxToolkit:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server"></ajaxToolkit:ToolkitScriptManager> <div> <ajaxToolkit:AjaxFileUpload ID="AjaxFileUpload1" runat="server" /> </div> </form> </body> </html> Default.aspx.vb: Code: PublicClass_Default Inherits System.Web.UI.Page ProtectedSub Page_Load(ByVal sender AsObject, ByVal e As System.EventArgs) HandlesMe.Load EndSub EndClass
I'm not sure what the exact problem is, but to use any of the Ajax Controls, you need to add a script manager to the page.