<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" media="screen" href="/styles/xslt/rss.xslt"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:c9="http://channel9.msdn.com">
<channel>
	<title>Comment Feed for Channel 9 - Client Application Services with Visual Studio 2008</title>
	<atom:link rel="self" type="application/rss+xml" href="http://channel9.msdn.com/Blogs/DanielMoth/Client-Application-Services-with-Visual-Studio-2008/RSS"></atom:link>
	<image>
		<url>http://ecn.channel9.msdn.com/o9/previewImages/100/261179_100x75.jpg</url>
		<title>Channel 9 - Client Application Services with Visual Studio 2008</title>
		<link></link>
	</image>
	<description>
Author: Hi, I am Daniel Moth 

Introduction: In this 18&#39; video you will learn from scratch how to take advantage of .NET Client Application Services. As usual, the code and links to the documentation are available from my blog.

Video download: For this video, click on the image/button to play the video OR right click and Save As on the same location. 
</description>
	<link></link>
	<language>en</language>
	<pubDate>Mon, 20 May 2013 11:32:11 GMT</pubDate>
	<lastBuildDate>Mon, 20 May 2013 11:32:11 GMT</lastBuildDate>
	<generator>Rev9</generator>
	<item>
		<title>Re: Client Application Services with Visual Studio 2008</title>
		<description>
			<![CDATA[Hello, full screen video is &quot;mirrored&quot; - start menu on top etc.<p>posted by Karel Kral</p>]]>
		</description>
		<link>http://channel9.msdn.com/Blogs/DanielMoth/Client-Application-Services-with-Visual-Studio-2008#c633419641630000000</link>
		<pubDate>Mon, 24 Mar 2008 14:02:43 GMT</pubDate>
		<guid isPermaLink="true">http://channel9.msdn.com/Blogs/DanielMoth/Client-Application-Services-with-Visual-Studio-2008#c633419641630000000</guid>
		<dc:creator>Karel Kral</dc:creator>
	</item>
	<item>
		<title>Re: Client Application Services with Visual Studio 2008</title>
		<description>
			<![CDATA[Hi Karel, video appears fine here on two different machines&nbsp;and I've had no other complaints about this video so&nbsp;please try again (maybe on a different machine?).<p>posted by Daniel Moth</p>]]>
		</description>
		<link>http://channel9.msdn.com/Blogs/DanielMoth/Client-Application-Services-with-Visual-Studio-2008#c633420940850000000</link>
		<pubDate>Wed, 26 Mar 2008 02:08:05 GMT</pubDate>
		<guid isPermaLink="true">http://channel9.msdn.com/Blogs/DanielMoth/Client-Application-Services-with-Visual-Studio-2008#c633420940850000000</guid>
		<dc:creator>Daniel Moth</dc:creator>
	</item>
	<item>
		<title>Re: Client Application Services with Visual Studio 2008</title>
		<description>
			<![CDATA[Hi Daniel,<br>
<br>
Thanks for the great video presentation of&nbsp;client application services. I want to use it with Windows authentication and a custom roleprovider in a sql database. Can you change the authentication method to Windows in your sample application and can you then
 still access your roles if you add a user with the same name as your Windows login name (domain\username)? It does not work for me and it would prohibit me from using it which would be a shame.<br>
<br>
Thanks,<br>
Martin.<br>
<p>posted by Martin11111</p>]]>
		</description>
		<link>http://channel9.msdn.com/Blogs/DanielMoth/Client-Application-Services-with-Visual-Studio-2008#c633513578430000000</link>
		<pubDate>Fri, 11 Jul 2008 07:24:03 GMT</pubDate>
		<guid isPermaLink="true">http://channel9.msdn.com/Blogs/DanielMoth/Client-Application-Services-with-Visual-Studio-2008#c633513578430000000</guid>
		<dc:creator>Martin11111</dc:creator>
	</item>
	<item>
		<title>Re: Client Application Services with Visual Studio 2008</title>
		<description>
			<![CDATA[Martin what you are trying should work.<br>
Can you share more details on what problems you are encountering?<p>posted by SPant</p>]]>
		</description>
		<link>http://channel9.msdn.com/Blogs/DanielMoth/Client-Application-Services-with-Visual-Studio-2008#c633517450760000000</link>
		<pubDate>Tue, 15 Jul 2008 18:57:56 GMT</pubDate>
		<guid isPermaLink="true">http://channel9.msdn.com/Blogs/DanielMoth/Client-Application-Services-with-Visual-Studio-2008#c633517450760000000</guid>
		<dc:creator>SPant</dc:creator>
	</item>
	<item>
		<title>Re: Client Application Services with Visual Studio 2008</title>
		<description>
			<![CDATA[I would like to know how to use the Application Services for Multiple applications. If i have Application A and Application B and both&nbsp; have to use the same SQl Provider.<br>
<br>
Do i have to have two WebServices to accomplish this or can i just use a single web service to accomplish this.<br>
<br>
If you have any examples I owuld greatly appreciate it.<br>
<p>posted by joet</p>]]>
		</description>
		<link>http://channel9.msdn.com/Blogs/DanielMoth/Client-Application-Services-with-Visual-Studio-2008#c633631535670000000</link>
		<pubDate>Mon, 24 Nov 2008 19:59:27 GMT</pubDate>
		<guid isPermaLink="true">http://channel9.msdn.com/Blogs/DanielMoth/Client-Application-Services-with-Visual-Studio-2008#c633631535670000000</guid>
		<dc:creator>joet</dc:creator>
	</item>
	<item>
		<title>Re: Client Application Services with Visual Studio 2008</title>
		<description>
			<![CDATA[How can you prevent the client token from expiring?&nbsp; I am using client app services now in test, but it keeps asking for login during Membership.ValidateUser() after some X period of time.&nbsp; After my client logs in, I don't want anymore prompting until
 they logout or switch user. tia<p>posted by staceyw</p>]]>
		</description>
		<link>http://channel9.msdn.com/Blogs/DanielMoth/Client-Application-Services-with-Visual-Studio-2008#c633723374860000000</link>
		<pubDate>Wed, 11 Mar 2009 03:04:46 GMT</pubDate>
		<guid isPermaLink="true">http://channel9.msdn.com/Blogs/DanielMoth/Client-Application-Services-with-Visual-Studio-2008#c633723374860000000</guid>
		<dc:creator>staceyw</dc:creator>
	</item>
	<item>
		<title>Re: Client Application Services with Visual Studio 2008</title>
		<description>
			<![CDATA[I've been struggling with CAS for a while and was happy to see your demo.&nbsp; Unfortunately your demo gives me poorer results than my own efforts.&nbsp;
<br>
<br>
I am running Vista Ultimate SP1 and Visual Studio 2008 Professional SP1.&nbsp; I have .Net 3.5 sp1 installed.&nbsp; SQL Server 2005 Express is at SP3.&nbsp; I loaded the demo and tried to authenticate with boss666!/boss666! and got a failed authentication.&nbsp; I added a user
 of my own using the ASP.Net manager tool just in case it was an issue with the id and password and tried it and again got a failed authentication.&nbsp; I have tried it on both my laptop and desktop development machines with the same result.<br>
<br>
With my custom providers the authentication works, but no roles&nbsp;or settings are available.&nbsp; When trying to access the settings it gives an error stating that you have to be authenticated to call the function.&nbsp; Checking the IsAuthenticated property of the identity
 before hand gives&nbsp;a true response, but I still get the error.<br>
<br>
I'm not really sure what could be the issue here.&nbsp; When debugging my custom providers, I see the authentication service called, but the role service it is never called.&nbsp; I can't really debug your demo as there isn't any real code in the server side.<br>
<br>
I appear to be one of many who are having issues.&nbsp; Does anyone have a clue what could be the issue or is CAS just too buggy to use in any kind of a real environment?<br>
<br>
<p>posted by JBailey</p>]]>
		</description>
		<link>http://channel9.msdn.com/Blogs/DanielMoth/Client-Application-Services-with-Visual-Studio-2008#c633724655870000000</link>
		<pubDate>Thu, 12 Mar 2009 14:39:47 GMT</pubDate>
		<guid isPermaLink="true">http://channel9.msdn.com/Blogs/DanielMoth/Client-Application-Services-with-Visual-Studio-2008#c633724655870000000</guid>
		<dc:creator>JBailey</dc:creator>
	</item>
	<item>
		<title>Re: Client Application Services with Visual Studio 2008</title>
		<description>
			<![CDATA[If I set the connectivity status explicitly to online ( I had originally just commented out the code where it was set to offline), the demo authenticates, but then I get the same results as in my custom providers.&nbsp; I changed the load button method to the
 following:<br>
<br>
<p>private void btnLoad_Click(object sender, EventArgs e)<br>
{<br>
&nbsp;&nbsp;&nbsp;&nbsp;if (Thread.CurrentPrincipal.Identity.IsAuthenticated)<br>
&nbsp;&nbsp;&nbsp;&nbsp;{<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;txtLow.Text = Settings.Default.lowValue.ToString();<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;txtHigh.Text = Settings.Default.highValue.ToString();<br>
&nbsp;&nbsp;&nbsp;&nbsp;}<br>
}</p>
<br>
and I get the following error when I select the Load button:<br>
<br>
Error status code returned by the Web Service: InternalServerError. Error details from service: {&quot;Message&quot;:&quot;You must log on to call this method.&quot;,&quot;StackTrace&quot;:&quot;&nbsp;&nbsp; at System.Web.ApplicationServices.ApplicationServiceHelper.EnsureAuthenticated(HttpContext context)\r\n&nbsp;&nbsp;
 at System.Web.Profile.ProfileService.GetPropertiesForCurrentUser(IEnumerable`1 properties, Boolean authenticatedUserOnly)&quot;,&quot;ExceptionType&quot;:&quot;System.Web.HttpException&quot;}<br>
<br>
Again, I'm not sure what would cause the roles and profile to fail, but it looks like these services do not think the user is logged in even though the IsAuthenticated property on the principal is true.<br>
<br>
Any help or suggestions would be appreciated.<p>posted by JBailey</p>]]>
		</description>
		<link>http://channel9.msdn.com/Blogs/DanielMoth/Client-Application-Services-with-Visual-Studio-2008#c633724688440000000</link>
		<pubDate>Thu, 12 Mar 2009 15:34:04 GMT</pubDate>
		<guid isPermaLink="true">http://channel9.msdn.com/Blogs/DanielMoth/Client-Application-Services-with-Visual-Studio-2008#c633724688440000000</guid>
		<dc:creator>JBailey</dc:creator>
	</item>
	<item>
		<title>Re: Client Application Services with Visual Studio 2008</title>
		<description>
			<![CDATA[It looks like the issue I was having was related to the automatic cookie detection at the server.&nbsp; I added the following to the web.config for the web service:<br>
&nbsp;&nbsp;&lt;authentication mode=&quot;Forms&quot;&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;forms cookieless=&quot;UseCookies&quot; /&gt;<br>
&nbsp;&nbsp;&lt;/authentication&gt;<br>
<br>
The default is to autodetect.&nbsp; Client Application Services does not work without cookies and for some reason the autodetect must be determining that cookies are not supported.&nbsp; It works when I force cookie support at the server.<br>
<br>
<p>posted by JBailey</p>]]>
		</description>
		<link>http://channel9.msdn.com/Blogs/DanielMoth/Client-Application-Services-with-Visual-Studio-2008#c633725903370000000</link>
		<pubDate>Sat, 14 Mar 2009 01:18:57 GMT</pubDate>
		<guid isPermaLink="true">http://channel9.msdn.com/Blogs/DanielMoth/Client-Application-Services-with-Visual-Studio-2008#c633725903370000000</guid>
		<dc:creator>JBailey</dc:creator>
	</item>
	<item>
		<title>Re: Client Application Services with Visual Studio 2008</title>
		<description>
			<![CDATA[This video was great: fast paced yet complete.<br>
<br>
I did spend a frustrating hour or so trying to figure out why, when I checked the &quot;Remember Me&quot; checkbox, the
<b>next </b>call to Membership.ValidateUser(null, null) would result in an exception:<br>
<br>
System.NullReferenceException was unhandled<br>
&nbsp; Message=&quot;Object reference not set to an instance of an object.&quot;<br>
&nbsp; Source=&quot;System.Web.Extensions&quot;<br>
&nbsp; StackTrace:<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at System.Web.ClientServices.ClientFormsIdentity.GetSecureStringFromString(String password)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at System.Web.ClientServices.Providers.ClientFormsAuthenticationMembershipProvider.ValidateUserCore(String username, String password, Int32 rememberMeInt, Int32&amp; promptCount, Boolean tryToUseLastLoggedInUser)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at System.Web.ClientServices.Providers.ClientFormsAuthenticationMembershipProvider.ValidateUserCore(String username, String password, Int32 rememberMeInt)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at System.Web.ClientServices.Providers.ClientFormsAuthenticationMembershipProvider.ValidateUser(String username, String password)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at System.Web.Security.Membership.ValidateUser(String username, String password)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at AppServicesClient.Form1.Form1_Load(Object sender, EventArgs e) in C:\Users\drogers\Documents\Visual Studio 2008\Projects\AppServicesDemo\AppServicesClient\Form1.cs:line 39<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at System.Windows.Forms.Form.OnLoad(EventArgs e)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at System.Windows.Forms.Form.OnCreateControl()<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at System.Windows.Forms.Control.CreateControl()<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at System.Windows.Forms.Control.WmShowWindow(Message&amp; m)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at System.Windows.Forms.Control.WndProc(Message&amp; m)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at System.Windows.Forms.ScrollableControl.WndProc(Message&amp; m)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at System.Windows.Forms.ContainerControl.WndProc(Message&amp; m)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at System.Windows.Forms.Form.WmShowWindow(Message&amp; m)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at System.Windows.Forms.Form.WndProc(Message&amp; m)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message&amp; m)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message&amp; m)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at System.Windows.Forms.SafeNativeMethods.ShowWindow(HandleRef hWnd, Int32 nCmdShow)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at System.Windows.Forms.Control.SetVisibleCore(Boolean value)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at System.Windows.Forms.Form.SetVisibleCore(Boolean value)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at System.Windows.Forms.Control.set_Visible(Boolean value)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at System.Windows.Forms.Application.Run(Form mainForm)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at AppServicesClient.Program.Main() in C:\Users\drogers\Documents\Visual Studio 2008\Projects\AppServicesDemo\AppServicesClient\Program.cs:line 18<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at System.Threading.ThreadHelper.ThreadStart_Context(Object state)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at System.Threading.ThreadHelper.ThreadStart()<br>
&nbsp; InnerException: <br>
<br>
I found that by replacing the null arguments with string.empty, (Membership.ValidateUser(string.Empty, string.Empty)) the program worked as expected.
<br>
<br>
Thanks again and ciao,<br>
David<br>
<p>posted by dwrogers</p>]]>
		</description>
		<link>http://channel9.msdn.com/Blogs/DanielMoth/Client-Application-Services-with-Visual-Studio-2008#c633726926420000000</link>
		<pubDate>Sun, 15 Mar 2009 05:44:02 GMT</pubDate>
		<guid isPermaLink="true">http://channel9.msdn.com/Blogs/DanielMoth/Client-Application-Services-with-Visual-Studio-2008#c633726926420000000</guid>
		<dc:creator>dwrogers</dc:creator>
	</item>
	<item>
		<title>Re: Client Application Services with Visual Studio 2008</title>
		<description>
			<![CDATA[
<p>Daniel,</p>
<p>&nbsp;</p>
<p>How do you deploy the above described service to the IIS?</p>
<p>&nbsp;</p>
<p>Thanks,</p>
<p>&nbsp;</p>
<p>Marat</p>
<p>posted by MaratM</p>]]>
		</description>
		<link>http://channel9.msdn.com/Blogs/DanielMoth/Client-Application-Services-with-Visual-Studio-2008#c633909597350000000</link>
		<pubDate>Mon, 12 Oct 2009 15:55:35 GMT</pubDate>
		<guid isPermaLink="true">http://channel9.msdn.com/Blogs/DanielMoth/Client-Application-Services-with-Visual-Studio-2008#c633909597350000000</guid>
		<dc:creator>MaratM</dc:creator>
	</item>
	<item>
		<title>Re: Client Application Services with Visual Studio 2008</title>
		<description>
			<![CDATA[
<p>Daniel,</p>
<p>&nbsp;</p>
<p>What is the proper way to deploy the above service to IIS?</p>
<p>&nbsp;</p>
<p>Marat</p>
<p>posted by Marat</p>]]>
		</description>
		<link>http://channel9.msdn.com/Blogs/DanielMoth/Client-Application-Services-with-Visual-Studio-2008#c633910446320000000</link>
		<pubDate>Tue, 13 Oct 2009 15:30:32 GMT</pubDate>
		<guid isPermaLink="true">http://channel9.msdn.com/Blogs/DanielMoth/Client-Application-Services-with-Visual-Studio-2008#c633910446320000000</guid>
		<dc:creator>Marat</dc:creator>
	</item>
	<item>
		<title>Re: Client Application Services with Visual Studio 2008</title>
		<description>
			<![CDATA[Hi everybody, im trying to implement this, but when i used de aplication in other machine i get the next message:<br />Se ha producido un error al crear el controlador de seccion de configuracion para system.web/membership<br />&nbsp;<br />some idea how solve it?<p>posted by Edgard</p>]]>
		</description>
		<link>http://channel9.msdn.com/Blogs/DanielMoth/Client-Application-Services-with-Visual-Studio-2008#c634268146040000000</link>
		<pubDate>Wed, 01 Dec 2010 15:36:44 GMT</pubDate>
		<guid isPermaLink="true">http://channel9.msdn.com/Blogs/DanielMoth/Client-Application-Services-with-Visual-Studio-2008#c634268146040000000</guid>
		<dc:creator>Edgard</dc:creator>
	</item>
	<item>
		<title>Re: Client Application Services with Visual Studio 2008</title>
		<description>
			<![CDATA[@Daniel or anyone<br />You implemented service and client as two different applications. Is there a way I can implement both in one visual studio solution and deploy as a whole and not as different applications.<br />Thank you<p>posted by Tobe</p>]]>
		</description>
		<link>http://channel9.msdn.com/Blogs/DanielMoth/Client-Application-Services-with-Visual-Studio-2008#c634274947210000000</link>
		<pubDate>Thu, 09 Dec 2010 12:32:01 GMT</pubDate>
		<guid isPermaLink="true">http://channel9.msdn.com/Blogs/DanielMoth/Client-Application-Services-with-Visual-Studio-2008#c634274947210000000</guid>
		<dc:creator>Tobe</dc:creator>
	</item>
</channel>
</rss>