I'm using ASP.NET MVC 1.0 along with the Oracle ASP.NET Membership Providers. I'm running into a case sensitivity problem.
When a user logs into the system, it appears that the Membership provider sets the User.Identity.Name value to whatever the user typed in. That is, if I created the user as Foo and the user logs in as fOo then eve...
To Set up the scenario, Lets say I have 100000 rows in the table and it grows more and more each day. This queue currently takes over 2 seconds to retrieve only about 40 or 50 rows from the table.
The data in this table are grouped by DateTime references so I start off grouping all the data by DateTime because this is the only equal va...
Hi,
I have an interface IFileSystemStructureEvaluator with two concrete implementations: NtfsFileSystemStructureEvaluator and FtpFileSystemStructureEvaluator.
I want to be able to request the appropriate IFileSystemStructureEvaluator depending on whether the Uri that is passed to the constructor is a file uri of an FTP uri.
How can I ...
Ok I have a generic interface
public IConfigurationValidator<T>
{
void Validate();
}
a class that implements it:
public class SMTPServerValidator : IConfigurationValidator<string>
{
public void Validate(string value)
{
if (string.IsNullOrEmpty(value))
{
throw new Exceptio...
I need to get three objects out of a function, my instinct is to create a new type to return the three refs. Or if the refs were the same type I could use an array. However pass-by-ref is easier:
private void Mutate_AddNode_GetGenes(ref NeuronGene newNeuronGene, ref ConnectionGene newConnectionGene1, ref ConnectionGene newConne...
Hello,
I made a game in VB .Net that uses tcp and sends messages back and forth.
What is happening is, every so often, the message cannot be sent quickly enough, so then the TCPObj.connect() method goes into a loop, until it reaches the timeout and then spits out an error. Most of the time though, it never gets to the error, my applica...
I have written a large C# app with many methods in many classes.
I'm trying to keep a log of what gets called and how often during my development. (I keep a record in a DB)
Every method is padded with the following calls:
void myMethod()
{
log(entering,args[]);
log(exiting,args[]);
}
Since I want to do this for all my methods, is t...
Hello,
This is the scenario for asking this question:
I'm doing some Proof of Concepts with Crystal Reports, and noticed that images are added as OLE objects. I'm pretty sure this is a downside against other reporting tools like ActiveReports or XtraReports that uses other means to do the same.
Let me know if I didn't state the proble...
Duplicate: this is an exact duplicate "using controls from different vendors in one application", by the same author. Please do not answer it - answer the original question. Let's get this one closed as a duplicate.
Has anyone tried using controls from different vendors into your .NET application that uses winforms? Does this variety ...
Given a NT style account name (DOMAIN\UserName) is it possible to infer what the LDAP address for that domain is so that user info can be looked up?
My scenario:
I have an asp.net app running on IIS that accepts both anonymous and domain users. The anonymous users have to sign in but the domain users I check the server headers for the ...
I've just spend 4 hours (it's 3am in the UK) trying to debug ASP.NET application which caused an exception in a thread managed by Framework (i.e. not my thread). I've just found out that a result from the static method ChannelFactory.CreateChannel can be cast to IClientChannel and explicitly Disposed. I mean that's all fine and nice but ...
I created a program in C# .net using VS2008.
When the user installs the program I don't know if it will be on the C: drive or D: drive or someplace else. The issue is that I need the program to automatically create files and then retrieve those files later on without any assistance from the user.
I thought the least complex situation ...
Have a look at this:
http://www.ajaxforasp.net/AsyncDocs/html/43a5b889-47bd-bdb6-092e-e0a91ca9e8ea.htm
WaitMessage Property Syntax
public static string WaitMessage { get; }
I'm not sure if it's because I don't know what I'm doing or the documentation is wrong, but for the life of me I can't figure out how I'm supposed to assi...
Hi guys
I am looking at doing some automated unit testing and I was wondering if you know of any way that one can "Parse"/"Compile" a stored proc(s) from code (i.e. from within .net).
The case I am trying to catch is if someone makes a change to a table (i.e. removes a column) and that breaks a stored proc somewhere that they don't kn...
I want to select the pictures (They are select during program is running) and show them on the form. for that i take a panel on the form and populate the panel with pictureboxes.i write the following code for that but it is very time consuming:
if(openDialoge1.ShowDialog() == DialogResult.OK)
{
string...
I'm thinking about possibly designing/building a language at some point, and what are the advantages, disadvantages, and difficulties of writing it to run on the .NET framework/CLR?
...
Hi there,
I have a client console app talking to a WCF service and I get the following error:
"The server did not provide a meaningful reply; this might be caused by a contract mismatch, a premature session shutdown or an internal server error."
I think it's becuase of a contract mismatch but i can't figure out why. The service runs jus...
I am considering writing a 2D RTS in C#/.NET and i was wondering what options are available for a graphics library aside from XNA. What are they?
...
We are looking to build a .NET based collaborative platform that enables logged in users to detect presence of other members and allow them to share/chat online. Members/Client interface is usually a browser and at times a winforms based application could also be used. System.Net.PeerToPeer namespace appears to address the naming issues ...
Hi,
I have a DLL and i want to know whether it is possible to run the DLL as service.Is there any way to do it ?
i am using .net 2.0.
Thanks in advance.
...