Quantcast
Channel: Service Bus forum
Viewing all articles
Browse latest Browse all 1916

Caching in wcf rest when azure service bus integrated

$
0
0

when I added

`[AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Required)]`

in wcf rest service and

    <serviceHostingEnvironment aspNetCompatibilityEnabled="true"/>

in webconfig

 im getting error as

The service cannot be activated because it does not support ASP.NET compatibility. ASP.NET compatibility is enabled for this application. Turn off ASP.NET compatibility mode in the web.config or add the AspNetCompatibilityRequirements attribute to the service type with RequirementsMode setting as 'Allowed' or 'Required'.

Its working fine when I run service in localhost and even hosted in IIS but its throwing the error when I host the service and servicebus is integrated..

Actually I need this bcos im planning to implement caching in wcf rest service..

I came to know that as im integrating servicebus eventhough i added the above mentioned attribute it wont work  as per this link

http://blogs.msdn.com/b/avkashchauhan/archive/2011/11/17/wcf-rest-http-application-connecting-azure-service-bus-using-webhttprelaybinding-causes-aspnetcompatibilityenabled-error.aspx

and I need to implement caching and as per below link the above menioned attribute is required for caching

http://msdn.microsoft.com/en-us/library/ee230443.aspx

please let me know how can implement caching



Viewing all articles
Browse latest Browse all 1916

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>