Hi all,
I just installed .NET 4.0 on my Win 2003 Server running IIS.
I didn't have any problems using ASP.NET 2.0 built websites, but now if I set the ASP.NET version to 4.0 and I deploy a website built using vs2010, I get HTTP 400 http://localhost/mysite/Default.aspx homepage. I have an.xml file in the same folder and browsing to that...
hi i am getting This problem - type initializer for 'PublicDomain.TzTimeZone' threw an exception. with .net please tell me why this is and how to solve this?
thanks
inner exception is "Cannot find time zone with UTC offset -12:00:00."
...
I have a string as a HTML source and I want to check whether the HTML source which is string contains a tag which is not opened.
For example the string below contains </u> after WAVEFORM which has no opening <u>.
WAVEFORM</u> YES, <u>NEGATIVE AUSCULTATION OF EPIGASTRUM</u> YES,
I just want to check for these types of unopened tag and...
I am an experienced C# / .NET developer and recently been offered an opportunity to become Microsoft Dynamics (Navision) developer (training, certification etc will all be paid for by employer). I've never been involved in anything to do with this Dynamics so I wanted to ask what is like to be a Dynamics developer in comparison to C#/.NE...
Hi, I got mad about this DataTable and merging behavior. Today I experienced this:
I have a datatable with 4 keys and 3 additional data columns. Now I need to merge a second table with again 4 keys (same as first datatable – name and type identical) but 6 data columns not hold to the first datatable. The result after merge should contain...
This is a test I am currently working on:
(Edited according to Lees answer)
[Test]
public void AddLockClassWithNullNameShouldCallInsertOnSessionWithEmptyString()
{
LockClass lockClass = new LockClass { Id = ValidId, Name = null };
using ( mockRepository.Record() ) {
sessionFactory.CreateSession();
LastCall.Retur...
Let's say we have a client application that uses a network stack. The stack detects an error condition that leads the stack to close it's connection and raises a ConnectionStateChanged event. Besides that the stack raises an ErrorOccured event to inform the client appplication about the error condition.
So what to do first?
Arrange the ...
Hi,
I'm working on a calculator developed in .net. I need to link to this calculator from a html page hosted in another server. If this happens, the user would need to come out of the html page to a .net page with a completely url, etc.
I've devised to have an iframe in the html page with .net calculator in it. This would mean that the ...
Hi,
Does anyone have any experience with setting up DebugDiag to trigger on a specific HttpException? The advanced configuration only allows you to specify the .NET type of the exception, while HttpExceptions are very generic and are used for anything from 404's to timeouts. I'm interested in triggering a dump on page timeout in this ca...
When you posting a link on facebook they retrieve an image from that link's page and an overview of that page's content. Any ideas on how to have this kind of functionality?
Thanks in advance.
...
Hi,
I am trying to programmatically test if a given domain name exists.
The following line of code works as expected:
IPHostEntry IPhst =Dns.GetHostEntry("google.com");
But it fails for some few domains on the very same host at the very same time. For example, the following throws an exception.
IPHostEntry IPhst =Dns.GetHostEntry...
We're using a simple File.Copy in C# for moving our database backups to extra locations.
However on some servers, this causes the SQL server to pretty much stop working. These servers have very limited memory, so they're paging data out to the harddrive every so often.
Whilst we should buy more memory, this is not going to happen for a...
Hello all!
There is a way do convert HTML or PDF to RTF/DOC or HTML/PDF to image using DevExpress or Infragistics?
I tried this using DevExpress:
string html = new StreamReader(Server.MapPath(@".\teste.htm")).ReadToEnd();
RichEditControl richEditControl = new RichEditControl();
string rtf;
try
...
hi every1
i want to calculate the process time per thread.
how do i do it.?
suppose my 100 threads are executing the same method work() concurrently, then if i put the following code help me get what i seek
Process thisProc = Process.GetCurrentProcess();
string procName = thisProc.ProcessName;
DateTime started = thisProc.StartTime;
in...
Hi Friends,
I am stuck with this problem.
We are doing compression in .net and decompression in iPhone,
Using GZip compression on both sides but the answer differs. Anyone has clue then please reply.
Thanks in Advance.
...
There are 3 clients that looks at same data instance, one of them edits data and submits on server, what are the mechanisms to make the other two clients instantly see the updated data ?
I am thinking of some AJAX poll from time to time that will force page reload if there are changes or some page expire , is there anything else ?
...
I use Crystal Reports within C#.NET and I want to create multicolumn tables to present my data. Problem I have is that there is just no "table" component in the designer, I can only draw lines - and that's enought to create table.
However it seems to be very not flexible - creating tables just by lines - it leads to problem with adding ...
I need a regular expression that matches a 15 character string as follows:
Characters 1-6 should match '100702'
Characters 7-8 should match '25' or '26'
Characters 9-15 should match any digit (0-9) but must contain a digit.
This is for .NET
Thank you.
...
Hi,
My scenerio is connection to remote machine with C#.Net, and listing all processes with that remote computer. I can kill a process, or start a new process at remote. The problem is, when I execute a new process on remote, I can see the process on task manager, but it doesnt apeear on windows screen. Any idea why its not appearing on...
I've got a WPF windows client that calls a WCF web service. The user is already logged in on the windows domain before starting the application and the WCF service uses windows authentication.
I want the WPF client to use the WindowsPrincipal of the already logged in user when calling the WCF service. I do NOT want to create a new Netwo...