Quantcast
Channel: ASP.NET AJAX + Ajax Control Toolkit (ACT)
Viewing all articles
Browse latest Browse all 5678

'AjaxControlToolkit.ToolkitScriptManagerConfig' threw an exception

$
0
0

Upgraded to latest Ajax release (Dec2013). My Website works fine on my pc, but when I move it to Godaddy it throws an error. If I use the asp scriptmanager page loads on website fine, but not with the ajax toolkit scriptmanager.a

Have spent two days researching and reading posts and I still cannot figure it out. I have listed the process below along with the error, masterfile, and config file. Can someone please tell me how I can correct this. Thanks, in advance.

Process:

-VS2010 selected create New Website (not project) 
-Installed Nuget Package Manager
-Installed AjaxControllToolkit
-Added ajax Tab to toolbox
-On ajax toolbox tab RightClick choose items and browsed to my website dir bin folder selected ajaxcontroltoolkit.dll
-DragDropd toolkitscriptmanager from toolbox under <form runat="server"> in master page
-F5 (build/run) website comes up just fine on my PC
-Used VS2010 ftp CopyWeb feature to move files to Godaddy
-try to go to website "http://www....
-the error below is what is returned.

[TypeInitializationException: The type initializer for 'AjaxControlToolkit.ToolkitScriptManagerConfig' threw an exception.]
   AjaxControlToolkit.ToolkitScriptManager..ctor() in ToolkitScriptManager.cs:114
   ASP.masterpages_site_master.__BuildControlToolkitScriptManager1() +26
   ASP.masterpages_site_master.__BuildControl__control6() +107
   ASP.masterpages_site_master.__BuildControlTree(masterpages_site_master __ctrl) +181
   ASP.masterpages_site_master.FrameworkInitialize() +22
   System.Web.UI.UserControl.InitializeAsUserControlInternal() +32
   System.Web.UI.MasterPage.CreateMaster(TemplateControl owner, HttpContext context, VirtualPath masterPageFile, IDictionary contentTemplateCollection) +655
   System.Web.UI.Page.get_Master() +54
   System.Web.UI.Page.ApplyMasterPage() +14
   System.Web.UI.Page.PerformPreInit() +45
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +335
                  


Master Page ---------------------------------------------------

<%@ Master Language="C#" AutoEventWireup="true" CodeFile="Site.master.cs" Inherits="SiteMaster" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"><head runat="server"><title></title><link href="~/Styles/Site.css" rel="stylesheet" type="text/css" /><asp:ContentPlaceHolder ID="HeadContent" runat="server"></asp:ContentPlaceHolder></head><body><form runat="server"><ajaxToolkit:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server"></ajaxToolkit:ToolkitScriptManager><div class="page"><div class="header"><div class="title"><h1>
                    My ASP.NET Application</h1></div></div><div class="main"><asp:ContentPlaceHolder ID="MainContent" runat="server"/></div><div class="clear"></div></div></form></body></html>

web.config ---------------------------------------------------  

<?xml version="1.0"?><!--
  For more information on how to configure your ASP.NET application, please visit
  http://go.microsoft.com/fwlink/?LinkId=169433
  --><configuration><connectionStrings><add name="ApplicationServices" connectionString="data source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|\aspnetdb.mdf;User Instance=true" providerName="System.Data.SqlClient"/></connectionStrings><system.web><customErrors mode="Off"/><compilation debug="true" targetFramework="4.0"><assemblies><add assembly="System.Data.Services.Client, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/></assemblies></compilation><authentication mode="Forms"><forms loginUrl="~/Account/Login.aspx" timeout="2880"/></authentication><membership><providers><clear/><add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider" connectionStringName="hidden"      
</providers></membership><profile><providers><clear/><add name="AspNetSqlProfileProvider" type="System.Web.Profile.SqlProfileProvider" connectionStringName="ApplicationServices" applicationName="/"/></providers></profile><roleManager enabled="false"><providers><clear/><add name="AspNetSqlRoleProvider" type="System.Web.Security.SqlRoleProvider" connectionStringName="ApplicationServices" applicationName="/"/><add name="AspNetWindowsTokenRoleProvider" type="System.Web.Security.WindowsTokenRoleProvider" applicationName="/"/></providers></roleManager><pages><controls><add tagPrefix="ajaxToolkit" assembly="AjaxControlToolkit" namespace="AjaxControlToolkit"/></controls></pages></system.web><system.webServer><modules runAllManagedModulesForAllRequests="true"/></system.webServer><runtime><assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"><dependentAssembly><assemblyIdentity name="Microsoft.WindowsAzure.Storage" publicKeyToken="31bf3856ad364e35" culture="neutral"/><bindingRedirect oldVersion="0.0.0.0-2.1.0.4" newVersion="2.1.0.4"/></dependentAssembly></assemblyBinding></runtime></configuration>


    Update-------

I got tired of trying to figure it out, so took the easy route, and went back to the last ajax version and it worked fine. Would still like to figure out at a later date, but back up and running now.


Viewing all articles
Browse latest Browse all 5678

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>