Hello, I have a C# Service project where I am connectiong to SQL and retrieving data. When I debug locally eg: in the Visual Studion Developement Server it works nice. But when I upload to the server(simply localhost/MyProject/) The SqlCommand() is throws an exception. Are there way to get more information on SqlCommand()? What permissions I should set to run web service on the server?
Maybe mode details: The project within VS2008 envirenoment is works nice:
but on the http://localhost/GetJpeg.aspx?ra=224.5941&dec=-1.09&width=1000&height=1000&scale=1 no.
The exception is not really exception the:
SqlDataReader reader does not return any result in second case:
reader = cmdCenter.ExecuteReader();
                if (reader.Read()) 
                {
                    //Do Something
                    reader.Close(); 
                }                               
                else 
                {                   
                    throw new Exception("Request is failed");
                }
Thanks Arman.
EDIT Just for information: In one case the code is debugged via ASP.NET Developement Server and the second one is running on IIS 7.0
UPDATE
After deep digging I discovered: The connection is open and connected, usual queries is ok, but queries with stored functions are failing... can be that IIS miss configuration ?