|
Interesting a bug in .NET Framework.
Life is a stage and we are all actors!
|
|
|
|
|
Thanks for the reply, but I do not think this is relevant in my situation. From what I can gather the post is just saying that you need to check the return value of the Read function in order to determine how much data to write our to the file, which I am already doing.
Also, as I have said before, I can use the same code to decrypt and of the files from a test application but the main application code is only decrypting files that I have uploaded. Other users are able to decrypt their own upload in addition to other peoples, and one user can not decrypt even his own files... It just seems so random.
I also since have tried to decrypt the file straight from the network location and am still having an issue, so I can therefore rule out it being anything to do with using File.Copy to get a local copy of the file prior to decryption.
Any more suggestions?
Life goes very fast. Tomorrow, today is already yesterday.
|
|
|
|
|
OK, turns out the key was being altered from else where in the code, but only in certain situations - due to some other test.
So basically an error on my part
Life goes very fast. Tomorrow, today is already yesterday.
|
|
|
|
|
Hi all,
when the tab is changed i could get WindowStateChanged event.
and there are many tabs are there. i want to get the active tab's URL.
if i am able to identify the active tab that is enough then i can get the url.
( i have seen many posts but no ans)
can some one help me.
Regards
.....Jack
|
|
|
|
|
i have list<myclass>
myclass contains
name,sirname,age
i want to sort list first with name then sirname then age
how to so that
|
|
|
|
|
You should use IComparer interface.
Life is a stage and we are all actors!
|
|
|
|
|
Hi,
This[^] will explain what you need.
Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.
|
|
|
|
|
I am getting mscorlib:Authentication Failure error message when I open my application. The below piece of code executes while my application opens.
I am not understanding why this error is coming up.
private void InitializeRemoting(out int RemotingPortNumber)
{
// Establish server channel sink provider
BinaryServerFormatterSinkProvider svrSinkProvider = new BinaryServerFormatterSinkProvider();
svrSinkProvider.TypeFilterLevel = TypeFilterLevel.Full;
// Create and register tcp server channel to listen on a port.
m_serverChannel = new TcpServerChannel( "ITViewAppOperations",0,svrSinkProvider);
ChannelServices.RegisterChannel(m_serverChannel,true);
string PortNumberString = m_serverChannel.GetChannelUri().Split(':')[2];
RemotingPortNumber = Convert.ToInt32(PortNumberString);
// Register "BridgeFactory.rem" as singleton well know service types.
WellKnownServiceTypeEntry entry1 = new WellKnownServiceTypeEntry(typeof(IdeWMBridge).FullName,
typeof(IdeWMBridge).Assembly.FullName, // "AA.IDE.IdeWmBridge" "IdeWMBridge.rem",WellKnownObjectMode.Singleton);
RemotingConfiguration.RegisterWellKnownServiceType(entry1);
// Get remoting singleton bridge instance.
m_ideWmBridge = (AA.IDE.WMBridge.Common.IaaIdeWmBridge)Activator.GetObject(
typeof(AA.IDE.IdeWmBridge.IdeWMBridge),
"tcp://localhost:" + RemotingPortNumber + "/IdeWMBridge.rem");
SetLifetime(m_ideWmBridge, TimeSpan.FromDays(365 * 100));
m_ideWmBridge.IdeProxy = m_ideProxy;
}
private void SetLifetime(object obj, TimeSpan LeaseTime)
{
((ILease)((MarshalByRefObject)obj).GetLifetimeService()).Renew(LeaseTime);
}
Please let me know if anyone knows the solution.
|
|
|
|
|
Where is this exception thrown (At what line)
And put your code betwen <pre> and ;</pre>, for better view. This message looks ugly and there are people that will never try reading it.
|
|
|
|
|
no PRE tags
Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.
|
|
|
|
|
|
VengefulSakhmet wrote: I need to perform a query on the files located in the Registry.
There are no files located in the Registry. It contains Key and Values where a Value is actually a key-value pair.
AFAIK it does not support SQL queries because it is not a relational database.
Regards
David R
---------------------------------------------------------------
"Every program eventually becomes rococo, and then rubble." - Alan Perlis
|
|
|
|
|
Your database path is anything but. That's a path in the Registry, not a path to a database. You have to retrieve a value from that key (whatever name it has...), and then pass that value to the creation of the SqlConnection object.
|
|
|
|
|
Hi.
I have an asmx webservice with method which should translate sentences. There is no problem with short sentences. But with long sentencens client app must wait about 10seconds for translated sentence. How can I recognize when webmethod has finished work - on beginning I am going to show a label which informs about processing and hide it after all. Is there any simple solution of this problem?
regards
pit
|
|
|
|
|
Use the web service asynchronously, and then update the page when the method completed event is raised.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
ok. thanks a lot
|
|
|
|
|
When we drag a ContextMenuSrip then it get intiated with 'component' IContainer...I read on MSDN and it was written that its for focus management. But I didn't get what type of focus it needs ?? and Timer component also needs it but even its not visible then what type of focus is it ??
Actually, I'm trying to loop through every control in form but when I tried I couldn't find ContextMenuStrip in that collection. However MenuStrip do exists.
The exact problem is here...I've wrote some code in a form and then inherit it in other forms but the both forms' 'component' objects are differ as they are private and I need to execute a loop in the main form...All the controls in Controls property can be found but not in that IContainer.
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKQUFK[M`UKs*$GwU#QDXBER@CBN%
R0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
-----------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
Take a look at this thread[^]. Follow the link in the post by David Veeneman.
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.”
|
|
|
|
|
Okay, that thread has an answer but CMS is a control.
I inherited CMS in a class and didn't add constructor with IContainer param and when I dragged it to the form it worked normal but designer didn't add it in Control Collection...
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKQUFK[M`UKs*$GwU#QDXBER@CBN%
R0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
-----------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
hi All,
I would like to define at c# a bitmap in a struct
Define spesific bit to be use
I don't know how to do it
at c++ i should define it as
typedef struct
{
unsigned long m_opcode :2;
unsigned long m_id :3;
unsigned long m_src :4;
unsigned long m_address :3;
unsigned long m_timer :18;
unsigned long m_reserved :1;
} WiMAXBlock1HeaderT;
how can i define it at C#?
thanks
ronen
|
|
|
|
|
Hi,
those are bit fields, not a bitmap. And C# doesn't offer any help at all for doing such things. You could define a struct with public properties that contain code to perform all the bit operations (AND, OR, SHIFT).
Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.
|
|
|
|
|
This struct is equal unsigned long variable which is similar to ulong .NET type.But you should define your own logic to extract the members from the variable.This stuff should help.
Life is a stage and we are all actors!
|
|
|
|
|
This looks a little like a BitArray . You might take a look at the documentation MSDN[^], and see if it suits.
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.”
|
|
|
|
|
hi,
i have tiny c# apps and when i try to make setup and trying to install it on 32 bit then it is working fine but when i am trying to install it on 64 bit then it is giving error after few minute of installation. so please tell me someone how to generate a setup which work on all the machine mean 32 & 64 bits both.
please help me.
Thanks in advance
tbhattacharjee
|
|
|
|
|