Problems with SharePoint 2010 menus and javascript using a Cisco WebVPN (ASA)

We noticed that the SharePoint 2010 menus were not working with our Cisco ASA’s WebVPN. If the top level menu had children, they would not show on hover. Then we started noticing that all jQuery based functions stopped working. It seemed that much of the Javascript used with SharePoint 2010 would not work with our ASA. The fix was to add this to the web.config for the SharePoint site:

 <system.web.extensions>
     <scripting>
           <scriptResourceHandler enableCompression="false" enableCaching="true" />
     </scripting>
</system.web.extensions>

Obviously you are adding the scriptResourceHandler to an exiting scripting section and not replacing what is already there.


Posted

in

, ,

by

Comments

11 responses to “Problems with SharePoint 2010 menus and javascript using a Cisco WebVPN (ASA)”

  1. Mike Avatar
    Mike

    That you very much for this post. This resolved an issue we have been struggling with for quite some time between SharePoint and our ASA.

  2. jbmurphy Avatar

    Glad I could help!

  3. Scott Avatar
    Scott

    This works great for me too. I’m curious why Cisco does not have this documented anywhere. Sharepoint 2010 should be fully supported.

    Can you explain what enableCompression=”false” enableCaching=”true” actually does? Other than knowing it works, I would like to know if it might cause other problems in the future. Thanks.

  4. jbmurphy Avatar

    Honestly, I don’t know but I have not seen any issues. WebVPN functionality was a very important requirement, so we had to do it.
    Sorry.

  5. Scott Avatar
    Scott

    No, problem. I appreciate the help. Just curious, how did you find out about it?

  6. jbmurphy Avatar

    Support call!

  7. Phil Avatar
    Phil

    Dumb question – which web.config file do we need to put this in?

  8. jbmurphy Avatar

    I put it in the one for the site:
    C:\inetpub\wwwroot\wss\VirtualDirectories\site.name.com.com80\web.config

  9. Marco Avatar

    We had this problem too. The SharePoint ribbon was stuck on ‘Loading’ and would never appear. Also other functions like “Create New Site” didn’t work.

    After adding these lines in the web.config files for our two web applications (portal and mysites) it started working immediately.

    Thank you very much for sharing this information!

  10. Dez Avatar
    Dez

    Thanks so much JBMurphy!! Was lost and having issues with outside vendors being able to upload documents using ribbon. Ribbon was staying stuck at loading, added this script to webconfig and things are working fine now for users!

  11. Tim Avatar
    Tim

    Can you tell me where you added the script to the web.config file please? I added it to the very end of the file, and it broke it alltogether.