Silverlight 3.0, WCF to access a webservice

mic_y

Expert Member
Joined
Dec 23, 2004
Messages
1,646
Reaction score
10
Location
Slaapstad
Hey guys,

I have a silverlight app that I am hosting on my personal machine. This app pulls some data out of a SQL Server DB using WCF web services.

Now, when I connect to the app using the development server everything works, but as soon as I move the files to wwwroot and try and connect with IIS the page loads, but as soon as the request to the web service goes through, nothing happens (obviously it can't find it or something along those lines).

Now, what would I need to set up to get this thing working through IIS 7? I have created an application in IIS manager and placed the .svc file inside.

Thanks in advance...
 
ah thanks Farlig :) worked perfectly :) thx for helping a n00b out ;)

lots more WCF questions coming up ;)
 
mkay now... so I have figured out some of the stuff... and have come across a bit of a stumbling block...

Basically, I have a db (see schema here http://img705.imageshack.us/img705/7589/25033618.jpg). The silverlight client recieves a Student Number (Permit Holder table) as an input, and then I need to generate a whole bunch of info (specifically a list of fines, and payments) that have been issed to/made by the student.

This is exactly the part where I am getting stuck at with LINQ. I can generate the query but can't seem to figure out what the output type of the service function must be. Currently, I have

Code:
Function GetFinesByStudentNo (ByVal StudentNo As String) As List(Of ....)
and the code to pull the stuff from the DB.

Thing is I need data from more than one table in the result (eg. I need the total amount of the fine, which is obtained by adding up all the FineOffences for that specific FineNo. How Any ideas how to do this?
 
Top
Sign up to the MyBroadband newsletter
X