Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions concerning problems with code you've written must describe the specific problem — and include valid code to reproduce it — in the question itself. See SSCCE.org for guidance.
Closed 9 years ago.
Improve this question
I am trying to set up and run the YouTube Data API (.NET) code samples (my_uploads class, in particular) in the Visual Studio 2010, however, I am constantly facing errors.
Apparently, the code itself already contains such mistakes like misspelled references, e.g., using Google.Apis.Youtube.v3; (should be YouTube not Youtube) and outdated methods like Fetch() (alternative is Execute()).
It is also missing lots of libraries even though I followed the getting started guides very closely:
https://code.google.com/p/google-api-dotnet-client/wiki/GettingStarted
https://developers.google.com/api-client-library/dotnet/apis/youtube/v3
Nevertheless, the main problem I am facing is related to authentication and authorisation (I think) and I do not know how to fix it.
Every time I try to run the console application and enter the right credentials, it throws me an error: Precondition failed.: !string.IsNullOrEmpty(authorization.RefreshToken).
Thanks.
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
Is there a way to create and build an .exe from C#? (Editor's Note: Basically a .NET app that can create and compile other .NET apps - see accepted answer)
I am NOT talking about getting the .exe of my project (which is the only exe building I could find on google), I am talking about generating .exe files from within my program.
How would I create a runnable .exe file from C#? I have no idea how and on google I only find questions on where to find the .exe of the Project, while I want the project to build .exe's itself.
The simplest way to do it without using external compilers is called CodeDOM, the relevant class you would use is called CSharpCodeProvider. There there are many tutorials on the internet (including one in the first link I gave) that will show you how to use it, the topic is too broad to explain in depth here.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions concerning problems with code you've written must describe the specific problem — and include valid code to reproduce it — in the question itself. See SSCCE.org for guidance.
Closed 9 years ago.
Improve this question
Just wanted to know in general what happens in this case, actually the problem is that one of my projects is using shell32.dll which compiles and executes fine on windows 7 PC however fails on other system like windows xp giving an runtime error
Unable to cast COM object of type 'System.__ComObject' to interface type 'Shell3 2.Shell'
I went through so many web resources but the results did not work for me.
The switch is documented here.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 9 years ago.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Improve this question
I need to send my C# app in an email for a job interview exercise. It says to save the exercise as a zip file and email it. I would have thought they wanted to see the code, but just looking now, it looks like the only way to do this is to zip the .exe file and send it. The code will not be visible to them? Any way to show the code? Add my .cs file to the email?
Why don't you just zip the whole project directory? That will include your code files and your compiled .exe file. It will also include the solution or project from Visual Studio so they can open it on their end.
You may still need to change the extension of you executable file to something like .exe1 before zipping, otherwise the email service might not let it through.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions concerning problems with code you've written must describe the specific problem — and include valid code to reproduce it — in the question itself. See SSCCE.org for guidance.
Closed 9 years ago.
Improve this question
It is possible that such a program written with C #?
if yes how we can?
If you have links or information on this I say thank you.
I'd say you'd probably be looking at setting up a proxy on your local network, pointing the machines you want parental control on to that proxy, and filtering the "allowed" traffic by either:
Checking website address against a predefined blocklist,
and/or
Reading through the HTML looking for naughty words or phrases.
How to create a simple proxy in C#? has a fair bit of detail about setting up a proxy in C#.
Also found http://www.codeproject.com/Articles/92512/Writing-a-Parental-Control-Software-for-Windows. An old project but might be worth looking at if you're researching a project like this.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 8 years ago.
This question appears to be off-topic because it lacks sufficient information to diagnose the problem. Describe your problem in more detail or include a minimal example in the question itself.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Improve this question
i have following code in a c# class and would need its vb.net equivalent. All online translation tools i found translate this part wrong. A research on the web did not bring me any progress.
public event EventHandler<UploadProgressChangedLibArgs> UploadProgressChanged;
whatever I do I keep getting that uploadprogresschangedlibargs is not defined.
any help appreciated thanks
additional information:
http://sourceforge.net/projects/dotnetftplib/files/
this is the library i am trying to translate
The problem is exactly what the compiler said: the UploadProgressChangedLibArgs type couldn't be found. That's another type within the same library - so you need to port that before you can port an event which uses it.
As noted in comments, I'd advise you to avoid porting C# to VB or vice versa unless you really need to. One of the benefits of .NET is that you can call C# from VB or vice versa - and if you just want to make minor changes to an existing code base, you don't need to port the whole thing - you just need to understand enough of the language it's written in to make that change.