Can Silverlight 3 OPEN SOCKETS? - c#

Can Silverlight 3 OPEN SOCKETS?
If yes.
What do I need
MSDN if there is any help on this.
Open Source Libs/wrappers for encoding/decoding.
Tutorials and blog articles on How to do it.
If no I need where did you get the info from (link to MSDN or other official SL resource)

Yes, it can.
MSDN:
http://msdn.microsoft.com/en-us/library/cc296248(VS.95).aspxhttp://msdn.microsoft.com/en-us/library/cc645032(VS.95).aspx
One of the light libs you might find useful:
http://socketslight.codeplex.com
A couple of how-to-s:
http://weblogs.asp.net/dwahlin/archive/2008/04/13/pushing-data-to-a-silverlight-client-with-sockets-part-ii.aspx
http://www.silverlightshow.net/items/SocketsLight-Silverlight-Sockets-Framework.aspx

Yes, you can, but only within a certain range of ports (4502-4534) and only if you can also host an appropriate cross-domain policy file on port 943 on the same server.
You've already got the MSDN link - here's an example application (for SL2, but should be similar in 3):
[Pushing Data to a Silverlight Client with Sockets Part 1][1]
Search Dan's blog for "socket" and you can find part 2 and how to create the policy server - SO won't let me post more than 1 link :(

Here's the MSDN article on working with sockets:
Working with Sockets

Here's an article about using sockets in Silverlight and here is a link to framework simplifying that. Also a quick search on google will turn up useable results!

Related

Fast Binding to Active Directory

Passthrough authentication in my web server application written in C# is performing extremely poorly; successful login events take as long as 10 or 15 seconds using the System.DirectoryServices.AccountManagmeent API.
I would like to switch to using System.DirectoryServices.Protocols and fast binding as described in this MSDN article Using Fast Bind, but it is bereft of any details or code samples.
Can you point me to or provide examples of .NET code doing fast bind user authentication with s.ds.p? I have been very unsuccessful googling.
After more browsing, I found this page which does have complete C# code sample.
Joe Kaplan's book .NET Developer's Guide to Directory Services Programming has some examples as well, that can be found here.

Documentation for Web API in Windows Store apps (Metro apps)

I remember seeing a few months ago some documentation on MSDN for accessing a Web API from within a Windows Store app, with samples, but I cannot find this page anymore, and a Google search doesn't yield a single related result for MSDN.
Anyone know where the documentation for this is?
[nkvu - moving out of the comments and into answers in case anyone else is looking for a similar thing]
I don't know where it on MSDN but there seems to be a downloadable sample here. And docs here and here showing code but no downloadable sample.
Most of the System.Net.Http namespace which includes the HttpClient is available for Windows Store apps.
See http://msdn.microsoft.com/en-US/library/System.Net.Http.aspx

FTP in a Metro App

I'm trying to create an FTP Application in Metro and C# but the FTP class in System.Net has been removed and now I can't figure out how to do this. I've looked into the BackgroundUploader but can't understand how I can bring back directory structures etc.
Does anyone have any experience doing this, I know it is achievable since there is an app already available on the Windows Store.
Thanks
I haven't checked it yet, since I just started to look for it. In this article they're sharing an FTP sample in C#.
http://code.msdn.microsoft.com/windowsapps/CSWindowsStoreAppFTPDownloa-88a90bd9
Regards,
Herb
Take a look at http://www.dreamincode.net/forums/topic/35902-create-an-ftp-class-library-in-c%23/. It's a C# implementation of a FTP client using sockets, unless you have advanced requirements this may be sufficient for you.
And if you need more you could Always expand on his example!
Please have a look at this sample below. The difference from the Microsoft sample is the use of sockets:
- Windows 8.1 Sockets: Ftp Client Sample in C#

Source code to retrieve Google Adsense earnings?

Where to find source code to read google adsense account earnings ? any language welcome especially c#, php.
Update: I still don't have any source code until now that seem to work.
Unfortunately all of the other answers are using either deprecated API or are linking to 404 pages.
Google did release a new management API for AdSense which is well documented:
https://developers.google.com/adsense/management/
Documentation is here It's a very in-depth webservice that allows you not only to get access to reporting, but also create, modify, etc campaigns.
This is an interesting low-tech approach. It's featured on the CURL website. Could be re purposed for your application.
You could use this php library http://code.google.com/p/php-adsense-account-library/

C#. How to programmatically grant User Log On as a Service

I've searched through the internet, but haven't found any solution in c#. Does anybody know how to give user right to log on as a Service in c#?
EDIT: I found an article on CodeProject with sample code that shows exactly how to do this!
I assume you've already found this KB that shows how to do it with native code. I'm looking for a C# way as well.
I tried in vain to find this. The way I did it in the end was to package the NTRights executable with my application and then launch it as a separate process.
NTRights can be found on the server 2003 resource kti and its usage is documented here:
http://support.microsoft.com/kb/315276

Categories