2013-05-28 99 views
1

我使用AJAX控件工具包壓延機擴展和我得到以下異常:
調用堆棧的位置:
AjaxConrolTollkit.DLL AjaxControlToolkit.ExtenderControlBase.Dispose()
* 源文件信息AJAX控件工具包例外

Locating source for 'f:\TeamCity\buildAgent\work\80acd78aa4c25314\Server\AjaxControlToolkit\ExtenderBase\ExtenderControlBase.cs'. Checksum: MD5 {ee 1a 1d c3 d5 ca a 7d 84 6b 74 7f 51 e8 63 6b} 
The file 'f:\TeamCity\buildAgent\work\80acd78aa4c25314\Server\AjaxControlToolkit\ExtenderBase\ExtenderControlBase.cs' does not exist. 
Looking in script documents for 'f:\TeamCity\buildAgent\work\80acd78aa4c25314\Server\AjaxControlToolkit\ExtenderBase\ExtenderControlBase.cs'... 
Looking in the projects for 'f:\TeamCity\buildAgent\work\80acd78aa4c25314\Server\AjaxControlToolkit\ExtenderBase\ExtenderControlBase.cs'. 
The file was not found in a project. 
Looking in directory 'C:\Program Files\Microsoft Visual Studio 10.0\VC\crt\src\'... 
Looking in directory 'C:\Program Files\Microsoft Visual Studio 10.0\VC\atlmfc\src\mfc\'... 
Looking in directory 'C:\Program Files\Microsoft Visual Studio 10.0\VC\atlmfc\src\atl\'... 
Looking in directory 'C:\Program Files\Microsoft Visual Studio 10.0\VC\atlmfc\include\'... 
The debug source files settings for the active solution indicate that the debugger will not ask the user to find the file: f:\TeamCity\buildAgent\work\80acd78aa4c25314\Server\AjaxControlToolkit\ExtenderBase\ExtenderControlBase.cs. 
The debugger could not locate the source file 'f:\TeamCity\buildAgent\work\80acd78aa4c25314\Server\AjaxControlToolkit\ExtenderBase\ExtenderControlBase.cs'. 

幫助我在這種情況下。在此先感謝

+0

您需要在您的'Web.config'文件或'aspx'頁面的頂部註冊您的Ajax Control Toolkit。 – adaam

+0

像adaam說的那樣,在aspx頁面這樣註冊。 <%@ Register Assembly =「AjaxControlToolkit」Namespace =「AjaxControlToolkit」TagPrefix =「ajax」%> – MahaSwetha

+0

我註冊了它: <%@ Namespace =「AjaxControlToolkit」Assembly =「AjaxControlToolkit」%> –

回答

1

拖放工具腳本經理也當您將它從AJAX工具包

0

降大任於控制Web.config文件中添加以下代碼:

<handlers> 
    <add name="AjaxFileUploadHandler" 
     verb="*" 
     path="AjaxFileUploadHandler.axd" 
     type="AjaxControlToolkit.AjaxFileUploadHandler, AjaxControlToolkit"/> 
</handlers> 

這解決了我的問題

0

使用「ToolkitScriptManager」而不是「ScriptManager」。

+0

你可以通過一些示例代碼充實這個答案嗎? – ManoDestra