|
Thank you very much for your help. I resolved this problem as your suggestion
|
|
|
|
|
As Sirana said
You are missing 1 or more dependancy, that means the DLL you are working with requires other DLLs to work, there are various tool that will allow you to inspect the dependencies of the DLL you want to deploy.
Welcome to DLL Hell!
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Yes. I resolved this problem
|
|
|
|
|
One of our vendors is sending us files via FTP and they are going to use PGP. I'm writing a C# console program to download the files from the FTP site and decrypt them. They have also give me the .asc key file.
I'm having real trouble decrypting the file using the asc key.
Can anybody point me in the right direction?
I was going to use GnuPGDotNet but can't figure out how to tell it to use the key file.
TIA - Jeff.
|
|
|
|
|
|
I actually was looking for a library that I could call directly from C#; not something where I have to go to the command prompt or run an external executable.
Thanks again.
|
|
|
|
|
|
Welcome!
I have a question about MVVM. I have app where a have 9 buttons and they are bind to the same String from Viewmodel class. I want to update a Content of Button what i clicked with a char. How can I "block" another button from filling with button what i recently clicked?
|
|
|
|
|
You would need to bind to 9 different strings. You can be more clever about it obviously then having 9 string properties. Point is, if everything binds to the same string, you can't suddenly have 8 of the buttons not change by some random rule.
|
|
|
|
|
Point is a must fill button content with X or O. Once with X and O after X and X after O and again and again... It is possible to have another way then having 9 properties?
|
|
|
|
|
Nope. If you have 9 independent buttons, you are going to need 9 different properties. How else would button 2 have an independent state from button 3?
|
|
|
|
|
Ok I've got this now. Thanks for the reply!
|
|
|
|
|
I'm trying to scrap this website:
http://datasuite.cmegroup.com/dataSuite.html?template=opt&productCode=6E&exchange=XCME&selected_tab=fx[^]
And to be specific the quote table inside. The table is generated by javascript somehow. I don't know how to scrap this table. I tried to use WebRequest,HttpWebRequest, WebBrowser control, html agility pack and nothing works.
It gives me blank page all the time.
When I run it in mozilla (the web) and check the source code it also shows the javascript reference only without any html table code.
Anyone have a clue how to scrap this data from the table?
|
|
|
|
|
If you dig through the JavaScript (namely dataSuiteUtil.js and dataSuite.js) you will see that it is done using AJAX. It has a handleRequest() method which it seems is the one to load and display data. Not sure how to get around it but I thought I'd try and help by pointing out what I found.
djj55: Nice but may have a permission problem
Pete O'Hanlon: He has my permission to run it.
|
|
|
|
|
I dont understand how I can make the "Define File Type" code an instance (is that the term I'm looking for) so it can be be read in the "Open IE and Print" segment.
// Define File Type
foreach (FileInfo finfo in dir.GetFiles("*.html"));
// Open IE and Print
if (Application.Current.Properties["finfo"] != null)
Have tried defining it as a string but I get the following error.
"Cannot convert type 'string' to 'System.IO.FileInfo'"
Any help would be greatly appreciated to help me understand C# further.
|
|
|
|
|
Directory.GetFiles(string) returns an array of 'string' objects, not a FileInfo object. Each string contains the file names (including their path) in the directory.
http://msdn.microsoft.com/en-us/library/07wt70x2.aspx[^]
djj55: Nice but may have a permission problem
Pete O'Hanlon: He has my permission to run it.
|
|
|
|
|
You really should look up the various classes and methods you are using on MSDN.
Directory.GetFiles with one string parameter will return an string array containing the path of all files in the directory specified in the parameter. If you want to specify a search pattern, you need to pass two string parameters, the first being the path to the directory, the second being the pattern.
The result will be a string array. You can foreach over that and pass each string into a FileInfo constructor if you wish.
|
|
|
|
|
To add to what the others have said: get rid of the semicolon.
foreach (blah blah in blahs);
if (myCondition) Becomes
foreach (blah blah in blahs)
if (myCondition)
With it present, the if condition is executed outside the loop, not in as the indentation suggests.
If you get an email telling you that you can catch Swine Flu from tinned pork then just delete it. It's Spam.
|
|
|
|
|
I am not sure, but I think you can do:
foreach (blah blah in blahs)
if (myCondition)
blah.Name = "Hello";
|
|
|
|
|
This should get you along the way.
foreach (String filename in dir.GetFiles("*.html")){
FileInfo finfo = new FileInfo(filename);
if (Application.Current.Properties["finfo"] != null){
}
}
hope this helps.
|
|
|
|
|
Sorry for the late reply, Thank you V this worked perfectly.
|
|
|
|
|
Cool, glad to be of help
|
|
|
|
|
I am trying to create a file on a directory where I have total power.
The File.Create (..) (as well as any other attempt to create the file even using FileStream()) always fails with the UnauthorizedException .
This is not possible since I have permission to write and create files on that directory (after all I can easily create a file by hand there).
Is there an explaination ?
|
|
|
|
|
tiwal wrote: This is not possible since I have permission to write and create files on that directory (after all I can easily create a file by hand there).
Lousy way to test.
Does your code run under YOUR credentials? What path and filename are you trying to write to?
|
|
|
|
|
I am running a debug instance of my program.
VS runs under my credentials.
The path is simply the debug folder of the application.
This is the same path where I was successfully reading and writing, yesterday, using the same VS, and NO change has been made since .
|
|
|
|