I am new in C# and I created a simple console app and I want to use logger to logs errors.
I searched in Google how this can be done, but I couldn't find anything useful or at least I can understand it.
Can some one explain me how this logger works?
Thanks in advance.
search in Google and YouTube
Related
Ok. I thought I would fix this rather easy, but I'm not getting anything to work for some reason. What I want to do is simple; I want to create a web part displaying the latest tweets from a specific user. I'm coding C#.
I found a great post here but it's using php.
Can anyone help me to perform this simple task?
You can find alot examples over internet
Web:
http://www.microsoft.com/web/post/learning-the-basics-of-using-the-twitter-api-in-aspnet-web-pages-with-razor-syntax
Console:
http://www.d80.co.uk/post/2011/02/13/A-Simple-Twitter-Client-in-C-with-OAUTH-using-TweetSharp.aspx
:)
I have a facebook App that for some reason it got banned.
How can I find out programatically (FB C# SDK preferably) at login for instance that the application got banned?
There are no exceptions or other markers that I noticed so I could figure out this.
I am open to any ideas.
The app is not doing anything un-ethical but it pulls up a lot of data and there is a possibility that FB might not like that. So in order to keep it live, I want to know when the app got banned so that i can replace it on the fly with another one, until the issue gets resolved with th first one. FB gives you an answer only after 2+ weeks.
You might be able to use the installable field in the properties array from admin.getAppProperties outlined here: https://developers.facebook.com/docs/reference/rest/admin.getAppProperties/
As a little learning project, I'd like to make a little app that reads data from a facebook users status updates. It's been done millions of times before, I'm sure, but is there an API or something? Would I need to signup for some Facebook developers license or anything, or is it as easy as finding the API, and then simply coding to it?
I'd like to simply get friends Status Updates via my login... seems easy enough. :)
The Facebook Developer links posted above are good, but it might be useful to look at some examples.
The Facebook C# SDK, found here: http://facebooksdk.codeplex.com/, has samples in ASP.NET MVC. It's a pretty simple project, so it should be relatively easy to see how things work in practice.
You can create an app at http://developers.facebook.com/
Then, download the sample project, replace the AppId and AppSecret with values from your registered app, and see how it works.
You can start reading here: http://developers.facebook.com/docs/
And look in the forum discussions here: http://forum.developers.facebook.net/index.php
This post was helpful to me http://gathadams.com/2007/06/18/how-to-write-a-facebook-application-in-10-minutes/
Also keep in mind this last change made for FB team about Post for canvas http://developers.facebook.com/docs/canvas/post/
Good luck!
hope you guys could share some light with me..are you guys aware of lightscribe? i have the sdk document and am tasked to integrate LightScribe functionality with c#.can anyone of you guide me or mayb have some examples to show me?
I haven't used the lightscribe api myself. But it appears to be a C++ API, what you will need to do is write a C# wrapper around it (using p/invoke)
A quick google search also turns up this wrapper library that someone has already done, have a look at the source in that and you will see the techniques used.
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