|
ma se wrote: Will this still be the case with .NET 3.5? Where can I found out what new features they are planning to add with .NET 3.5?
Yes, the .NET 3.5 release contains the following:
|
|
|
|
|
You can always check your c:\windows\microsoft.net\framework directory to see if you have a 3.** directory. That is where the framework files are stored.
Ben
|
|
|
|
|
Hi Ben,
Just a quick question on Enterprise Library April 2007. If 3.0 is installed, it will install all the necessary projects for 3.0? Is there a way that I can check it?
Have you started working on .NET 3.5?? Is there anything available for download. Do you know if it is going to be like 3.0 where it won't be necessarily required to use it if you have 2.0?? 3.0 is basically for workflows, right?
Thanks
ma se
|
|
|
|
|
|
Actually, you don't need to download orcas for this. You can download the different packs that you need from http://www.netfx3.com/[^]. Take a look at the areas on the right, e.g. Windows Presentation Foundation.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
problem while deserialing image
how can i send image through msmq and retrive it
|
|
|
|
|
What kind of image? How is it represented in your code?
|
|
|
|
|
how does one change the properties of an attribute at run time. The quasi-code at the end hereof is an attempt to show what I want to do.
It seems that even tho member's can change the value of their own and other members attributes (via the attributes property set accessors), when another member gets that attribute the attribute's state variables revert to their compile (load) time value. If you can follow my code, the interrogation of StringProperty's myStateAttribute in the SomeMethod code always yields a value of myStates.InitialValue in the State property of the myStateAttribute attached to the StringProperty, even tho it gets changed to InError or CurrentValue in the StringProperty set accessor.
In this code the attributes content is pertinent to the runtime state of the member instance to which it's applied, i.e. it is <u>dynamic</u> metadata rather than static metadata such as DisplayName etc.
<code>
enum myStates{InitialValue, InError, HasChanged, CurrentValue,}
class myStateAttribute : Attribute {
public myStates State {get this.theState;}set{this.theState=value;}
public myStateAttribute() {
this.State = myStates.InitialValue;
}
private myStates theState;
}
...
[myState()]
string StringProperty {
get {return this.theStringProperty)
set (
{
PropertyInfo _p = this.GetType().GetProperty(_n, BindingFlags....
object[] _o = _p.GetProperty(typeof(myStateAttribute);
myStateAttribute _a;
if (_o.Length == 1 && _o is myStateAttribute){
_a = (myStateAttribute) _o;
else
throw new ApplicationException("whoops, forgot the myState attribute");
if (value!=null &&
value.Length < Properties.Settings.MinStringSize ||
value.Length > Properties.Settings.maxStringSize) {
string _n = new StackTrace().GetFrame(0).GetMethod().Name.SubString(4);
_a.State = myStates.InError;
}
else
a.State = myStates.CurrentValue;
}
}
}
.......
private whatever SomeMethod()
{
...
data.PropertyString = someOtherString;
interrogate PropertyString's myStateAttribute and act accordingly
}
</code>
|
|
|
|
|
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.
|
|
|
|