Click here to Skip to main content
15,898,134 members
Home / Discussions / WPF
   

WPF

 
AnswerRe: Problem with Silverlight grid, extra cell [modified] Pin
Abhinav S17-May-10 16:21
Abhinav S17-May-10 16:21 
GeneralRe: Problem with Silverlight grid, extra cell [modified] Pin
Philky00117-May-10 16:49
Philky00117-May-10 16:49 
GeneralRe: Problem with Silverlight grid, extra cell Pin
Abhinav S17-May-10 17:33
Abhinav S17-May-10 17:33 
GeneralRe: Problem with Silverlight grid, extra cell Pin
Philky00118-May-10 9:00
Philky00118-May-10 9:00 
AnswerRe: Problem with Silverlight grid, extra cell Pin
Abhinav S18-May-10 17:28
Abhinav S18-May-10 17:28 
QuestionHow does Silverlight find its Web service when the latter is in an assembly? [SOLVED] Pin
fjparisIII17-May-10 8:18
fjparisIII17-May-10 8:18 
AnswerRe: How does Silverlight find its Web service when the latter is in an assembly? Pin
Abhinav S17-May-10 18:12
Abhinav S17-May-10 18:12 
GeneralRe: How does Silverlight find its Web service when the latter is in an assembly? Pin
fjparisIII18-May-10 6:42
fjparisIII18-May-10 6:42 
Abhinav S wrote:
Not sure what your question is

I tried to make that clear by displaying my question in italics: how does the Silverlight application know where the code for the Web service is stored when it makes calls to it?
Abhinav S wrote:
the ServiceReferences.ClientConfig file contains information that is used to find the web service.

The ServiceReferences.ClientConfig file has a client endpoint element defined which of course has an address attribute. Since making my first post in this thread I've been trying to figure out the answer to my question myself. As near as I can figure out, the service needs to be in a folder named bin that is relative to the endpoint address. When VS2010 makes a new Silveright Web Application project, it places the .svc in the root of localhost, or the root of your project. Then when you build the project, the service assembly winds up in the bin folder off the .Web project.

So presumably when you deploy all this to a live Website, the .svc file goes into the root of the Website and the service assembly goes into a directory called bin that lies off the root of the Website. So I did this and now for the first time since I tried accessing my service from the Website itself, everything works!

I've been pulling my hair out over this for two extremely frustrating and depressing weeks and was ready to bring a consulting firm into my house for $250 an hour to solve my problem. I suspected it would only taken an expert five minutes to find out what was wrong because my Web Application project had no problem at all contacting my service when everything was run from my local PC. And I was right! Once I understood what is written in the previous paragraph, it took me all of two minutes to solve my problem!

Judging from the number of unanswered threads about this on the Web, there seems to be a huge problem of being able to contact the service perfectly fine when the project is executed from within VS2010 and failing miserably when it is deployed to the live Website. Tons of unanswered questions are out there! I really feel for all these people, because until this morning I've been suffering from the same misery for the last two weeks!

However, even though my real concern is now satisfied, I'm not going to mark this thread as SOLVED because my question wasn't "how do I connect to my service when it is located in my live Website," but how does the Silverlight application know where the code for the Web service is stored when it makes calls to it?

You see, I'm still not sure what the answer to this question is or what the CodeBehind attribute in the .svc has to do with anything, since it doesn't point to anything at all that exists (explicitly) on the Website! So my question is more related to how all the plumbing works rather than about a problem I'm still having. Once I have the answer to this question, I should probably write a Code Project article on how to manually deploy Web Application Projects, since judging from the horrendous amount of unanswered threads on the Web asking this question, more easy to follow instructions on how to do this are sorely needed.
AnswerRe: How does Silverlight find its Web service when the latter is in an assembly? Pin
shiznit77019-May-10 7:17
shiznit77019-May-10 7:17 
GeneralRe: How does Silverlight find its Web service when the latter is in an assembly? Pin
fjparisIII19-May-10 7:44
fjparisIII19-May-10 7:44 
QuestionHow to get access to main window controls in WPF Pin
Majid Shahabfar17-May-10 5:11
Majid Shahabfar17-May-10 5:11 
AnswerRe: How to get access to main window controls in WPF Pin
Abhinav S17-May-10 17:42
Abhinav S17-May-10 17:42 
GeneralRe: How to get access to main window controls in WPF Pin
Majid Shahabfar18-May-10 9:14
Majid Shahabfar18-May-10 9:14 
QuestionSL3 Resource Dictionaries [SOLVED] Pin
#realJSOP17-May-10 3:50
professional#realJSOP17-May-10 3:50 
AnswerRe: SL3 Resource Dictionaries Pin
Abhinav S17-May-10 7:04
Abhinav S17-May-10 7:04 
GeneralRe: SL3 Resource Dictionaries Pin
#realJSOP17-May-10 7:07
professional#realJSOP17-May-10 7:07 
GeneralRe: SL3 Resource Dictionaries Pin
Abhinav S17-May-10 7:56
Abhinav S17-May-10 7:56 
GeneralRe: SL3 Resource Dictionaries Pin
#realJSOP17-May-10 8:13
professional#realJSOP17-May-10 8:13 
GeneralRe: SL3 Resource Dictionaries Pin
#realJSOP17-May-10 8:55
professional#realJSOP17-May-10 8:55 
GeneralRe: SL3 Resource Dictionaries Pin
Abhinav S17-May-10 16:16
Abhinav S17-May-10 16:16 
GeneralRe: SL3 Resource Dictionaries Pin
blackjack215018-May-10 1:35
blackjack215018-May-10 1:35 
GeneralRe: SL3 Resource Dictionaries Pin
#realJSOP19-May-10 0:09
professional#realJSOP19-May-10 0:09 
QuestionShapes in Rich text box Pin
r i s h a b h s17-May-10 1:46
r i s h a b h s17-May-10 1:46 
AnswerRe: Shapes in Rich text box Pin
r i s h a b h s17-May-10 18:43
r i s h a b h s17-May-10 18:43 
AnswerRe: Shapes in Rich text box Pin
Abhinav S17-May-10 20:00
Abhinav S17-May-10 20:00 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.