|
Sorry Matt, I didn't know you had a article series behind your question
These things happen when you start visiting the lounge and the forums directly without checking out cp main page
I'm reading the first one, thank you for a great looking article
Regards,
Kannan
|
|
|
|
|
It really depends on many issues such as bandwitdh, latency, what kind of data you will be passing and what size. If you are planning on flipping through records (navigating one at a time) via datasets and don't happen to have T1 lines, it can get slow.
You mention in another post that you may also be using this over the Internet. I was going to use Web Services to communicate between my application and the SQL Server over the Internet passing DataSets. The internet connection is a SDSL line on one end at 384K/384K and a cable modem at the other at 1500K/128K. The web services were using Windows security.
Sometimes the first connection to the server via web services would take sometimes 2-3 seconds while a couple of times it took over 10 seconds.
Connecting to a running Sql Server directly in the code was sub-second and the same goes for fetching records.
I also had web services for posting images automatically that would range from a few K to 90K per imagine on matching DSL connections at 384K/384K. A seperate Web Service call was made for each imagine posted as a DIME attachment. It was tremendiously slow by doing it per image.
The server machine is very old technology and may be the reason for the slow response. It is only a PII450 with 256 megs of RAM.
Rocky Moore <><
|
|
|
|
|
Thanks for the feedback.
I have been researching the topic and have found allot of usefull information and performance statistics. You are correct in saying that it depends. What I get from this is that if I decide to use web services, I need to design them for actual usage behaviours and optimize them accordingly.
Thanks,
Matt Gullett
|
|
|
|
|
Hi!
Do you know how to do that?
I have a lot of objects. I want to serialize them, but some has not serializable attributes...
I want to create clones from the original objects dynamically.
How to solve this?
AgyklonN
|
|
|
|
|
Hi,
I wrote a simple C# service that uses remoting. It installs just fine, but for some reason when I try to start the service, I get the error message "Service 'SharpPrivacy OpenPGP Service' on 'local machine' could not be started. Error: 193 (0xc1)" (message was translated from german to english by me. It might not be exactly the same in english WinXP). I didn't find anything on the web about that error. Does someone know what might be the problem?
The service is generally the normal Service template, I only changed the function onstart:
<br />
protected override void OnStart(string[] args) {<br />
HttpChannel myChannel = new HttpChannel(4433);<br />
<br />
ChannelServices.RegisterChannel(myChannel);<br />
RemotingConfiguration.RegisterWellKnownServiceType(typeof(SharpPrivacy.SharpPrivacySrv.SharpPrivacy), "SharpPrivacy", WellKnownObjectMode.Singleton);<br />
}<br />
TIA,
Daniel
PS: If interested in SharpPrivacy (an OpenPGP implementation in c#), read my article[^] about it.
|
|
|
|
|
I had to go to Windows Components and Internet Information Services (IIS).
You are failing some kind of security check. If this works for you as it did me, you can then re-install IIS.
Good luck.
|
|
|
|
|
I don't quite understand. Do you know what kind of security check causes the error? And how would reinstalling IIS help?
Greets,
Daniel
|
|
|
|
|
I do not understand either. I am just telling you what we had to do.
We found this by comparing where the software worked and where it did not.
Sorry, it is a strange .NET world.
|
|
|
|
|
Hi && thanks for your answer. I set the installer to log on as the local system acount and as I am administrator, it should work, shouldn't it?
Anyway in the meantime I had a look into the event log, and there I found the corresponding error message: "SharpPrivacySrv is not a valid Win32 application".
I found a few references to that error on google (here[^]) but not a single solution to the problem.
Any ideas left?
Greets,
Daniel
|
|
|
|
|
I found the error. SharpDevelop (the IDE I use) sets the compiling target to a dll for a service, but it has to be an exe file.
As exe, it worked just fine. Thanks for your help!
Greets,
Daniel
|
|
|
|
|
Hi, Now I am confused with one question,
I have one computer(which hasn't a IP address for Internet) in the LAN,but I wanna develop one small applications to update the data which is stored in the SQL Server on one remote computer.I don't know whether I can connect to it.Do you know it? Tell me ,please.Thanks.;P
|
|
|
|
|
You would connect to it just like you do locally (assuming you are currently using TCP/IP to connect). Instead of the server name in your connection string you would use the IP address of the remote computer. Be sure to have port 1433 open in any firewalls you use.
If you are using Visual Studio .NET you can build the connection the same way as you do for your local machine except when it prompts for the server name enter the IP address. You need to be sure your connection string forces it to TCP/IP instead of named pipes.
Rocky Moore <><
|
|
|
|
|
Hey everyone,
As my first project with C#, DirectX, and object oriented programming begins to take form, I'm finding myself with a real problem. I only get to actually 'test' my game online once every few days because I don't know many people who will try it out with me.
On my LAN, the game runs perfectly fine. I can launch as many game clients as I want and everything appears smooth. Once I actually test it over the internet, it's a different story. When two clients connect, there appears to be some serious lag between them for a few minutes, but then it clears up and plays great - with a short lag between shooting someone and having them explode (depending on the players' ping). When a third person joins, everything goes to hell and never syncs up again.
I've tried using the DirectX network simulator but changing my game around using that has a guide is extremely frustrating. My last innovation (or desperate attempt) crashes my application under the sim, but a seems to work fine otherwise.
I'm getting nowhere without being able to test the game over the internet (or at least better simulated lagged environment).
I guess what I'm asking then, is there a .NET chatroom online where I could just pop in and try to round up a person or two? Or is there some kind of utility that I can use to simulate higher than 0 ping?
EvilDingo
|
|
|
|
|
server bandwidth and latency
<a TITLE="See my user info" href=http:
|
|
|
|
|
[rant]
One of the dependent assembly in my app updated to a new version. So I unloaded the old assembly reference from the solution and added new reference to the new version of the assembly.
Now the fun part started. Whenever I start the app, it crashed at class constructor. (both in debug and release)
Exception:
An unhandled exception of type 'System.IO.FileNotFoundException' occurred in Unknown Module.
Additional information: File or assembly name System.Windows.Forms, or one of its dependencies, was not found.
Debugger MessageBox:
There is no source code available for the current location.
I banged my head for 30 minutes or so, I added every possible version of code to check the dependent assemblies loaded or not. But everytime I got the same error, eventhough I set the breakpoints.
Later I realized that I forgot remove the old control from the toolbox. So when I tried to add the new version of the control to the toolbox, I got this error
The assembly 'blah..\blah.dll' could not be loaded. Check that any dependencies the file requires are installed.
After 1 hour or so I came to know that the new version of assembly (control) is compiled with VS.NET version 1.1 and I am running VS.NET 2002. Argh!!!
.NET supposed to resolve the problems from DLL Hell right?, What am I missing?
[rant]
Thx for listening.
Never take a problem to your boss unless you have a solution. This signature was created by "Code Project Quoter".
|
|
|
|
|
I have the same concerns as you. For example, why is it, that if I download some demo code from an article, that contains a compiled exe, compiled with version 1.0, it crashes on my system which is 1.1?
This is all supposed to be compatible. What happens when a user tries to run my app on some future version say 2.0? Will it run? I am not too confident it will.
WTH?
Amber Star
Visit My WebLog..
|
|
|
|
|
Amber Star wrote:
why is it, that if I download some demo code from an article, that contains a compiled exe, compiled with version 1.0, it crashes on my system which is 1.1?
Thx for heads up.
Never take a problem to your boss unless you have a solution. This signature was created by "Code Project Quoter".
|
|
|
|
|
Install 1.1 as well. Then disassmle the file with ildasm and recompile for 1.0. ildasm should auto pickup that the file is 1.1, and ilasm will run 1.0 per default.
<a TITLE="See my user info" href=http:
|
|
|
|
|
leppie wrote:
leppie::AllocCPArticle(Generic DFA State Machine for .NET);
Shouldn't it be:
leppie::AllocCPArticle(_T("Generic DFA State Machine for .NET"));
-Nick Parker
|
|
|
|
|
No! I have a special interpreter running that takes into consideration with things get lost in the mail.
<a TITLE="See my user info" href=http:
|
|
|
|
|
leppie wrote:
No! I have a special interpreter running that takes into consideration with things get lost in the mail.
-Nick Parker
|
|
|
|
|
leppie wrote:
Install 1.1 as well.
Can I install .NET 1.1 in a different directory than 1.0? I still want to use VS.NET 2002. ( I don't have VS.NET 2003)
leppie wrote:
Then disassmle the file with ildasm and recompile for 1.0. ildasm should auto pickup that the file is 1.1, and ilasm will run 1.0 per default.
I will try that. Thx for the tip. BTW, this works only if I have 1.1. Am I correct?
Never take a problem to your boss unless you have a solution. This signature was created by "Code Project Quoter".
|
|
|
|
|
it runs side by side. VS NET 2002 is apperently hardcoded (env variables) to 1.0. I run rotor too!
<a TITLE="See my user info" href=http:
|
|
|
|
|
Kant wrote:
.NET supposed to resolve the problems from DLL Hell right?, What am I missing?
It still sort-of does, because your application isn't broken by the presense of a newer version of an assembly. Instead your application is broken because it is trying to load two assemblies that differ only by version which isn't allowed.*
The quick solution is to use the .NET configuration wizards to generate a .config file which redircts all version 1.1 assemblies to the 1.0 versions (1.0.5000.0 -> 1.0.3300.0). I think its the "Fix an Application" wizard that you can use.
*Even if it was, how would you interface with the newer assembly? For instance, how would you add a control from .NET 1.1 to a .NET 1.0 form? If we assume you could implicitly cast between versions, then how would you call methods on the 1.1 version?
Or better, WHY would you want to load both at the same time? You'd be loading the core assemblies all over again because the version 1.1 class is also referencing the core 1.1 assemblies As you can see it gets complicated quickly
James
"I despise the city and much prefer being where a traffic jam means a line-up at McDonald's"
Me when telling a friend why I wouldn't want to live with him
|
|
|
|
|
James T. Johnson wrote:
Instead your application is broken because it is trying to load two assemblies that differ only by version which isn't allowed.*
But they work right if they are loaded in the GAC. Am I correct?
Before I go further, I don't know that updated assembly was compiled with 1.1. That's my first mistake. I should have read the instructions properly.
My second mistake was, I thought IDE would act cleverly when you try to add newer (1.1 compiled) assemblies. I was wrong. After today's experience the IDE won't care which version of compiled assemblies you are referencing.
Thx for the configuration wizards tip.
James T. Johnson wrote:
how would you interface with the newer assembly? For instance, how would you add a control from .NET 1.1 to a .NET 1.0 form? If we assume you could implicitly cast between versions, then how would you call methods on the 1.1 version?
Very good point. If you know answer, please let me know. (just for curiosity)
James T. Johnson wrote:
WHY would you want to load both at the same time?
I don't want to load both the assemblies. I was just trying to replace the current one with the newer version.
Can you suggest me (or better write an article) about how to add new 1.1 assembly to 1.0 application? (apart from your configuration wizards tip)
James T. Johnson wrote:
You'd be loading the core assemblies all over again because the version 1.1 class is also referencing the core 1.1 assemblies
Exactly. That's my question.
Never take a problem to your boss unless you have a solution. This signature was created by "Code Project Quoter".
|
|
|
|