silverlight deployment
Old forum URL: forums.lhotka.net/forums/t/7248.aspx
germie posted on Thursday, July 09, 2009
i am having a real hard time trying to deploy my silverlight wcf project to iis. i can deploy just a basic silverlight project and it will work fine. even a wcf silverlight enabled project and it works. once i try to have that wcf make a sql call it will fail. is there any step by step instructions on how to deploy a wcf project to iis? ie. book or white pages, any thing, i am feeling totaly lost here. i got the rolodex project running and making the sql call while running in vs. but once it is on iis. failure. i am using iis 5 and vb. sergeyb replied on Thursday, July 09, 2009
First thing is to get the service to work properly. To verify just paste your URL from ServiceReferences.ClientConfig into a browser and see if you get any errors, or a standard WCF page will come up. I suspect eh issue is that IIS 5 has no idea about WCF. If this is the case, check out this post: http://blogs.msdn.com/wenlong/archive/2006/09/10/748294.aspx
Sergey Barskiy
Principal Consultant
office: 678.405.0687 | mobile: 404.388.1899
Microsoft Worldwide Partner of the Year | Custom Development Solutions, Technical Innovation
-----Original Message-----
From: germie [mailto:cslanet@lhotka.net]
Sent: Thursday, July 09, 2009 8:07 AM
To: Sergey Barskiy
Subject: [CSLA .NET] silverlight deployment
i am having a real hard time trying to deploy my silverlight wcf project to iis. i can deploy just a basic silverlight project and it will work fine. even a wcf silverlight enabled project and it works. once i try to have that wcf make a sql call it will fail. is there any step by step instructions on how to deploy a wcf project to iis? ie. book or white pages, any thing, i am feeling totaly lost here. i got the rolodex project running and making the sql call while running in vs. but once it is on iis. failure. i am using iis 5 and vb.
germie replied on Thursday, July 09, 2009
when i paste the url into the browser i do get the "you have created a service page". i even ran the svcutil.exe to get the generated client class. then i tried to add them to a project. the code tried to reference system.runtime.serialization... (3.0.0.0) but vs will only let me reference (2.0.5.0) from the silverlight project. dont know if this problem is related or not. in this new sl project i then added a service reference to the wcf service in iis and vs able to find it.sergeyb replied on Thursday, July 09, 2009
You do not need to add a reference, CSLA does that for you. If your SVC page comes up, service is alive and well. Next step is to call it from sivlerlight app and see what error comes back. Make sure to check the url in .ClientConfig to ensure it is correct.
Sergey Barskiy
Principal Consultant
office: 678.405.0687 | mobile: 404.388.1899
Microsoft Worldwide Partner of the Year | Custom Development Solutions, Technical Innovation
-----Original Message-----
From: germie [mailto:cslanet@lhotka.net]
Sent: Thursday, July 09, 2009 11:07 AM
To: Sergey Barskiy
Subject: Re: [CSLA .NET] RE: silverlight deployment
when i paste the url into the browser i do get the "you have created a service page". i even ran the svcutil.exe to get the generated client class. then i tried to add them to a project. the code tried to reference system.runtime.serialization... (3.0.0.0) but vs will only let me reference (2.0.5.0) from the silverlight project. dont know if this problem is related or not. in this new sl project i then added a service reference to the wcf service in iis and vs able to find it.
germie replied on Thursday, July 09, 2009
do i need to use the auto-generated code from the svcutil.exe? if so, vs will not let me reference (3.0.0.0) from the sl side. i can however reference it from the .web project. or is the service reference enough? sergeyb replied on Thursday, July 09, 2009
Nope, you do not need that at all. You do not need any service references either. Those exist in CSLA already.
Sergey Barskiy
Principal Consultant
office: 678.405.0687 | mobile: 404.388.1899
Microsoft Worldwide Partner of the Year | Custom Development Solutions, Technical Innovation
-----Original Message-----
From: germie [mailto:cslanet@lhotka.net]
Sent: Thursday, July 09, 2009 11:42 AM
To: Sergey Barskiy
Subject: Re: [CSLA .NET] RE: RE: silverlight deployment
do i need to use the auto-generated code from the svcutil.exe? if so, vs will not let me reference (3.0.0.0) from the sl side. i can however reference it from the .web project. or is the service reference enough?
germie replied on Thursday, July 09, 2009
are there any simple examples that show how to use these references in csla? im looking at the rolodex solution and i don't understand what im looking at. or better yet, how its working. i have gone through examples on the silverlight web page on how to use wcf and also looking at examples in expert vb 2008 buisness objects, and nothing looks like the rolodex sample.sergeyb replied on Thursday, July 09, 2009
I would probably recommend watching Rocky's videos on Silverlight to get a head start.
Sergey Barskiy
Principal Consultant
office: 678.405.0687 | mobile: 404.388.1899
Microsoft Worldwide Partner of the Year | Custom Development Solutions, Technical Innovation
-----Original Message-----
From: germie [mailto:cslanet@lhotka.net]
Sent: Thursday, July 09, 2009 7:20 PM
To: Sergey Barskiy
Subject: Re: [CSLA .NET] RE: RE: RE: silverlight deployment
are there any simple examples that show how to use these references in csla? im looking at the rolodex solution and i don't understand what im looking at. or better yet, how its working. i have gone through examples on the silverlight web page on how to use wcf and also looking at examples in expert vb 2008 buisness objects, and nothing looks like the rolodex sample.
germie replied on Thursday, July 30, 2009
i finaly got it working. the problem was in the connection string and in the sql call. its strange that it was good enough to work in the visual studio environment but not in iis. anyways thanks for your help and quick responses.Copyright (c) Marimer LLC