Print Page | Close Window

Deploy of IIS EntityServer error

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce 2010
Forum Discription: For .NET 4.0
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=3908
Printed Date: 13-Mar-2025 at 11:59am


Topic: Deploy of IIS EntityServer error
Posted By: -ook
Subject: Deploy of IIS EntityServer error
Date Posted: 20-Jan-2013 at 7:53pm
Hello
 
I have created a simple EntityServer project and deployed it to a remote server as per the instructions found on this web site. However when attempting to obtain data from the deployed instance I recieve the following error:
{"Content Type application/x-gzip was not supported by service - /AppDataService/EntityService.svc - http://<servername>/AppDataService/EntityService.svc .  The client and service bindings may be mismatched."}
 
I have deployed then deployed to my local machine using the same instructions and there are no errors, also the development instance (on port 9009) works fine too. The remote web server is Windows 2008 R2, are there any additional instructions regarding the compression settings?
 
Thanks
Mark
 



Replies:
Posted By: -ook
Date Posted: 20-Jan-2013 at 9:35pm
It appears to be related to the licesne. I had to run the DevForce installation on the web server in question and it has worked. I am using POCO classes and there is no database at all involved, I suspect the license has not embedded itself in the Model class.


Posted By: kimj
Date Posted: 21-Jan-2013 at 9:52am
If you're using pure POCO entities and don't have a Code First or database-generated model, you're right that there won't be a license for DevForce to find at runtime.  Installing DevForce adds the license to the registry, which DevForce will check as a fallback if a license isn't found in a model assembly.   If you don't wish to install DevForce you can instead generate a stub model with license information.  PM me if interested in this option.



Print Page | Close Window