|
Remoting is used all the time under the covers on the same PC. Examples are scarce though Have a look at appdomains perhaps for a starting point.
top secret xacc-ide 0.0.1
|
|
|
|
|
No, if it is like that there is no question of remoting is extension of DCOM. u can write client and server applications in the same PC or in different PC's.
|
|
|
|
|
Hi
See we can do remoting on the local system itself, Remoting nothing but transmission of information from one application domain to another application domain . So for that u definately need a hosting application that host u r remoting object and one or more client applications that will make use of u r remote object.
i am not able to understand what is u r requirement, can u make it more clear?
it might be like this
u have to decide which one is u remote object and u r saying that accessing of the data from other persons database so u have to make other person system as u remote object that will make to way communication.
|
|
|
|
|
Hi,
what I want to do is an application that uses a database.
The application would not be a client/server based in the sense that the
server would not be available unless the client launches his application.
This would "activate" the server part of the application and make it
available to anyone who can reach it (controlled by the client, if he wants
to let the requestor see his data).
Now the client, on normal startup, would just see his own data, via the
local access. But if he wants, he would request to change the "connect-to"
location to connect to somebody else's database.
I had this going via a thread and a network service that I created. But
in the .net environment, you need to have the server-class AND the
client-class both registered. If it's registered as a client, then you
cannot use it as a server.
What I will need to do, of what I can tell, is create a second .exe or
.dll file and run it as a seperate process via process control.
I will be looking into this later this week... I am cuaght up with other
stuff at the moment.
Thanks for your input.
Gary
Just for the fun of it !
|
|
|
|
|
Hi Friends
Here is a simple question in which im confused.
when we build our ASP.NET project . Does it get compiled or gets interpreted.
I know that many of us think that it is compiled but when i build my project i get the error one by one.
this means that it is interpreted.
If any one knows what is this please do let me know.
Naveen
Naveen
|
|
|
|
|
all the code is compiled. when is a different story. C# source behind file are compile in the dll, but aspx and controls are compiled on 1st access, hence the reason u can replace them at runtime.
Building a ASP.NET dll is a bit more tricky, and beyond the scope of normal human beings (but its all compiled)
top secret xacc-ide 0.0.1
|
|
|
|
|
i cant get ur point. somebody told me that ASP.NET pages are interpreted while aother applications are compiled.
Any Help
Naveen
Naveen
|
|
|
|
|
softp_vc wrote:
i cant get ur point. somebody told me that ASP.NET pages are interpreted while aother applications are compiled.
Fine dont believe me? Why do you ask then? It happens just as I tell you!
top secret xacc-ide 0.0.1
|
|
|
|
|
I have developed a windows service using VB .net but i can only installit in the computers that have Visual Studio installed. in other computers that have only Framework installed I get an IO.FileNotFoundExeption
Thnx...
|
|
|
|
|
Hi,
How do I prevent the paper being ejected when printing using the PrintDocument object? Everytime the PrintPage event handler exits, the printer starts the printing and then ejects the paper immediately. I still need to print some text in text mode (not graphic) after that using my own library. I already set the PaperSize property but it doesn't do any good.
Or is there a way to print in graphic mode without using PrintDocument?
Thank you very much.
|
|
|
|
|
I have a memory leak problem.
My remoting server runs on my development machine (2 1 Meg processors) at about 38mb
However when I run it on the target machine (2 2.5 Meg Xeaon processors with hyperthreading) its memory usage ramps up and up.
The only difference I can think of is the hardware architecture.
Has any one got any bad experiences using multiple xeon processors?
(OS is win 2K server)
MOO!!
|
|
|
|
|
If there is a difference, I'm betting it is only exposing a bug that exists in your code that isn't being worked on your development system. There isn't anything special that you need to do with your code to run on the different processors.
I'd run memory validation products on your code, and then check and double check for race conditions.
I can imagine the sinking feeling one would have after ordering my book,
only to find a laughably ridiculous theory with demented logic once the book arrives - Mark McCutcheon
|
|
|
|
|
Crap, forgot which forum I was in, thought this was C++.
The garbage collector tunes itself to the cache size of your processor. I think the first generation is somewhere around the size of your processor's L2 cache. This can change when it collects. Also if the system is only hosting your service, then it is less likely to collect since there isn't as much need to.
Have you actually run into memory problems, or are you just worried. You can also add a call to GC.collect just to reassure yourself that there isn't really a problem.
Assuming of course that you aren't allocating unmanaged resources that you aren't freeing up.
I can imagine the sinking feeling one would have after ordering my book,
only to find a laughably ridiculous theory with demented logic once the book arrives - Mark McCutcheon
|
|
|
|
|
Hello,
I'm writing an application that needs to add my code to existing client code.
I want to avoid parsing the source code so I consider two possibilities:
-> Compile it and add the code on MSIL level.
-> Create a CodeDOM syntax tree, insert code there, then compile it.
I have two questions:
1) Is it somehow possible to load an existing assembly and then insert some MSIL code into it?
2) Can You somehow create a CodeDOM syntax tree from a project that consists of source code files?
Do You know any class libs? Namespaces? Websites?
I'm happy with any hints!
Thanks!
|
|
|
|
|
Hi i'm trying to generate a strong key name for an assembly using
sn -k myKey.snk ... gives me following error.
Failed to generate a strong name key pair -- An internal error occurred.
I reset the sn using sn -c and it still giving me the same error when i try to create the key. If anyone knows how to fix this please help me.
Thank you.
Thank you
Silver Bullet
|
|
|
|
|
i had installed visual stion dot net on f drive and my windows was on c drive and now i have formated my c drice can i reuse that visualstudio without reinstalling the whole package plz tell me
faheem
|
|
|
|
|
You'll have to reinstall, especially if you installed the .NET Framework and, optionally, the SDK with VS.NET. The .NET Framework is a system component and will install into the system root (on drive C: ). Other components of VS.NET will also install into the Common Files folder which is typically found in the Program Files folder, which is typically found on the system drive (drive C: for you). Most files will be installed into the path you specified on drive F:, but not all. Reinstalling VS.NET will help ensure that nothing is broken.
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
We're having a slight argument at work and I'm hoping you can resolve it one way or the other...
(The app in question is squarely aimed at corporate environments, so home user type settings aren't relevant.)
I'm saying that developing our new product in .Net will be faster and easier - the framework includes things that I'm currently having to implement myself, so I pretty much have double the amount to do compared to using .Net (and I'm running the risk of introducing bugs)
The other side of the argument is based around there aren't that many .Net desktop applications and so a .Net app would be harder to market than a Win32 native app.
Since this app is driving me a little mad, could someone tell me - are .Net apps harder to market? Do companies prefer to install Native apps over .Net apps? Do sysadmins dislike/have a hard time installing the framework in a corporate environment?
|
|
|
|
|
In my personal experience and professional experience as Director of Technology and chief architect at our company, sysadmins dislike doing anything that keeps them from playing solitaire or hiding out in some room playing Xbox. It doesn't matter if they have to install a native app or the .NET Framework + a managed app.
The way to market this is the ability of a correctly written .NET application to not require installation. Yes, the .NET Framework and any service packs (.NET 1.0 will have SP3 and .NET 1.1 will have SP1 shortly) are a little bloated, but nothing typical IT solutions can't push out to machines (it is a Windows Installer package when you pass /c /t:path options to the installer executable). The managed application could sit on a share somewhere that all users can use, though IT will also have to push out a code group (if necessary) so that CAS (code access security) is granted the appropriate permissions to run certain code. That, too, is easy.
One that app is out there, they never really have to worry about it again. If there's update to be installed, they can simply drop the new assemblies on top the old ones. Through publisher policy assemblies and/or .config assembly settings, even old assemblies can use new assembly versions that they weren't linked against. Assemblies can also be deployed like this over the Internet or an intranet. This is all known as touchless deployment. The IT folk don't have to worry about pushing out updates to an application; when written correctly, the .NET applications will update automatically through Fusion (the assembly bindiner portion of the CLR). .NET 2.0 will make this process even easier (and not require a 24/7 connection to check for updates) with ClickOnce technology.
The only major downside is that managed apps can require quite a bit of memory. If you use a lot of types (our flagship app uses almost every assembly of the BCL plus a few other third-party assemblies), it will use quite a bit of memory. A well-written app isn't so bad, though. Another downside (sort of) is that it can be slow to start up since types must be JIT compiled. Once they are compiled to native code, however, the native code is cached and executes about as fast as native calls (stalk walks and the sheer depth of some execution stacks may degrade performance a little more than purely native code). If IT doesn't mind, assemblies can be pre-JIT'd into the GAC using ngen.exe, but that would require some sort of installation.
So, depending on how your application is written to be deployed, IT may in fact have more time to sit around and play civ3 or whatever it is they do when not complaining about having to do their jobs and help people. It really works out better for them.
I'd recommend reading the topics in the .NET Framework about configuring and deploying .NET Framework applications, as well as security topics as necessary. Truly understanding these topics can help you write an app that makes deployment easy and can help you write an easy-to-update application (like assembly binding redirection so that you don't have to re-deploy every assembly just because you changed one and changed the version - something that should be done).
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
Hi Heath
Thanx for such a valuable information.
We look forward to see more such information from you on why to prefer .NET then Win 32 Apps.
Hope you would share more such in-depth knowledge with us.
Naveen
|
|
|
|
|
hello,
i have some problems with the NSpring Framework. I want to use this framework to log in a file, which events occurs in a ASP.NET Application. But i do not really know how i can use this framework and how to start with it.
The situation is as follows: i developed a ASP.NET Application for a PDA and now i want to change the code in that way that it would be logged in a file on the PDA what actions a user execute (which events would be execute, which method, at what time,..).
Can anybody help me with this problem?
thanks in advance.
yours sincerely
patrick
|
|
|
|
|
Hi
i am using Application.StatrupPath in my windows service to locate the configuration file but it is saying that the type namespace Application could not be found. Do i need to give reference to any dll to make use of it. if it yes which dll that i have to refer bcaz i am using System.Windows.Forms.dll but it is not accepted in windows service.
Can anybody help?
|
|
|
|
|
Hi
i am working on windows service which is hosting the Remote object by using configuration file. what i am doing is in the OnStart method i am using
RemotingConfiguration.Configure method and i am giving the commandline argument as a parameter to this method and i am starting the service by giving path of the config file in start parameters option in Service Control Manager while starting the service.
Now what i want is i don't want to give the path of config file in the start parameter just i want to make the service that automatically identify the path of the config file in RemotingConfiguration.Configure method. Can Anybody help
|
|
|
|
|
Hi how can I develop games using .NET Framework, thnx
|
|
|
|
|
Download and install Managed DirectX 9.0b from http://msdn.microsoft.com/directx[^] and then pick up a copy of the book, Managed DirectX 9 Kick Start : Graphics and Game Programming[^]. It's an excellent book.
Familiarity with the .NET Framework is required.
Note that Managed DirectX is not simply a wrapper like many other implementations you may find (including those on this site). It was written from the ground up using the DirectX drivers for optimal performance. More is explained in the book and the Managed DirectX documentation that comes with the DirectX 9.0b SDK.
Microsoft MVP, Visual C#
My Articles
|
|
|
|