|
I guess the idea behind the suggestion is that users of your class won't be expecting a simple property assignment to throw an exception.
If it's your own codebase, I guess it's fine then. Or, you can always change it to a method.
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
I am having a bit of a time trying to figure out which assemblies my application would like in order to run.
Actually, I am getting a CLR Debugging Services exception when I try to start the app. I know this happens when I am missing a referenced assembly. So I check the References -all of the DLL's listed there are contained in the GAC or in the application directory. The app of course runs perfectly on my development machine.
So I guess I have two questions.
1. Is there a way to capture in a log file which assembly the app died trying to load? The default "there was an error" message is just about useless.
2. I have looked in the .NET Config - Applications and checked the "Assembly Dependencies" listed under my app when I add it. There are several assemblies that are listed as being required multiple times (i.e. several versions???). I have no idea why this is happening. On my Dev. machine, these are listed only once with one single version. On the other "clean" machine (no VS, etc.) the dependencies show up multiple times - same executable.
How do I actually figure out what is happening here? Any insight on this would be greatly apprecitated.
thanks
khariV
|
|
|
|
|
This might help.
So might this.
And, if those don't help, try Reflector.
"we must lose precision to make significant statements about complex systems."
-deKorvin on uncertainty
|
|
|
|
|
Hi,
My name is Liran, Im working on a project that the server is written in java technology (APACHE TOMCAT) and we considering now to turn the client to windows application instead of web. Our main option is to choose .net c# as our client technology and the connection to the server will be by web services on the server side (the webservices is written in java).
I already made a prototype to check it and it worked really good.
Im trying to get some information about the risks that i need to take into consideration if i choose this option. so if someone already dealt with it ill really appriciate your help.
Best regards,
Liran
|
|
|
|
|
Dear all,
The function System.Windows.Forms.Control.GetChildAtPoint(Point pt)
find control reference to the Control's Client Rectangle.
However, I am looking for a Control that is out of screen.
i.e. out of the Client Rectangle, but within the Display Rectangle.
Is there any method for me to get that Control by a Coordinate point?
Many Thanks.
|
|
|
|
|
Are you looking to get a control that sits on a different Form?
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
It is on the same form.
The control hierarchy is like this:
Form
|-Groupbox A
|---TextBox A
|
|-Groupbox B
|---TextBox B
However, the size of the Form can only show the Groupbox A. I have to scroll down in order to show another groupbox.
Now I have the coordinate of Groupbox B and TextBox B, can I get the control TextBox B by its coordinate point when the screen is still showing GroupBox A???
Many Thanks!!
|
|
|
|
|
You'll just have to try it. There is a chance that it might not work because it's not visible, and therefore, not being drawn.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hello,
I have downloaded the .net framework 2.0 sdk and installed it. everything is working fine, except I can not display the included documentation.
Thanks for your help
rudi
|
|
|
|
|
Why don't you download the Visual studio express editions [^]including the MSDN library express ?
------------------------------ "The Soapbox has been so ..."
|
|
|
|
|
Thanks for your advice, but I don't like to install visal studio even it is express on my pc. Do you know any other solution? Thanks
rudi
|
|
|
|
|
Dont install it, just download it and install only the Library and you will have the documentation without using the vs.
------------------------------ "The Soapbox has been so ..."
|
|
|
|
|
i got a problem about WMI.
i want use wmi to config my network adapter, such as ip address, subnet mask, etc. and i found some methods of Win32_NetworkAdapterConfiguration class can do this, but they are all enable method, for example, EnableDNS ,it can enable DNS setting and specify dns search order.
THE PROBLEM is how can i DISABLE DNS search, namely , obtain DNS server automatically.
|
|
|
|
|
Call EnableDHCP . It sets the adapter to get all of its settings, including DNS stuff, from the DHCP server.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
thx a lot...
why i cannot find that ;P
|
|
|
|
|
Is it possible to make a project use the 1.1 framework instead of 2.0?
Since most people have 1.1 installed by now, but nearly noone has 2.0 I would still like to develop for 1.1 but use VS2005.
|
|
|
|
|
Nope. 2005 uses the 2.0 framework only.
Just install both. They run fine together.
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.
My Blog[^]
|
|
|
|
|
SharpDevelop 2.0[^] supports developing for both 1.1 and 2.0.
I think you could use a similar way (a custom MSBuild target file) to do the same for Visual Studio 2005.
Unfortunately just changing CscToolPath is not enough because VS will try to always reference the 2.0 Framework libraries.
|
|
|
|
|
I have project dependent on "SSPI.h".
However, during the conversion to the .NET 2.0 Framework,
when I try to complie "SSPI.h", I get the following error.
error C2440: '=' : cannot convert from '__const_Char_ptr' to 'wchar_t __pin *'
Following is the piece of code which gives error:
wchar_t __pin* pwszServerPrincipalName = NULL;
if ((credential->SecurityPackage == Credential::Package::Kerberos) || (credential->SecurityPackage == Credential::Package::Negotiate))
pwszServerPrincipalName = PtrToStringChars(serverPrincipalName);
I tried out by changing Project properties->C/C++->Language->Treat wchar_t as BuiltInType to "No (/Zc:wchar_t-)" and comiling again. But still the problem is there.
Any suggestions how to proceed.
Same code works properly with vs.net 2003
|
|
|
|
|
Hello everybody.
I'm a developer of Autocad applications and i have a problem.
i have installed windows xp x64 os on a 64 bit machine and i can't install on it visual studio.net 2002 so i've installed 2003 version.
but with 2003 libraries there are some problems with autocad 2004 and later.
is there a way to substitute in visual studio 2003 libraries with 2002 ones without compromising the entire environment?
if yes how can i precisely do?
thanks to everybody,
Alan
|
|
|
|
|
One thing I was asked recently was "why don't we use ngen.exe for all applications if it makes them load faster? Are there any overheads?".
My response was that it may be cpu-specific, and therefore not very protable.
Is this the case, or are there any other reasons for not using ngen.exe for every application we build?
|
|
|
|
|
Any potential bugs in the framework that would otherwise be fixed by a patch will be hardcoded into your executable.
Saving the JITed code along with the original IL and only reJITing of the framework version was updated would be a nice option. It's not like diskspace is major issue in most cases now.
|
|
|
|
|
The code that NGen generates is VERY processor specific, right down to support for Intel's little math bug a few years ago. The code that's generated will work on the processor that NGen was run on, but not others. Try running the code generated for a hyper-threaded P4 on an older AMD...
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
If you really want to, you can add code in an Installer class to compile the application using ngen on each target machine during installation.
You may not see that much improvement though. If your application is the first (or only) active application that requires the CLR, a lengthy startup delay will come from loading the CLR itself.
|
|
|
|
|
Hi,
I am facing one problem while connecting my project to connecting with visual source safe(VSS).
I am working with Visual studio 2005 beta 2 and my project database is on some another pc which is in LAN.Till date it's working fine without any problem but from yesterday i am getting problem i don't reason.
Problem is that when i am tring to connect from my project to visual source safe database which is in another pc(in LAN),it directly ask me for visual source safe Internet database and asking for DNS and folder name in internet,which is not true becoz my actual vss database is in LAN.
I had reinstall vs 2005 beta 2 again but it is not solved.I am thinking that there must be some setting in vss administration to resolve this problem.
so any body is knowing solution about this type of problem?
if yes then pls. help me out.
thanks.
regards,
Montu3377
|
|
|
|