|
Thankx a lot for clearing my doubt
|
|
|
|
|
string s = null;
string d = s.ToLower();
This will compile, but generate that error.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Set your debugger to break on the exception. It will then break on the line that causes the exception instead of the exception being caught at top level by the debugger, where it has no option but to terminate. You can do this by selecting the Debug->Exceptions menu item. You get a dialogue that says, "Break when exception is...", then expand CLR Exceptions and find System.NullReferenceException. Check the flag for Thrown. The debugger will now break when the exception is thrown, and not only when it isn't handled.
|
|
|
|
|
I encountered the same one when I forgot to allocate the memory to a variable.
if you are using an object from a class do not forget the new(); or gcnew(); keyword.
|
|
|
|
|
Hello,
I am in search of the .NET Framework 1.x and 2.0 and 3.0 class
library maps and ADO.NET class library maps to hang/pin to my cube at
work and also at home. I believe that helps understand more about the
Framework and ADO.NET objects and class libraries. Also if some thing
is presented in a pictorial (grapihical) representation I guess I can
learn more than reading whole lot of stuff.
So is there a place on the net or any company that offers this kind of
to buy or down load?
Any inputs or help me finding on this is greately appreciated.
Thanks in advance,
-L
|
|
|
|
|
Having problems connecting to a service which is supposed to by available. Can someone give some advice. Here is what I did:
1. Took existing "working" WSDL file from client and created .NET class using WSDL.exe
2. Within this new class
[this.Url = "http://204.131.177.150:80/soap/authRpc" ].
CTRL-Click on this link brings up XML exception below - should I expect this?
================= Exception =============================
- <soap-env:envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xmlns:xsd="http://www.w3.org/1999/XMLSchema">
- <soap-env:body>
- <soap-env:fault>
<faultcode>SOAP-ENV:Server
<faultstring>[ISS.0088.9112] An Exception was thrown in the server
<faultactor>http://schemas.xmlsoap.org/soap/actor/next/
- <detail xmlns:webm="http://www.webMethods.com/2001/10/soap/encoding">
- <webm:exception>
<webm:classname>java.lang.NullPointerException
<webm:message xml:lang="">
======================== END ==================================
3. Tried to use a function within this class but got a "The request failed with HTTP status 403: Service Error." message back from the request.
Questions:
A. Did I go through the process correctly?
B. Could this be a simple permissions thing at the server?
C. Is it an issue how the function was called? Format issues...
D. How do you resolve HTTP error?
Thanks
|
|
|
|
|
If this is a .net web service there should be a asmx file. So if you know what the url is it should have a file with asmx. If you put that url in the add web service it should fine it. If it does not then I would guess it is either not a .net web service or it is not running.
Hope that helps.
Ben
|
|
|
|
|
ola!
I need your help !
I created a Report with one table. On This Table i create two Filters ( Name="Meier" und Age>12).
Visual Studio combine these Filters with AND, but i want combine with OR. But now i cant change this, because the And/Or Dropdown ist grey. How can i change this!
Many Many Tnx!
teLLy
|
|
|
|
|
hi friends,
i have been developing an application in which i have to store a list of name-value pairs in a collection object.
there are many objects in collection namespace for this task.
but surprisingly, while using them, i found that every object returns a value(s) when an associated key is supplied.
but my requirement is such that i want the key as well when corresponding value is supplied.
is anyone aware of any object in collection namespace which has this ability?
please inform me if it is possible.
thanks.
Varun
|
|
|
|
|
Will the values be unique?
Regards,
Arun Kumar.A
|
|
|
|
|
I believe what you are looking for is:
int theKey;
object theValue;
foreach (DictionaryEntry entry in myCollection)
{
theKey = Convert.ToInt32(entry.Key);
theValue = entry.Value; // This can be cast to a type of object
...
// More processing goes here
...
}
This works on Hashtable, SortedList, and those types of collections.
Phil
|
|
|
|
|
Hi,
if your values are unique, you can add a inverse hash table to the normal hash table,
where you add (value,key) instead of (key,value).
|
|
|
|
|
|
Hi all,
I am currently downloading the "Microsoft® Windows® Software Development Kit for Windows Vista™ and .NET Framework 3.0 Runtime Components". It's a huge 1.15GB download.
What I want to know is: can I still use Visual Studio 2005 to work with .NET 3.0 or do I have to install a special module? I have Windows XP Professional with SP2. I suppose that everything needed to work with .NET 3.0 is included somewhere in those 1.15GB
Any special stuff I need to be aware of to jump from 2.0 to 3.0?
Any insight is greatly appreciated.
Thanks,
Talal
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning."
--Rich Cook
|
|
|
|
|
Talal Sultan wrote: Microsoft® Windows® Software Development Kit for Windows Vista™ and .NET Framework 3.0 Runtime Components
As the name suggests, the Windows SDK is meant for Vista. You can install .NET 3.0 on XP though. Note however that runtime components are not for development, for that you need to install additional components (like WF extensions for VS etc.).
Talal Sultan wrote: Any special stuff I need to be aware of to jump from 2.0 to 3.0?
A somewhat common misunderstanding. You don't jump from 2.0 to 3.0. The name is misleading - 3.0 is basically still 2.0, but with some enhancements (WF, WCF, WPF, Cardspace). So learning these technologies will get you teh knowledge of .NET 3.0.
|
|
|
|
|
Thanks for the clarifications. True, I have heard that 3.0 is not really a new framework but just the 2.0 plus some new things in it. As I have read, it was called WinFX but was renamed to 3.0, which, personally, I think is not a good idea
So if I got it right, these enhancements need the equivalent modules in VS 2005 so that I be able to program with them, right? You said that there are WF extensions for VS which are, of course, for the WF enhancement you mentionned later; so I am assuming that there are also WCF extensions for VS and WPF and Cardspace. Is is a right assumption?
I'll check the download I got and see if those extensions are already available in it.
Thanks again
Cheers,
Talal
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning."
--Rich Cook
|
|
|
|
|
|
szukuro wrote: The name is misleading - 3.0 is basically still 2.0, but with some enhancements
...and to think that WinFX was renamed to .NET 3.0 in order to "reduce confusion"
Kevin
|
|
|
|
|
|
Hello. I am designing an application that will make use of plugins (.net assemblies loaded at runtime containing classes implemented from a common interface). The issue is, i would like to be able to put these DLLs in a folder other than the application's folder, so it could be in a folder like \Plugins\ or something. It works fine sometimes, the problem is that when a plugin references a local assembly, it tries to find it in the application's folder and not the plugin's folder. For instance, if one of the plugins is loading XLS files and I have an XLS file reader class in a seperate assembly along with the plugin, I will get an error since the application is trying to load the assembly from its location and not the plugin's location. Is there any way to get around this without dumping my assemblies in the GAC?
-- Steven Hunt
|
|
|
|
|
Hi Steven,
I'm assuming that the Plugins folder is a subdirectory of the executable's folder. In that case, you should be able to use the Probing element in the app.config file to have the runtime look for assemblies in that folder.
Also, you can read up on the whole process: How the Runtime Locates Assemblies
Hope that helps,
Eugene
|
|
|
|
|
Thanks for the help. I also discovered Assembly.LoadFrom(string location), which also looks promising.
-- Steven Hunt
|
|
|
|
|
I have an issue with my MDI application. When I drag my MDI child form outside the MDI Parent client area, scroll bars appear on the MDI parent form. How can i get rid of these scroll bars.(what we really want is, that scroll bars should never appear on the MDI Parent form), setting AutoScroll = false; HScroll = false; VScroll = false; does'nt work, scroll bars still appear.
The default Windows behaviour for MDI applications is that they never have scroll bars on MDI Parent.
thanks,
|
|
|
|
|
sarah_malik wrote: The default Windows behaviour for MDI applications is that they never have scroll bars on MDI Parent
Obviously, this is an incorrect assumption since you're not using a Win32 control.
The MDI Child forms get rendered by a hidden, but in plain sight, control on the MDI Parent form. This is the MdiClient control. There is no property or method to turn off the scroll bars in the MdiClient control.
What you were changing were the properties of the MdiParent form, not the MdiClient control.
Every method I can think of for customizing the MdiClient control requires you to create your own version of the control, or process the window messages going to the control and alter them to keep the child windows from exceeding the boundries of the display area.
Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic 2006, 2007
|
|
|
|
|
Thanks Dave
|
|
|
|