Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Rob Stevenson-Leggett 38 posts 110 karma points
    Dec 16, 2009 @ 14:22
    Rob Stevenson-Leggett
    0

    Hosting webservices in virtual directories beneath an umbraco (v4) install

    We've got a couple of web services (old style not WCF) running in virtual directories underneath an umbraco v4 install.

    These both work fine using the test interface.

    However when making Get or Post requests, one of the services seems to try and initialise umbraco when it is called. So we're getting either:

    Message: Type 'umbraco.DataLayer.SqlHelperException' in Assembly 'umbraco.DataLayer, Version=0.3.0.0, Culture=neutral, PublicKeyToken=null' is not marked as serializable.

    Is this normal? Should we move this service into it's own domain or is it a configuration issue?

    Any ideas at all would be great!

    Rob

     

  • Jeroen Breuer 4908 posts 12265 karma points MVP 5x admin c-trib
    Dec 16, 2009 @ 14:26
    Jeroen Breuer
    0

    I've had this problem too. Put a clean web.config in your virtual directory. This way your virtual directory isn't trying to load all the Umbraco dll's. You can also change your current web.config in Umbraco and make sure the web.config configurations aren't used in your virtual directory.

Please Sign in or register to post replies

Write your reply to:

Draft