|
Hello all,
I have specified an RTF file as the license file, in the license agreement interface of my deploymnet project. But the license text does not show up during installation. What could be wrong ?
Thanks,
Smitha
You are never given a wish without also being given the power to make it true. You may have to work for it, however.
-- Richard Bach
|
|
|
|
|
Its been a while since I've played around with deployment projects, but I think the license file has to be included as a file that gets installed.
I've since dropped VS.NET's deployment projects and I'm now using NSIS[^] for any installs I need to make.
The scripting language takes some getting used to, but within a day of fiddling around I had the core of my installer done and just needed to tweak which files got included.
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
|
|
|
|
|
Thanks James for the link. Its got wonderful featues, which I require. Why I chose .NET deployment wizard was that, I thought it is the only one which will detect for a framework installation. Else I had been using a very simple easy to use installer, for my previous project.
And also the uninstall process for the ones we make with .NET deployment wizard, will not delete the application folder. It deletes only those files which were created during installation So it retains the old settings or other such information we record during a previous install
Thanks
Smitha
You are never given a wish without also being given the power to make it true. You may have to work for it, however.
-- Richard Bach
|
|
|
|
|
Hi everyone,
I created a COM+ library appliation using ServicedComponent and a client both in C#. When I keep the client on a remote computer how do I tell it to create an object from the server machine running the COM+ application, without registering the COM+ Server Component dll on the client machine.
Thanks,
Adnan
|
|
|
|
|
Hmmm, not sure if you can. BTW, its not the DLL you are installing, but just the proxies to point to thr host machine/cluster for the components.
If the COM+ apps proxies are not registered on the client to point to the COM+ host, I would suspect that it could not take part in a transaction.
I think you could probably tackle this if you used .NET remoting, and have the remoting server component then call the COM+ object?
Hmmm tricky one. Would like to know how you solve it if you do.
"Je pense, donc je mange." - Rene Descartes 1689 - Just before his mother put his tea on the table.
Shameless Plug - Distributed Database Transactions in .NET using COM+
|
|
|
|
|
Hi Giles, I did it. I used .NET Remoting and its working just fine. Now I can change the entire engine code without breaking the client even when they're running
I created the a .NET based interface and derived a ServicedComponent class from it, registered that class with COM+ catalog. Then created a remoting server and hosted the Class using "RemotingConfiguration.RegisterWellKnownServiceType(...)".
Now all the client needs is the interface and it works fine till that does'nt change. It can create a remote object based on that interface and that's it.
|
|
|
|
|
|
I have a simple C# Windows Service which exposes some objects via remoting.
These objects are also registered for COM Interop. I have a test web ASP
page which creates the COM objects (which run remotely inside my service).
Every thing has been running fine until we started stress testing. The
service's memory increases until the box is on its knees whilst we run even
a light test. However, here the strange bit, if I change the service
process's start Main function to just sit and wait on a MessageBox.Show call
instead of running as a service the test still runs perfectly well but the
memory usage does not climb, it remains stable. Using perfmon viewing the
CLR Memory/#bytes in all heaps we see a nice zig-zag pattern of allocs
followed by garbage collection. When running as a service the perfmon graph
just increases ever upwards. It seems as though garbage collection doesnt
happen when remoting objects from a service? Any thoughts or similar
experience?
|
|
|
|
|
I had a similar problem. It turned out to be the Com object.
The GC tidies up whenever it likes unless you force it. I tried everything getting the handle of the com destroying implicitly, forcing GC nohing worked.
Once the com instance was created there was no way in hell to destroy it.
Funnily enough it wasn't even a custom com it was Microsoft's own!.
It looks exactly the same problem as you are having. Never did cure it.
Sorry could not help
He who laughs last thinks slowest.
|
|
|
|
|
We use System.Runtime.Marshal.Cantremembetthisbit.ReleaseComObject() which seems to clean up on the spot.
|
|
|
|
|
Hey guys sorry if this is a mind numbing question, but i am new to .net programming . I have begun to write a small little chat program that will 2 users to connect to each other and send text messages and files. I would like to display the ip address of the user in the window and i found this great article...
http://www.codeproject.com/csharp/network.asp
Unfortunatly I cant seem to access the DNS class. At the end of the article the author says to make sure you have the System.Net.dll file in your reference list, however after doing a search of my hard drive the file cannot be found (yes I have the framework installed).
Also could someone tell me the difference between "using namespace Whatever" and "using Whatever", Im familiar with namespaces, but not with just the plain ol using directive...
Thank you!
|
|
|
|
|
Ok, After searching around I found out that there is no System.Net.dll file as it is included in the System.dll file. However i still can not access the DNS class (in my projects dll). In my project I am using VB.net for creating the windows form and I am also using a dll written in managed c++. I am able to use the statement "Imports System.Net" in my VB code fine and i have access to the DNS class within ok, however i want access to it in my c++ dll and i am going crazy trying to figure it out.... here is a little sample of what i am trying...
<code>
#pragma once
#using <System.DLL> // This statment allows me to use...
// |
using namespace System; // \|/
using namespace System::Net; // this without getting compile errors however
// I still cant use the DNS class! help
// I need the C++ equivilent of VB's
// Imports System.Net
namespace SkillzLib
{
public __gc class NetConnect
{
private:
int portListen;
int portSend;
String* IPMe;
String* IPYou;
String* HostName;
public:
NetConnect();
void Connect();
void Disconnect();
void SetListen(int port) {portListen = port;}
void SetSend(int port) {portSend = port;}
void SetIPMe(String* address) {IPMe = address;}
void SetIPYou(String* address) {IPYou = address;}
int GetListen() {return portListen;}
int GetSend() {return portSend;}
String* GetIPMe() {return IPMe;}
String* GetIPYou() {return IPYou;}
};
}
</code>
|
|
|
|
|
Ok after some hair pulling and entering random code i did it! Why what i did works...I have no idea. I would REALLY appreciate it if someone could explain it to me. The article i referenced in the first post used c# (i think because it sure as hell wouldnt work in my c++ code). Here is what i got...
The article used...
using System;
using System.Net;
Then later had...
String strHostName = new String ("");
strHostName = DNS.GetHostName ();
I finally got it working in my c++ dll by using...
#using <System.DLL> //If i dont use it i get...
using namespace System;
using namespace System::Net; // error C2039: 'Net' : is not a member of 'System'
And later i used...
HostName = new String("");
HostName = Dns::GetHostName();
Now could someone please try and explain this. I though there was a class called DNS (all caps), but i had to resort to some Dns 'thing' (NOT all caps) with the :: notation to get at the GetHostName() function. This doesnt make sence to me since i though the .net framework was supposed to be language independent, yet it seems as if DNS and Dns are 2 different things.
Thanks in advance!
|
|
|
|
|
Hi,
you are using a case sensitive language, DNS and Dns are not the same thing.
System.Net.Dns is the correct name, not System.Net.DNS
GetHostName is a static method, that's why Dns::GetHostName(); is the proper syntax.
Hope this helps.
|
|
|
|
|
I have this problem:
I'm adding programatically user control to another user control (kind of container). After this added control is removed with
ctrl.Parent = null;
from its container, application won't close with standart close window (placed in upper right corner button) nor with ALT-F4 combination. I still can
close it with Application.Exit() and closing main window prior to it.
Any suggestions what is happening? I'm stuck...
Thnx for help in advance
Regards
|
|
|
|
|
Sounds like an infinite loop to me!
|
|
|
|
|
I don't think so. If there was infinite loop I would't be able to raise any events from menu items, I guess. Problem apears only when using standard window close methods (ALT-F4, or [x] button) and only after UserControl descendant remove.
Here's what i've found till now.
I've created new, very simple (empty) UserControl descendant. Added and removed programmaticaly from parent, and everything worked fine.
After that I've added new TextBox control to this new control, and...
problem returned.
I guess there's something with resources remove (maybe control disposing) but what? and how to manage with this? This is enigma to me
Regards
|
|
|
|
|
I get what you mean now, and it does not make sense why it should do this.
I have used user controls with code-behind adding user-controls dynamic removal just about any way you could think of. and have not seen this problem.
I am intrigued.
Do you have a code snippet to look at.
Steve
He who laughs last thinks slowest.
|
|
|
|
|
I'm not sure if this helps, but i had similar problem.
Try to remove focus from control before removing it..
When you remove control with focus application will not close correctly..
(It's bug in .Net)
i'm only pointer to myself
|
|
|
|
|
Thanks.
I've managed it couple hours ago, but my method is quite unspleasant IMHO.
I'm removing all child controls in this UserControl before removing it. It seems to be working since then.
Regards.
|
|
|
|
|
Does anyone know why all my event log entries include this statement?
For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
Better yet, does anyone know how to stop it?
Paul Watson wrote:
"At the end of the day it is what you produce that counts, not how many doctorates you have on the wall."
George Carlin wrote:
"Don't sweat the petty things, and don't pet the sweaty things."
Jörgen Sigvardsson wrote:
If the physicists find a universal theory describing the laws of universe, I'm sure the a**hole constant will be an integral part of that theory.
|
|
|
|
|
It seems to be a standard insert from the .NET message file. It's a real pain, because it stops you from putting your own support link in the message.
If you want to get rid of it, you will need to write your own message file, and register the source the hard way. Have a look at http://www.codeproject.com/useritems/EvtVwr.asp[^] for more info.
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
|
|
|
|
|
Hello all,
I use .NET deployment wizard to make an installer for my application. But during uninstall, the files which are created in the application folder, after installtion, are not removed. How can I make the uninstall remove the entire application directory?
BTW, can I set "Launch application" at the end of the installation process?
Thanks
Smitha
You are never given a wish without also being given the power to make it true. You may have to work for it, however.
-- Richard Bach
|
|
|
|
|
Does anyone know of a way to add a .NET control to an Access or VB6 form? I need to do this without editing the source code of the .NET control.
Any help would be greatly appreciated.
Thanks,
Steve
|
|
|
|
|
Okay. So maybe it is not so serious, but it appears to be a glaring mistake. This explains why group boxes, tab pages, check boxes, or any control cannot be made transparent by setting BackColor to Color.Transparent.
Get Anakrino[^] and take a look inside System.Windows.Forms.dll.
Navigate to System.Windows.Forms.Control::OnPaintBackground and see that it will call PaintBackground . Go to that method (still in Control class) and look at its code. Its code should start off with:
if (this.RenderTransparent)
this.PaintTransparentBackground(e, rectangle);
All the private property RenderTransparent does is check if the backcolor is Color.Transparent. Anyway, now we get to the core of the problem: PaintTransparentBackground . Here is its code:
internal void PaintTransparentBackground(PaintEventArgs e, Rectangle rectangle)
{
Graphics local0;
Control local1;
POINT local2;
PaintEventArgs local3;
GraphicsState local4;
int local5;
local0 = e.Graphics;
local1 = this.ParentInternal;
if (local1 != null)
{
local2 = new POINT();
local2.y = (local5 = 0);
local2.x = local5;
UnsafeNativeMethods.MapWindowPoints(new HandleRef(this, this.Handle), new HandleRef(local1, local1.Handle), local2, 1);
rectangle.Offset(local2.x, local2.y);
local3 = new PaintEventArgs(local0, rectangle);
local4 = local0.Save();
try
{
local0.TranslateTransform((float) -local2.x, (float) -local2.y);
this.InvokePaintBackground(local1, local3);
local0.Restore(local4);
local4 = local0.Save();
local0.TranslateTransform((float) -local2.x, (float) -local2.y);
this.InvokePaint(local1, local3);
}
finally
{
local0.Restore(local4);
}
}
local0.FillRectangle(SystemBrushes.Control, rectangle);
}
Is this a true bug, or am I missing something?
Mike_V
Tech Support: "Do you have any windows open?"
Customer: "Are you crazy woman, it's twenty below outside..."
|
|
|
|