开发者

Sharepoint ajax web service compatibality

I have a Sharepoint publishing site that is configured to use ajax 1.0 to use some third party controls (RadEditor, Bamboo).

My problem is I have created a custom web service (.asmx) in a visual studio wspbuilder project and dep开发者_开发技巧loyed it to the ISAPI folder. The project is set up to use .net 3.5 framework. This works fine for our custom code, but I am having issues making calls to the custom web service via the jQuery $.ajax method. All I get back is generic error messages.

My question is can a website that is configured to use ajax 1.0 make a call to a .asmx web service that was compiled using the .net 3.5 framework?


I got this to work, I had to add this to the section of the web.config:

<dependentAssembly>
        <assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35"/>
        <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/>
    </dependentAssembly>
    <dependentAssembly>
        <assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35"/>
        <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/>
    </dependentAssembly>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜