|
Sounds like you're hitting a culture issue. As Christian has said, take a look at things like the diff between the decimal and thousand separators, but also take a look at datetime formats. These are the two that normally step up and bite you in the ass.
|
|
|
|
|
I assumed English to mean UK, but you're right, if it's US, the date is at least as likely to be it. I've seen so much code that bypasses the DateTime class and just string mangles to seperate dates - as I am in Australia, any project I get pulled into from the US, I quickly work out those sort of issues.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
And thanks for the date time tip Pete. As stated to Christian I wouldn't have expected such an abrupt end to the application.
Many thanks for the advise.
Ant.
I'm hard, yet soft. I'm coloured, yet clear. I'm fruity and sweet. I'm jelly, what am I? Muse on it further, I shall return!
- David Walliams (Little Britain)
|
|
|
|
|
No problem. Unfortunately, formatting errors do tend to be nasty little bugs and they do cause all sorts of exceptions to be thrown.
|
|
|
|
|
FYI, The problem was indeed a cultural one. It was down to a configuration file used to setup Remoting.
An IPC channel was being used and naively I set the authorizedGroup="Everyone". I now pre-process the file and replace a placeholder variable with the appropriate WorldSid name (this is OS agnostic).
Ant.
I'm hard, yet soft. I'm coloured, yet clear. I'm fruity and sweet. I'm jelly, what am I? Muse on it further, I shall return!
- David Walliams (Little Britain)
|
|
|
|
|
Since .NET Framework 2.0, Response.TransmitFile is an elegant way to transmit huge files without buffering. Somewhere I have read in a Microsoft KB regarding the number of concurrent executions of Response.TransmitFile. In other words, the maximum number of connections to the web server using Response.TransmitFile. I feebly recall the figure as 50.
Any one remember that Microsoft KB URL which mentions this?
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
modified on Friday, February 22, 2008 11:52 AM
|
|
|
|
|
I don't and a quick google search didn't seem to turn anything up. But I have used this in a high traffic production application without any issues.
|
|
|
|
|
Thank you, Mark. For some reason, even I am not able to get to that Support KB. Actually I got an equivalent of TransmitFile in C++ which says there is no limit for the server versions. Here is the MSDN link of the same:
http://msdn2.microsoft.com/en-us/library/ms740565(VS.85).aspx[^]
Thank you anyway for clarifying and bringing in a confidence by quoting your positive experience with TransmitFile in your high traffic websites.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
Hi,
when i try to run my application i am getting the following error in VS2005
Could not load file or assembly 'Sample assembly' or one of its dependencies. Access is denied.
But the same web application is executing in other systems. What may be the problem and how to solve it?
Thanks in advance
Know is Drop, Unknown is Ocean
|
|
|
|
|
I think some dll file is missing in your system !!!!
Best Regards
-----------------
Abhijit Jana
Microsoft Certified Professional
"Success is Journey it's not a destination"
|
|
|
|
|
Is "Samply assembly" your own or comes with the system? If it is your own, then you may not have all the dlls it needs on the new machine.
|
|
|
|
|
i am facing problam with nant tool,when ever run the nant from command prompt it will showing the
<deliisdir> as unknown
any give guide for over come above problam.very urgently.
|
|
|
|
|
sekhar2008 wrote: very urgently
That is just rude...
"That's the problem with a spell checker. It only helps with bad spelling, not stupidity." - Rob Graham
|
|
|
|
|
|
First, read this[^] for why this is a bad idea.
Next, you need to very that the 3rd party assemblies that you want to install into the GAC are signed and strong named. If not, stop - you're done. You cannot sign and strong name a 3rd party library, unless they give you the source code to recompile it.
As for creating an installer package for them, there's a ton of different ways of doing this. Here...[^]
|
|
|
|
|
|
Richard Hartness wrote: Assuming that you have heard of them (which I would assume is likely) you may know that both of your concerns can be addressed.
Yep, I have. I didn't know which libraries you were referring to, sooooo, I couldn't be sure if it was a "good" library.
|
|
|
|
|
They are good - for they are code from the mighty Josh. Sing it with me - All hail to Josh.
|
|
|
|
|
Hi friends,
I need an answer about C# and .NET Framework. I explain the situation below.
I wrote a C# application. There is no problem, program is running properly.
Now, I have 4 clients and 1 server. All machines are windows xp pro.
I put this c# application (exe, assembly) on that server in a shared folder then I put shortcuts in clients desktop. I am clicking a shortcut from any of clients but my assembly is not working. All clients have .NET Framework 2.0 and I made some settings using Control Panel->Administrative Tools->.Net COnfiguration Wizard in these 4 machines. I am sure, all you know that in this tool we need to set trust level of local intranet to "Full Trust" and I did so. Also, permission of the shared folder in the server is set to Everyone->full access...
But when I tried to give a assembly path which is on a server in the clients using Microsoft .NET Framework 1.1 Wizards -> Trust an Assembly, I have an error that says "Unable to load assembly"...
So dear friends, what is the problem? For example all the clients are running word, excel files in the server or other programs...
Please help me,
thank you.
|
|
|
|
|
Try a better header in future - everyone needs an answer.
The fact you're using a .NET 1.1 wizard on a .NET 2.0 app seems like an issue.
Running an app from the central server kind of sucks, why are you doing that ? If you copy the files to the clients, does it work ?
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
I am sorry for the header...
You are right, of course I can install my application to the clients and then run it. But my application is database driven application and I just do not want to write extra code for remote machine database access. I have a little time and I want to run an application form network share. But if I can't, I will write some codes (based on XML) for client configuration then install that one...
Thanks.
|
|
|
|
|
The you need to use Remote Desktop or Terminal Services on the client to connect to the server.
then you can run your app on that remote session.
even given the "shortcuts" you've created (if they were to work), the app will still run on the client and then you have a client/server app anyway.
So, if you don't want that, then you need to use RDP/TS or Citrix metaframe.
Silence is the voice of complicity.
Strange women lying in ponds distributing swords is no basis for a system of government. -- monty python
Might I suggest that the universe was always the size of the cosmos. It is just that at one point the cosmos was the size of a marble. -- Colin Angus Mackay
|
|
|
|
|
Hi to all,
I have following problem in datagrid setting in .Net 1.1
I have used following code to place DateTimePicker in datagrid:
private WithEvents dtpGeneric as DateTimePicker
IN MOUSE_dOWN:
dtpGeneric=new DateTimePicker
With dtpGeneric
.Format = DateTimePickerFormat.Custom
.CustomFormat = "dd MMM yy"
.Dock = DockStyle.Fill
End With
I have set this format for the control used in datagrid.
Now i want the same format in datagrid cell
Please tell me, How do i do this?
Poonam
|
|
|
|
|
In one project, I have two classes containing #include < windows.h> in both .cpp files. Class 1 has macro of including the class 2 in the .h file.
Class1.h
#include "class2.h"
Class1.cpp
#include < windows.h>
Class2.cpp
#include < windows.h>
During compilation, I received following warning message:
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\Windows.h(16) : warning C4005: '_WIN32_WINNT' : macro redefinition
command-line arguments : see previous definition of '_WIN32_WINNT'
What is solution to avoid this warning?
|
|
|
|
|
This is not a .NET framework question at all, but the answer is to include windows.h in your std.afx file, I reckon.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|