Should I recompile the libraries for .NET 4.0?
We started to develop a new application using .NET 4.0 Beta 2. Should we recompile our existing libraries targeting .NET 4.0 framework even if they do not use new features? ...
We started to develop a new application using .NET 4.0 Beta 2. Should we recompile our existing libraries targeting .NET 4.0 framework even if they do not use new features? ...
i have a datagridview in my C# program.after i bind it to a datasource , i want to replace some value in a specific column in automatically generated rows.for example i have columns in which have 0 or 1 values , and i want to replace true or false . what should i do ? ...
Can anyone tell me if components made on .net 3.5 can work in .net 4.0, there are a number of components in my software that will have to be developed using .net 3.5, but the whole application must be based on wpf 4, which is on the .net 4 framework. ...
I have worked with code which had NUnit test written. But, I have never worked with mocking frameworks. What are they? I understand dependency injection and how it helps to improve the testability. I mean all dependencies can be mocked while unit testing. But, then why do we need mocking frameworks? Can't we simply create mock objects an...
Lets say i have to orchestrate a synchronization algorithm in .net 3.5 SP1 and any of the synchronization primitives listed in the title fit perfectly for the task. From a performance perspective, is any of those more performant than the other? I ask this because I have been coding for a while now, but without proper knowledge on the s...
I've got a WCF intranet application I'm working on that will have 150 clients controlled/monitored by a control application. Is it kosher to create a self-signed certificate and install this same certificate on each of the 150 clients? I want security between the client and server but will not have authentication support from a domain ...
Why are we using the machine.config file to store connection string although we have web.config file? Any help would be appreciated. ...
How do I force the Visual Studio compiler to generate an error when a required method is not being called in the constructor of a child class? Like when you edit the form designer code, the compiler complains when InitializeComponent()isn't the first call in the constructor of a form. Is this even possible in VB.NET? ...
hey. friends i dont know this question is really asked before or not ? but i need to know about .net cache and its limitation in case of web farms and not in case of web farms.. ? ...
One of our applications recently got installed in a system that is tightly locked down. On startup, the application tries to modify the registry at HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\AutoDetect. There are no known references to that location in the source code. In fact the application in question sh...
I've got a C# application that I'm trying to push out to a distributed network. The application works fine locally (as always), but when I push it out to the network, it doesn't work because it can't write to the C:\Windows\Temp directory. I'm not actually calling any code that writes to that directory, but I imagine it is caused by my...
I need to be able to extract a string between 2 tags for example: "00002" from "morenonxmldata<tag1>0002</tag1>morenonxmldata" In using C# and .NET 3.5. ...
There is a similar question targeting the Java VM but I haven't found a question for .net (please close and mark as duplicate if I was missing something). So - is it possible without nasty unmanaged interop? And with crashing I mean a real "xxx.exe has stopped working" not a StackOverflow- or OutOfMemoryException. I think it is not pos...
I have an app where I need to dynamically choose an SQLDataSource for a GridView so I can use 1 of 2 stored procedures, depending on who is logged into the system. My problem is that I am using logic like this, in the button click... If Session("SiteType") = "Type1" Then GridView1.DataSourceID = "SqlDataSource2" Else GridV...
What is the right way to do this in a datarepeater control? <asp:Repeater ID="Repeater1" runat="server"> <ItemTemplate> <strong><%= Eval("FullName") %></strong><br /> <p> <%= Eval("Summary") %> </p> </ItemTemplate> ...
I often find myself remembering the name of a class that I want to use, but not remembering the containing namespace. Apart from searching the web, i wonder if a good method exists for looking this up. ...
I am using HttpWebRequest to download a remote file, however i get a 504 error. I pasted the url in firefox and the first and 3rd try it took 16seconds, the 2nd nothing happened (it looked like it timed out). How do i decrease the 504 error? Would changing HttpWebRequest timeout help? should i attempt to retry the file (lets say 3 times...
I recently applied for a developer position and the director there asked me to send some samples of code. How should I approach this? Once, I sent a sample of code that I wrote for myself to a company and they didn't get back. This time, I want to be prepared and send appropriate samples. I want to know what I should send them, create ...
Normally when I override the OnPaint method, I create pens and brushes, etc inside it and then dispose them. I also read somewhere that instead of recreating these pens and brushes, etc to create them once as static members, and then dispose them once when the form is closed, etc. Is this a better practice? Is there a better way for t...
I have a few .NET apps which use the HttpWebRequest. My gut says i can create a config or manifest file and set the proxy data in there and .NET will automatically load it. But i dont know if that exist and if my gut is wrong. Is there a way to set the proxy data for my apps? Can i do the same for my one app that uses the ie browser con...