|
Thank you I will take a look at that.
|
|
|
|
|
|
Thank you for that! Last Friday I found this great video tutorial on ASP.Net showing me how to do something I need to do on my project!
Very informative site! Thanks for the suggestion!
|
|
|
|
|
Hey,
I am trying to publish a checkin on a user facebook wall using the Graph API.
Before I do, I get the access_token with the following scope:
offline_access,publish_actions,publish_stream,user_checkins,publish_checkins,friends_checkins
It works fine when I publish a normal post on the users wall but when I try to publish a checkin, I get the following error:
(OAuthException - #200) (#200) Requires extended permission: publish_checkins
The code Im using to publish the checkin is:
Dim client As New FacebookClient(token)
client.Post("/me/checkins", New With {.message = Message, .place = placeID, .coordinates = coordinates})
|
|
|
|
|
It's not an error in your code, the user hasn't given that permission to your app. You'll have to log in your Facebook account and it should have a request from your app waiting for you. Only the Facebook user can change this option - your app can't change it.
|
|
|
|
|
Hey
I know that it is not an error.
currently i'm testing it using my own account, when I call the oauth/authorize, I allow my app, but the facebook error remains when I try to publish a checkin...
Could it be my own privacy settings?
Any Idea what im doing wrong?
|
|
|
|
|
|
vbs needs to be run from C# web application on windows server 2003.
Batch files works fine, but vbs neither via process nor via batch file.
vbs works fine via command prompt.
|
|
|
|
|
|
In Process.Start , cscript is the program to run, and your vbs script is the parameter.
|
|
|
|
|
Yes i am using it as
System.Diagnostics.Process.Start("cscript","myvbs.vbs")
|
|
|
|
|
Thanks people for the help.
But i got my answer after little R&D
To make this work.
Application pool identity should be run as an USER, Network Services is default IIS 6. I switch it to Admin.
Reason: Network Services have lesser rights than USER.
|
|
|
|
|
Interesting, you should of got an error code back from the process shell telling you that.
I use this to capture the shell process result text from FFMPeg, and then I take the return values and run it against 30 regex functions to capture the results.
It took me awhile to figure out how to always return the shell process output, the function returns all the text in the process cmd window.
Private Function Shell_Exceute_FLV( _
ByVal Parameters_FFMpeg As String) As String
Dim Context As HttpContext = HttpContext.Current
Dim SB_FFMpeg As StringBuilder = New StringBuilder
Dim ffmpeg As New Process()
Dim ffmpeg_StreamReader As IO.StreamReader = Nothing
Try
Dim Results As String = Nothing
Dim ffmpeg_StartInfo As New ProcessStartInfo(Path_FFMPEG, Parameters_FFMpeg)
ffmpeg_StartInfo.UseShellExecute = False
ffmpeg_StartInfo.RedirectStandardError = True
ffmpeg_StartInfo.RedirectStandardOutput = True
ffmpeg.StartInfo = ffmpeg_StartInfo
ffmpeg.Start()
ffmpeg_StreamReader = ffmpeg.StandardError
SB_FFMpeg = New StringBuilder()
SB_FFMpeg.Append(ffmpeg_StreamReader.ReadToEnd().ToString())
Do While Not ffmpeg.WaitForExit(1000)
SB_FFMpeg.Append(ffmpeg_StreamReader.ReadToEnd().ToString())
Loop
Catch ex As Exception
Finally
If Not (ffmpeg Is Nothing) Then
ffmpeg.Close()
ffmpeg.Dispose()
ffmpeg = Nothing
End If
If Not (ffmpeg_StreamReader Is Nothing) Then
ffmpeg_StreamReader.Close()
ffmpeg_StreamReader.Dispose()
ffmpeg_StreamReader = Nothing
End If
End Try
Return SB_FFMpeg.ToString
End Function
|
|
|
|
|
I'm starting a side project, the first stage will be a building a web application with MVC, in later stages we will be adding clients for mobile platforms. My thought was to create one API that all of the applications (web and mobile) go through to get/save data.
Because these different platforms will be on different release cycles I'll need a way for, say IPhone, to work with one version of the API while the website is using an updated version. What's the best way to do that? Can someone point me to a nice article or blog post somewhere about that?
My ideas so far are:
*Create a separate project to host the MVC Web API and host that in a subdomain or in a subfolder of the root site. Then either reference the DLL directly or reference it through the web (seems like an unnecessary http call)
*House the API withing the MVC project that will be the website and try to version it based on url in there. I did some quick testing with that this morning and wasn't able to get it to work, it always resided at \api (I couldn't get it to reside at \api_v2)
Any ideas or guidance would be greatly appreciated.
|
|
|
|
|
I am a newbie asp.net .. I am trying to design a page in which we can upload an image and then compare the uploaded image with all the image in the database and display the images which match the uploaded image... I am not able to do the second part i.e comparing and didplaying related result ..so i need a help on that .. Thanks in advance
|
|
|
|
|
|
|
|
Before (c# code)
string[] directory = Directory.GetFiles(@"C:\test");
foreach (string dir in directory)
{
FileStream fs = new FileStream(dir.ToString(), FileMode.Open, FileAccess.Read);
StreamReader reader = new StreamReader(fs, System.Text.Encoding.Default);
Response.Write(dir);
GV_Value = (reader.ReadToEnd());
Save();
reader.Close();
reader.Dispose();
}
(directory)
1.txt, 3.txt, 5.txt, 6.txt, 7.txt
(SQL INSERT Shape)
create table test
(
idx int identity(1,1),
file text null
)
idx file
1 1.txt
2 3.txt
3 5.txt
4 6.txt
5 7.txt
6 NULL
7 NULL
----------------------------------------------------------------------
after
(directory)
1.txt, 3.txt, 5.txt, 6.txt, 7.txt
idx file
1 1.txt
2 NULL
3 3.txt
4 NULL
5 5.txt
6 6.txt
7 7.txt
(How-to) questions
|
|
|
|
|
|
|
|
Sometimes I do get it right!
|
|
|
|
|
Install only sp1 version of VS
|
|
|
|
|
Hi,
I want to ask should I use cookies with FormAuthentication in my ASP.NET or it's better to store it in Sessions?
what's your advise?
Technology News @ www.JassimRahma.com
|
|
|
|