I'm working on a project with a couple of my friends on Windows Azure using ServiceStack to create a RESTful API for our service. We're using SQLAzure to save spatial data provided by the users, and then our service queries the DB, performs some calculations, and then returns a location or index. I'm suing a library my colleague wrote to communicate with the DB. Configuration settings are stored in Web.config. When I test the service locally and on the Azure emulator, everything works fine, but once our code is uploaded and running it keeps throwing exceptions whenever it tries to connect to our SQLAzure server. Are there any special configuration setting I need to include for the instance to be able to connect? I already added the local services exception to the firewall rules.
7
-
What do the exceptions look like?user728584– user7285842012-04-20 09:43:49 +00:00Commented Apr 20, 2012 at 9:43
-
Have you tested running locally in the emulator and pointing at SQL Azure as opposed to a local SQL Server instance?user728584– user7285842012-04-20 09:44:42 +00:00Commented Apr 20, 2012 at 9:44
-
Yes, I tested it locally, and it works just fine.LakatosI– LakatosI2012-04-20 10:33:26 +00:00Commented Apr 20, 2012 at 10:33
-
As for the exceptions, I'm fairly new to Azure and ServiceStack, and I don't know exactly how to see the exceptions. I pin-pointed the problem down to the methods that call the database, so it must be a connection problem. ServiceStack theoretically should return through the response package any exception thrown, but in my case it just returns 0 for normal input. However, if I give it malformed data, it returns the exception as it is supposed to do.LakatosI– LakatosI2012-04-20 10:38:13 +00:00Commented Apr 20, 2012 at 10:38
-
1I'm wondering if its a ServiceStack issues, logging in via RDP might give you a better indication. Have you set the ServiceStack DLL's to copy local true when you deployed it? My assumption is that your deployment is missing something that your local machine has and it has nothing to do with the connection string and all to do with ServiceStack. (Is it supported on Azure?)user728584– user7285842012-04-20 11:57:52 +00:00Commented Apr 20, 2012 at 11:57
|
Show 2 more comments