|
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".
|
|
|
|
|
Kant wrote:
But they work right if they are loaded in the GAC. Am I correct?
Nope, that is what is happening now.
The problem isn't that the version of the custom control changed, its that the assemblies *it* referenced are of different versions than what are already loaded. When the loader sees that the version already loaded differs from the one requested, it throws the FileNotFoundException.
Come to think of it, you *might* be able to get around the problems (and avoid a .config file if you don't need one) by hooking into the AppDomain.AssemblyResolve event. This puts you in complete control of how all further assemblies are loaded if the original request fails (which it would if the wrong version is already loaded).
It would require some work on your part, but you would need two bits of information...the assembly name and public key token (to ensure that you are being asked to load one of the framework assemblies and not some bogus one). You could then use that information to load the correct assembly or return a reference to the already loaded one.
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
|
|
|
|
|
FxCop is a code analysis tool that checks .NET assemblies for conformance to the Microsoft .NET Framework Design Guidelines. It uses reflection, MSIL parsing, and callgraph analysis to inspect assemblies for more than 200 defects (edit: I think the author's language use is defective then as these are guidelines, not defects) in the following areas: naming conventions, library design, localization, security, and performance (see rule documentation). The package includes both GUI and command line versions of the tool, as well as the SDK to create your own rules.
FxCop 1.21
http://www.gotdotnet.com/team/fxcop/default.aspx[^]
To add some: HTH can they say var instead of m_var is a defect?
de·fect
1. The lack of something necessary or desirable for completion or perfection; a deficiency: a visual defect. 2. An imperfection that causes inadequacy or failure; a shortcoming.
F13 to run Moron Checker
<a TITLE="See my user info" href=http:
|
|
|
|
|
Did not know it is supposed to be a rule to test a empty string by checking the length. Doesn't that blow if your string is null and does not point to a string object? In that case you would have to check for null and then check for length. I have been assigning my strings String.Empty when initalized and just comparing for that. Maybe I have to change.
Rocky Moore <><
|
|
|
|
|
Here's the classic compiler warning:
Say u have an ArrayList with mixed objects, then try test for an empty string like this:
if (arr[2] == "") ...
and it complains that you should cast.
But to most inexperienced programmers will just do:
if ( (string) arr[2] == "") ...
and how now brown cow? Well my opinion.
You should of course do this (i think, i just ignore the warning):
if ( arr[2] as String == "" ) ...
<a TITLE="See my user info" href=http:
|
|
|
|
|
BrowseForFolder:
How is it possible to set the starting path (meaning the first Directory shown in the BrowseForFolder Dialog)?
Thanks
Stefan
|
|
|
|