componentArt回调不发射,因为JavaScript对象为空或未定义



我正在尝试获取该网站运行以本地运行的组件。它在开发服务器上工作,但在本地不起作用。许多呼叫回音不起作用。我在服务器端代码中设置了一个断点,并且由于JavaScript正在尝试调用它。

,它没有被击中。

JavaScript错误是:

script5007:属性" savechanges"的值是null或未定义的,而不是函数对象 文件:popupdataCollectionNoteexternal.aspx.js,行:35,列:2

服务器端代码是:

<ComponentArtCallbackMethod()> Public Function SaveChanges(ByVal sDrawerID As String, ByVal iDataCollectionRequestID As String, ByVal iNoteID As String, ByVal sNote As String, ByVal iClosed As String, ByVal sResolution As String) As String
...
End Function

JavaScript代码是:

var sReturn = SaveChanges(sDrawerID,iDataCollectionRequestID, iNoteID, sNote, iClosed, sResolution);

有人知道是否有配置项目或文件丢失?

我认为答案在这里:

http://www.componentart.com/community/forums/t/64103.aspx

您可能在不适合您的环境中以IIS 7在IIS 7中运行。

在集成模式下IIS 7需要此配置:

<system.web>
    <compilation debug="true" targetFramework="4.0" />
    <pages controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID" />
    <httpHandlers>
      <add type="ComponentArt.Web.UI.ScriptHandler,ComponentArt.Web.UI" path="ComponentArtScript.axd" verb="*" />
      <add type="ComponentArt.Web.UI.CallbackHandler,ComponentArt.Web.UI" path="*.aspx" verb="*" />
    </httpHandlers>
        <roleManager enabled="true" />    
  </system.web>
  <system.webServer>
    <validation validateIntegratedModeConfiguration="false" />
    <handlers>
     <add name="ComponentArtCallbackHandler" path="*.aspx" verb="*" type="ComponentArt.Web.UI.CallbackHandler" resourceType="Unspecified" preCondition="integratedMode" />
      <add name="ComponentArtScriptHandler" type="ComponentArt.Web.UI.ScriptHandler,ComponentArt.Web.UI" path="ComponentArtScript.axd" verb="*" />
    </handlers>
  </system.webServer>

最新更新