I have tables named Events and Log. The Events table comprises of ID, Event description and type. And, the Log contains LogID, EventID(refers to ID from Event table), and timstamp.
I am using Entities framework. While making an entry in the log table, i mention the event id as the number corresponding to the log event from the Event ta...
I just upgraded my Windows Forms project from .NET 3.0 to .NET 3.5 and the upgrade added the following to my app.config file:
<system.web>
<membership defaultProvider="ClientAuthenticationMembershipProvider">
<providers>
<add name="ClientAuthenticationMembershipProvider" type="System.Web.ClientServices.Providers.ClientFormsAuthe...
I want to disable the Microsoft.VisualStudio.TestTools.TestTypes.Unit.TestFailedException when I am debugging my unit tests. The problem is when I open the Exceptions dialog in Visual Studio I can't find this Exception. Does anyone know how to stop this exception from being thrown?
...
Can we add webservice(.asmx) to window application.When i go through File->New Project-> i cant see webservice template for addind.
But in File->New Web Site(for window application) we can easily add webservice
But when you go through this link codeproject.com/KB/webservices/… ,,there they are adding in window application side means Fil...
Hello. What are their differences? What can you do with one that you cannot with another?
Thanks
...
private Arraylist split(byte[] filebytes, int range)
{
}
how to split this filebytes by given range i.e if range is 100 it
should split the filebytes by 100kb and put this into the arraylist untill the eof.
i have .net framework 1.1 only... thanks in advance.
...
How can I monitor instant messages received on gtalk using .NET? Basically, I need to run a program upon receiving the arguments as instant message from a particular google id and pass the result back to the sender. Is it possible to do it?
EDIT: I can have gtalk running on both machines (sort of client and server).
...
For ViewData, rather than using strings as the key, I'm using enums. I currently have one big list right now that can be accessed from anywhere. Some enums are used across multiple Controller/View pairs. Is there a better way to categorize these enums rather than just an ever growing list?
I don't like the hard coded strings that a...
Hello,
I have a function Process(data, f) where data is a normal parameter and f is a function needed to process the data (passed as a delegate to Process)
The signature of f is int f(a,b,c), with a, b, c supplied by Process when it calls the delegate.
Up until here, standard delegate usage.
Now, I have a special but common case wher...
I'm currently architecting a .NET 3.5 application for a customer with a preference for Single Sign-On from Windows, but whom is running in a Novell Netware 6 environment (WinXP desktops).
Am I correct in thinking that this rules out the use of Integrated Windows Authentication inside a .NET application as a way of avoiding prompting the...
I'm trying to do this with no luck so far.
I'm listening for the WM_SETCURSOR messages and setting the cursor there, it works most times, but not always. I've seen two other cases that I need to catch:
WM_PAINT: At least after a WM_LBUTTONDOWN the cursor is painted somehow without calling WM_SETCURSOR...
WM_CAPTURECHANGED: Happening s...
I have two .Net applications running on client machine.One is IMSOperations and other is IMSInvoice.Both are windows forms application using C#.
What happens is when both of these applications are running,after some time IMSOperations gets automatically closed.
What i tried is to find reason of closing by subscribing to main form's For...
I need to convert an existing Web Service (done on .Net 2.0) which runs on SOAP/HTTP to run on UDP.
I found a ton of resources on web on explaining why and how I should go about doing it. But all of them too general.
Can someone point me to a example/resource of some sort specific to .Net?
...
I am using webrequest to fetch some image data. The url may be invaild sometime. In case of invalid URL, begingetresponse is taking time equals to timeout period. Also the control become unresponsive during that period. In other word the async callback is not working asynchronously. Is this expected behaviour?
try
...
Sometimes Microsoft's exception messages are infuriatingly unhelpful. I have created a nice little MVC method to render text. The method body is below. When it reaches the "DrawString" method, I get an exception thrown saying "Parameter is not valid".
Note that the font, as best I can tell is constructed properly (I"m just using Arial a...
I am trying to deserialize an Atom xml generated by one of the internal systems. However, when I try:
public static MyType FromXml(string xml)
{
XmlSerializer serializer = new XmlSerializer(typeof(MyType ));
return (MyType) serializer.Deserialize(new StringReader(xml));
}
it throws an exception on the defin...
I have a dialog based MFC application through which I have to call a .NET executable.
My question are:
How will the MFC application know that the .NET executable is closed?
if suppose a .Net executable process some information and want to convey the output to the MFC application, how can this be achieved.
Please help!!
...
I am from J2EE background and recently started looking into .Net. I am wondering if .Net have Struts, JSF like MVC framework available?
...
Hello all,
I am developing in C#.net and I believe I need to use generics for the problem I have however I don’t know where to start.
Here are the steps I need to do:
Get ID from user – DONE
Query database table using ID - DONE
Pull back one row - DONE
Create a object type dependant on ID
Populate object dependant on type
Differe...
I'd like to initialize an sd card with fat16 file systems.
Assuming that I have my sd reader on drive G: how I can easily format it to fat 16?
UPDATE:
To clarify, I'd like to do that on .net platform using C# in a way that I can detect errors and that would work on windows XP and above.
...