|
Unfortunately, you can't change the value of an attribute at runtime and when you think about it this makes sense. I wrestled with this problem for a while, and came to realise that allowing you to change attributes could end up opening your system to a whole world of pain.
Suppose you have designed an application that uses attributes to control what the maximum size of a field is in a database, so you don't end up trying to post more data into that field than it can really hold. Now, if you change the value of this attribute you could end up breaking the application by allowing more characters than the field holds.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Whilst not the answer I might have been looking for, it does confirm that I hadn't missed the b... obvious.
Not sure that I agree with the rationale. If you don't want the value of a property in an attribute to change, then simply omit the set accessor.
Thanks for your response - Rgds PhilD
|
|
|
|
|
Hi,
Following are the settings in my machine.config file
[tag] section name="defaultProxy" type="System.Net.Configuration.DefaultProxyHandler, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" [/endoftag]
I want to know what I need to do in order to bring the proxy server settings so that my client application build on .NET 1.1 framework runs fine. Internet explorer has been configured to used the automatic configuration script.
PS : Note that [tag] and [eoftag] are just placeholders for XML constructs.
Thanks,
Tom
|
|
|
|
|
Have you resolved this?
"Any sort of work in VB6 is bound to provide several WTF moments." - Christian Graus
|
|
|
|
|
Hi,
Following are the settings in my machine.config file
[tag] section name="defaultProxy" type="System.Net.Configuration.DefaultProxyHandler, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" [/eoftag]
I want to know what I need to do in order to bring the proxy server settings so that my client application build on .NET 1.1 framework runs fine. Internet explorer has been configured to used the automatic configuration script.
PS : Note that [tag] and [eoftag] are just placeholders for XML constructs.
Thanks,
Tom
|
|
|
|
|
hi
i am new to .NET framework. i need some books for WinCE.NET. can anyone help???
thanks
|
|
|
|
|
hi,
try these:
http://www.microsoft.com/mspress/books/6535.aspx
http://www.codeproject.com/netcf/netcfgetstarted.asp
blumen
|
|
|
|
|
Hi everyone.
Having just finished a major data project using typed datasets and ADO.NET, a Java co-worker has been mocking me for all my 'dependent' code and manual hard work I had to do.
He's flying Hibernate in my face like it's the Good Year blimp.
So, last night I did a little research thinking about an upcoming project, and wondering about using some OR/M (ORM ... OR Mapping ... pick your acronym) tools, and I found a plethora.
So I'm curious as to who's using what, and why.
Is nHibernate the defacto standard? While I know that Hibernate has a huge following in the Java community, I couldn't find much literature about nHibernate post 2004 (and there's been a couple of releases since then).
Also, in reading up, it looks like there's a fair amount of manual pluming code required for these tools. Do people use MyGenerator et al to bridge this gap?
So -- what's your choice?
Marty Pitt
|
|
|
|
|
Well, depending on what I want to do I use either DevExpress eXpress Persistent Objects (XPO) or CastleProject's ActiveRecord. Both are very good at what they do but they do require a bit of a mindshift.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
I have a laptop streaming video from a web-base camera. I have 2 options: a Verizon wireless modem on the PCMCIA slot, and a Satellite modem on a USB slot. My C# code does all my controlling I need EXCEPT how do I switch between the two comms options - both automatically and manually?
tks xlthim
|
|
|
|
|
Hey,
I'm trying to find a dialogbox in Visual Studio 2005.
Its a box that appears normally after installation. It gives you the option to setup default layout. And selection of either C# settings, or VB settings or C++ settings.
Anyone know where I can find that?
I'm stuck with VB layout, and I want to change it back.
Mark
|
|
|
|
|
|
Go to Tools->Import and Export Settings, and you will see a Reset all Settings option. Click next etc. and after saving your current settings or not, click next again and you get to choose which settings to set.
|
|
|
|
|
Hi all,
I'm using the reportviewer part of visual studio to display sales data. This works fine. Now I need to change the contents of textboxes according to different languages. How can I do that through the program? creating different rdlc files for each language seems a little awkward!
for example change the contents of the reportViewer1 textbox5 to "NUMBER"
rgds
Frank
|
|
|
|
|
Hi guys,
I've made a proxy web app, and it's working fine. However, i'm getting some odd behaviour when occasionaly a 302 will generate two GET requests on the client side. The first GET executes fine, but the second GET completes the process and failes with a win-32 status code of 64 - "The specified network name is no longer available." which i am assuming means that the response has already been terminated.
My question is this, has anyone encountered this problem before? And if so, is there any way to detect this duplicate request and abort it? The handling for the second GET could make things quite messy.
Cheers
Tris
-------------------------------
Carrier Bags - 21st Century Tumbleweed.
|
|
|
|
|
We developed an application in VB.NET. When we install the application on some machines, the buttons on the form disappear. The grid alignment gets messed up. We are using component one flexgrids for the grid control. Note that this problem occurs only on two machines. It works fine for the rest. I also have the system information for one of the machine on which this app is giving problems. If any one is interested to take a look, I can provide the system information too, but the info file size is huge. Has anyone encountered a similar issue?
Here is the image
http://img89.imageshack.us/my.php?image=vbnetproblemwn7.png[^]
And the direct link
http://img89.imageshack.us/img89/7030/vbnetproblemwn7.png[^]
|
|
|
|
|
I have a very basic remoting app, as soon as I try to call a method on a remote object, I get the following error:
"An attempt was made to access a socket in a way forbidden by its access permissions"
This same code works perfectly fine on Windows XP Professional. I am running the VisualStudio instance with Vista Admin privelages, and I've even created exceptions for it in the firewall, and its still not working.
Can anyone advise on this? I have had a lot of trouble with remoting and I'm about to give up and just use raw sockets.
UPDATE:
I just tried allowing all outbound connections in the Vista firewall and the error message has changed to the following:
"No connection could be made because the target machine actively refused it"
Which suggests I would need to allow all inbound.
The thing is I explicitely gave the two apps (client and server) permission to accept connections but it seems they are being ignored.
|
|
|
|
|
I am using the .NET binding objects for my C# application. It works fine when the database is on the same machine, however when the database is on another machine, there is a delay it startup time. It takes about 20 seconds for the app to start up. Any ideas?
|
|
|
|
|
Some times during the execution of C#.NET programs I encounter this error which states "Object Reference Not set to an instance of object" and then the program terminates if there is no exception handler code. I need to know, what is the meaning of this exception??
|
|
|
|
|
gladiatron wrote: Some times during the execution of C#.NET programs I encounter this error which states "Object Reference Not set to an instance of object" and then the program terminates if there is no exception handler code. I need to know, what is the meaning of this exception??
I think the error message is self explanatory. You have an object reference (a variable, if you prefer) that is set to null (not an instance of an object).
While null variables are perfectly acceptable in and of themselves, if you attempt to use them (e.g. call a method on them) it will fail.
|
|
|
|
|
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
|
|
|
|