Hi folks,
i'm trying to OAuth to Twitter and it then returns back to our localhost:port (eg. http://localhost:6969).
I'm also trying to use Linq2Twitter. When I try and setup my application in Twitter, it's not allowing me to set the
Application Website.
Website.
Callback URL.
to be http://localhost:6969
So, how can i make twitte...
Hello.
I'm currently developing what is more or less a script that needs to get some data from a VB 6 COM dll. This dll is currently used in a MS Word VBA project, and it exports classes, etc to the VBA code. It is added in the Tools -> References menu in the VBA editor, and I can see it's classes in the object browser of VBA.
From my ...
Is there any to make sure that DNS errors has been occurred after getting WebException in the following code?
WebRequest request = WebRequest.Create(uri);
....
WebResponse response = request.EndGetResponse(asyncResult);
String comparison might be one way. By checking the error message we can be sure. But depending on culture the mess...
Hello.
I am trying to use Cecil to inspect the attributes associated with a given method. It seems to find it, but I cannot get its name using the following code:
AssemblyDefinition assembly = AssemblyFactory.GetAssembly(pathBin);
assembly.MainModule.Types[0].Methods[1].CustomAttributes[0].ToString()
I know this must be the attribute...
I'm using agxXMMP library for creating a jabber IM client for google.
My IMs connect to internet through a proxy.
How can I assign proxy and port number?
I found a class called PollClientSocket with has fields Port and Proxy (accepts WebProxy).
But, how to use that with XmppClientConnection object?
...
I would like to modify the way my C#/.NET application works internally. I have dug into the .NET framework with Reflector and found a pretty good place where I could use a different implementation of a method. This is an internal class in the System.Windows.Forms namespace. You obviously cannot alter the code of this class with the usual...
I have scheduled sql agent task which runs an SSIS package. I want to be able to run the SSIS package from .net. Is there a way to either run the SSIS package directly or at least run the SQL agent task which would in turn run the SSIS package.
If it helps it is for a .net 3.5 web app written in C#
Thanks!
...
I programmed a simple WCF service that stores messages sent by users and sends these messages to the intended user when asked for. For now, the persistence is implemented by creating username.xml files with the following structure:
<messages recipient="username">
<message sender="otheruser">
...
</message
</messages>
It is po...
Hi,
I am using .net Primary Interoperability Assembly for Excel in my code.
But, the application can be run on machine which doesn't have .net PIA for Excel installed.
I want to give an error message if it is not installed
Even though I am checking in GAC, to see if PIA is installed and only if it is present I am using Microsoft.Office...
Is having reference to System.Windows.Forms in a business class and using MessageBox.Show wrong?
Currently have a event processing decorator class decorating a service class. When certain events fired decorator would like to ask user if they want to proceed processing certain functionality.
Is it ok for this decorator class have these...
Hi,
I have created a dataset and in the designer I have created the relations and foreign keys that exist in the database.
Basically, I have a product that has a relationship to a table of prices. The keyfield they share is IdProduct in the Prices table. In the Fill/Get of the product I return the Price field.
I also have a DataGrid t...
I am using WebClient.UploadData() to do a post on a Java server. How can I extend the time limit? (It times out every time I am trying to do some debugging)
...
I have an server-application Foo that listens at a specific port and a client-application Bar which connects to Foo (both are .NET-apps).
Everything works fine. So far, so good?
But what happends when to Bar when the connection slows down or when it takes a long time until Foo responds? I have to test it.
My question is, how can I sim...
Ok, so I'm a little confused as to why I can't find this anywhere, or if it doesn't exist then why have Microsoft not implemented it?
So here's my scenario, I have a NetworkStream, which has a lovely little boolean called DataAvailable, and what I need is an event, that jumps out and says "Hey, there's data available for you!" (because ...
This a test message
private void btnClick_Click_1(object sender, RoutedEventArgs e)
{
txtInput.Focus();
ToolTipTest.IsVisible = true;
}
When the button is clicked the tooltip is shown on the button, I want to simulate putting mouse pointer on the textbox, the toolbox to be shown for the ...
Hi,
I've created a blank application with a mdi parent form opening a blank child form from the menu.
When the parent form of the child form is set to the mdi - it appears the system does not release memory - thus a leak.
When the parent form is not set, the child form is removed.
Does anyone know why this apparent memory leak can be...
I am using a class that I cannot edit, it has a property (a boolean) of which it would be nice to be informed when it changes, I can't edit the properties get or set as I am importing the class from a .dll (which I don't have the code for).
How do I create an event/function that is fired when the property is changed?
Additional
It is o...
Hi, I'm trying to validate a date entered into text boxes like so using a custom validator:
string CombinedDate = String.Format("{0}-{1}-{2}", txtDay.Text, txtMonth.Text, txtYear.Text);
if (DateTime.TryParseExact(CombinedDate, "dd-MM-YYYY", DateTimeFormatInfo.InvariantInfo, DateTimeStyles.None, out date))
{
args.IsValid = true;
}
e...
I need a regex that matches first "xyz" and all characters that come before. For example, for
"abxyzcdxyz" it should match "abxyz". I was trying with pattern ".*xyz", but it matches the entire string.
...
Hi,
I have to automate something for the finance dpt. I've got an Excel file which I want to read using OleDb:
string connectionString = @"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=A_File.xls;Extended Properties=""HTML Import;IMEX=1;""";
using (OleDbConnection connection = new OleDbConnection())
{
using (DbCommand command = con...