|
Bring your computer and a power source with you. Hopefully you won't have internet access in such a remote place, so we won't see any more patently ridiculous, inane, pathetic, blatantly impossible, self-centred, stupid, misguided, irreversibly silly questions
|
|
|
|
|
Good Morning,
I am trying to create a pfx certificate by running the following (and putting in a password)
makecert.exe -n "CN=MyCert" -pe -r -e 01/01/2039 -sv c:\MyKey.pvk c:\MyKey.cer
pvk2pfx.exe -pvk C:\MyKey.pvk -spc C:\MyKey.cer -pfx C:\MyAppsCertificate.pfx
When I try to use the certificate in studio for click once and it says the password I put in is incorrect
any ideas?
|
|
|
|
|
|
I've ticked you up on both Q&A. It's so refreshing to see someone make an effort here. Well done!
Panic, Chaos, Destruction.
My work here is done.
|
|
|
|
|
Its one of those things, been seaching all morning for the solution (about 2hours) then think right final effort post on here, and 2 min later i find the solution,
|
|
|
|
|
I have a project that have a class that I can’t step into a method call with F11 during debugging.
Any tip what could be wrong?
_____________________________
...and justice for all
|
|
|
|
|
Did you Put a Breakpoint ?
Vuyiswa Maseko,
Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.tiyaneProperties.co.za
vuyiswa@its.co.za
www.ITS.co.za
|
|
|
|
|
Hmm, have you got the pdb available/debug build etc? Also, its a long shot but there's a custom attribute (can't remember what it is) which instructs the debugger to step over methods and such. There's also an option on the debug context menu which tells the debugger to 'step over properties and operations'. Check you don't have that set.
Regards,
Rob Philpott.
|
|
|
|
|
It's DebuggerStepThrough[^]. Generally it's added by tool generated code (such as the one coming from svcutil).
|
|
|
|
|
Is it just that class that doesn't work, or is it during any debug session with any project?
Are you sure F11 is mapped to that command?
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
Yes just one class and one method. No attributes are on the method or it's class.
_____________________________
...and justice for all
|
|
|
|
|
I am using RDLC and i want to add dynamic text in header as well as in footer and some images in to the header but i cant understand how to add it in same rdlc.
i can add static text in header as well as footer and when i add dynamic text in header it will be displayed in the first page only(after saving report in PDF format) but i cant get same text in next continuing pages
will you help me please as early as possible
|
|
|
|
|
Hi All,
I want to copy data from another website which is not mine domain.
There is no link provided or RSS feed available for it.
Below is the link from where I want to copy table data
http://www.ndtv.com/convergence/ndtv/pollution.aspx
Is it possible ?
If no then, is there any web service aailable to get Pollution Watch like in above link ?
Kindly let me know asap.
Thanks in advance
|
|
|
|
|
Member 3669889 wrote: Is it possible ?
Yes, just like it's possible to rob a bank. Did you consider "asking" them whether you can use their data? Is there any particular reason not to ask permission?
I are troll
|
|
|
|
|
If the data you're interested in is always in the same xpath, you can just load the html into an XMLDocument.
|
|
|
|
|
I would just write a Windows Service that pulls in the page periodicaly and scrapes the data I want.
|
|
|
|
|
Hi,
I am trying to validate a excel sheet with student details using a c# code.
If there are any invalid cell found during validation I have to display it in the response.
I tried to add this all to a string and then display it in a label and the output was
Invalid Roll no: 1 Invalid Name:#@#$@#T^$ Invalid Roll no: 2 Invalid Email:2342345345345
The following is how it should be displayed
Invalid Roll no: 1
Invalid Name:#@#$@#T^$
Invalid Roll no: 2
Invalid Email:2342345345345
I got to do this for nearly 100 rows
Friends, Please let me know if you have any Ideas. I don't worry about the scrolls.
|
|
|
|
|
Oops forgot to say this is ASP.NET web page. And the validation should be done on click of a button.
|
|
|
|
|
I think you just need to add a newline constant to the end of each value (not title) you add. The constant is Environment.NewLine
As a side point, you shouldn't really be using a string if you're continually adding values - it's not very efficient. You'd be better using a System.Text.StringBuilder.
HTH
It definitely isn't definatley
|
|
|
|
|
this is a c# class file to encrypt/decrypt
a string when i am using this code in asp.net i am getting an error saying "an error occured in oaep padding" so plz guys help me to get out of this error
using System;
using System.Collections.Generic;
using System.Text;
using System.Security.Cryptography;
using System.IO;
using System.Collections;
namespace Cryptography
{
public class AsymmetricCryptography
{
// Fields
private string pk;
private string prk;
// Methods
public AsymmetricCryptography()
{
RSACryptoServiceProvider provider = new RSACryptoServiceProvider(0x400);
this.prk = provider.ToXmlString(true);
this.pk = provider.ToXmlString(false);
}
public static string Decript(string Decript_Text, string Private_Key)
{
string str = Decript_Text;
string str2 = "";
string xmlString = Private_Key;
RSACryptoServiceProvider provider = new RSACryptoServiceProvider();
// RSAParameters parameters = new RSAParameters();
provider.FromXmlString(xmlString);
string str4 = "";
Queue queue = new Queue();
while (str.Length != 0)
{
if (provider.KeySize == 0x400)
{
str4 = str.Substring(0, str.IndexOf("=") + 1);
queue.Enqueue(str4);
str = str.Remove(0, str4.Length);
}
else
{
str4 = str.Substring(0, str.IndexOf("==") + 2);
queue.Enqueue(str4);
str = str.Remove(0, str4.Length);
}
}
queue.TrimToSize();
int count = queue.Count;
for (int i = 1; i <= count; i++)
{
str4 = (string)queue.Dequeue();
str2 = str2 + Encoding.ASCII.GetString(provider.Decrypt(Convert.FromBase64String(str4), true));
}
return str2;
}
public static string Encript(string Plain_Text, string Public_Key)
{
string str = Plain_Text;
string xmlString = Public_Key;
string str3 = "";
RSACryptoServiceProvider provider = new RSACryptoServiceProvider();
//RSAParameters parameters = new RSAParameters();
provider.FromXmlString(xmlString);
int num = (str.Length / 0x20) + 1;
char[] chars = str.ToCharArray();
byte[][] bufferArray = new byte[num][];
int index = 0;
for (int i = 1; i <= num; i++)
{
if (i == num)
{
bufferArray[i - 1] = Encoding.ASCII.GetBytes(chars, index, chars.Length - index);
}
else
{
bufferArray[i - 1] = Encoding.ASCII.GetBytes(chars, index, 0x20);
index += 0x20;
}
}
string str4 = str;
for (int j = 0; j < bufferArray.Length; j++)
{
str3 = str3 + Convert.ToBase64String(provider.Encrypt(bufferArray[j], true));
}
return str3;
}
// Properties
public string Private_Key
{
get
{
return this.prk;
}
set
{
if (value != null)
{
this.prk = value;
}
}
}
public string Public_Key
{
get
{
return this.pk;
}
set
{
if (value != null)
{
this.pk = value;
}
}
}
}
public class HashCalculate
{
// Methods
public HashCalculate()
{}
public static string HashMD5(byte[] file)
{
MD5CryptoServiceProvider provider = new MD5CryptoServiceProvider();
byte[] buffer = file;
byte[] inArray = provider.ComputeHash(buffer);
provider.Clear();
return Convert.ToBase64String(inArray);
}
}
public class SymetricCryptography
{
public SymetricCryptography()
{
}
// Fields
private SymmetricAlgorithm mCSP = new DESCryptoServiceProvider();
// Methods
public byte[] DecryptFile(byte[] file)
{
ICryptoTransform transform = this.mCSP.CreateDecryptor(this.mCSP.Key, this.mCSP.IV);
byte[] buffer = file;
MemoryStream stream = new MemoryStream();
CryptoStream stream2 = new CryptoStream(stream, transform, CryptoStreamMode.Write);
stream2.Write(buffer, 0, buffer.Length);
stream2.FlushFinalBlock();
stream2.Close();
return stream.ToArray();
}
public string DecryptString(string Value)
{
ICryptoTransform transform = this.mCSP.CreateDecryptor(this.mCSP.Key, this.mCSP.IV);
byte[] buffer = Convert.FromBase64String(Value);
MemoryStream stream = new MemoryStream();
CryptoStream stream2 = new CryptoStream(stream, transform, CryptoStreamMode.Write);
stream2.Write(buffer, 0, buffer.Length);
stream2.FlushFinalBlock();
stream2.Close();
return Encoding.UTF8.GetString(stream.ToArray());
}
public byte[] EncryptFile(byte[] file)
{
ICryptoTransform transform = this.mCSP.CreateEncryptor(this.mCSP.Key, this.mCSP.IV);
byte[] buffer = file;
MemoryStream stream = new MemoryStream();
CryptoStream stream2 = new CryptoStream(stream, transform, CryptoStreamMode.Write);
stream2.Write(buffer, 0, buffer.Length);
stream2.FlushFinalBlock();
stream2.Close();
return stream.ToArray();
}
public string EncryptString(string Value)
{
ICryptoTransform transform = this.mCSP.CreateEncryptor(this.mCSP.Key, this.mCSP.IV);
byte[] bytes = Encoding.UTF8.GetBytes(Value);
MemoryStream stream = new MemoryStream();
CryptoStream stream2 = new CryptoStream(stream, transform, CryptoStreamMode.Write);
stream2.Write(bytes, 0, bytes.Length);
stream2.FlushFinalBlock();
stream2.Close();
return Convert.ToBase64String(stream.ToArray());
}
public string Initialization_Vector
{
get
{
this.mCSP.GenerateIV();
return Convert.ToBase64String(this.mCSP.IV);
}
set
{
if (value != null)
{
this.mCSP.IV = Convert.FromBase64String(value);
}
}
}
public string Sessio_Key
{
get
{
this.mCSP.GenerateKey();
return Convert.ToBase64String(this.mCSP.Key);
}
set
{
if (value != null)
{
this.mCSP.Key = Convert.FromBase64String(value);
}
}
}
}
|
|
|
|
|
Firstly, have you not noticed that there is an asp.net forum?
Secondly, TOO MUCH CODE
Thirdly, which line is causing the error? Failing that, give us a clue. Which method contains the line?
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
You may need to specify/change the padding mode[^]
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia)
|
|
|
|
|
I'm making a small backup application. And I want the user to be able to drag files and folders from the - file explorer style - TreeView(treeOne) to the second TreeView(treeTwo)
Drag and Drop works fine, exept when I'm dropping a file/folder into treeTwo.
In the Treeview treeTwo node, i can't get access to the full path of the original file/folder, or the parent nodes. And I need this to process the files
example;
I drag temp\blah\ folder from treeOne to treeTwo ... now in treeTwo i only have temp\blah (the root information (my computer\c:\ isn't included)
so no access to the parent nodes (c;\) or fullpath.
I tried everythin to bring them over, stick the fullpath in the tag property.
Tryed to make a new 'supernode' , inheriting treeNode and add some properties. butthat didn't work.
without that fullPath i can't process the files or folders.
Im so close to a sollution if I could just drag/drop the whole node tree over, with all the parent and sub nodes.
anyone can help me out a bit, know a sollution, an idea , some resources of how other ppl done it ... verry much appreciated
regards
|
|
|
|
|
TreeNode has a FullPath property. Have you tried using that?
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
yes, but when you drag/drop, you visualy select a node in treeView1 and drag it to treeView2. But what happens in code is you create a new node in treeview2, that takes the name of the selected node in treeView1.
And the new node.FullPath is automatically set in relation to the Treeview2.
I have to find a way to take the FullPath of node1 and copy it to node2 FullPath property. problem is, FullPath is readonly so I can't set it.
I tried creating a class that inherits TreeNode, and add an extra property 'originalPath' but it doesn't work... I'm getting a lot of errors in other functions regarding the TreeView, have to look into that later...
|
|
|
|