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?
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.
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
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.
is working on a reply...