Hi Folks,
We have a current WinForm/Windows Service running in .NET 1.1 out on various customer sites that is getting data from internal systems, transforming it and then calling a Web Service synchronously.
This client app will no longer work in Vista or Windows 7 etc.. and its time to update!!
I was looking for ideas on what I coul...
We are designing set of web services which will return XML string in response. These are RESTFul services so I will have to send exception inside element. I am planing to design set of Error code which can help me determine where level occured just by looking at the code.
For Example
1000 - Application Level 2000 - DB
level 3000 ...
System.Reflection does not (AFAIK) support reflecting on global methods in an assembly. At the assembly level, I must start with the root types.
My compiler can produce assemblies with global methods, and my standard bootstrap lib is a dll that includes some global methods. My compiler uses System.Reflection to import assembly metadata ...
I have two System.Windows.Media.Color (a and b)and need to get a and put over b to simulate tranparency. to use in my merge method:
public static Image Merge(Image a,Image b)
{
for(int x=0;x < b.Width;x++ )
{
for (int y = 0; y < b.Height; y++)
{
a.SetPixel(x, y, b.GetPixel(x, y));
}
}
...
Hi,Guys
I got OutOfMemoryException after the app running for 1 day, the app totally use 1.5G memory , all consumed by managed heap, gen 2 used 200mb , and LOB used 1.3mb, however the weired thing is, 900mb of space are Free. from perf counter I saw there had number of gen 2 gc collection happened, why GC collector cannot collect those 9...
Hi, I'm having a problem with a code that doesnt follow sequential execution although I'm not using threading. My code calls one function and when I'm debugging inside the function, it returns to the line of code following the function call although the function hasnt finished executing, I have no idea why this would happen, any ideas? t...
Hi,
Can anyone give a good explanation and / or links to a good resource of how hash codes are used in storing and retrieving objects in hashtables, dictionaries etc, specifically in C# / .NET.
I'm interested to see how Equals and GetHashCode are used collectively when storing and retrieving items.
...
I have a .Net webserivce that accepts XML in string format. XML String sent into the webserivce can represent any Object in the system. I need to check the first node to figure out what object to deserialize the XML string. For this I will have to load the XML into an XMLDocument (Don't want to use RegEx or string compare). I am wonderin...
I have a web application that creates directories.
The application works fine when creating a directory on the web server, however, it does not work when it tries to create a directory on our remote fileserver.
The fileserver and the webserver are in the same domain.
I have created a local user in our domain, "DOMAIN\aspnet". The loca...
I need a little bit of advise regarding the situation I am faced with. The current arrangement I have been tasked with improving just doesn't sit well with me and I feel like there is a better way to do it. The more I read about WCF, the more I get the feeling that it might be what I am looking for.
Right now, I have an asp.net client...
I am trying to learn fluent nhibernate better so am doing a basic sample application from scratch, instead of using someone elses framework. However, I am finding I really don't understand what is going on in assigning mapping files. I have seen a lot of code examples which are all showing the same code, but nothing that spells it out. N...
I know that when I use DateTime.Now.Ticks in C# it returns a long value but I need to store it in an int variable and I am confused as to whether or not I can maintain that precision. As of right now I just have a cast
int timeStampValue = (int)DateTime.Now.Ticks;
This is a project constraint so I understand there is tons of precisio...
Hi Guys
I'm trying to gain deeper understanding of the way CLR works and can't find a good determination of "SyncBlockIndex". I've found out that each managed object has it, but what is it? What is it used for?
...
I am running a c# unit test (VS 2008). Within the test I do write to the settings, which should result in saving the data to the user.config.
Settings.Default.X = "History"; // X is string
Settings.Default.Save();
But this simply does not create the file (I have crosschecked under "C:\Documents and Settings\HW\Local Settings\Applicati...
When I create strongly typed View in Asp.net mvc 2, .net 4.0 with model type Tuple I get error when Tuple have more than 4 items
example 1:
type of view is Tuple<string, string, string, string> (4-tuple) and everything works fine
view:
<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/WebUI.Master" Inherits="System.Web....
I have 10 boxes, each box can hold one item from a group/type of items, each 'group' type only fits in one of the 10 box types. The item pool can have n number of items. The groups have completely distinct items. Each item has a price, i want an algorithm that will generate all the different possibilities, so i can figure out different p...
I would like to databind to a property that requires arguments.
What is the best way do to this? are there work arounds? I'm open to any suggestions.
I thought about defining custom columns and cells because the parameters that the property requires are available from the within the object bound to the row, but I'm having trouble mater...
How can I clear the content of a text file using C# ?
...
I want to have an application that works as a Host to many other small applications. Each one of those applications should work as kind of plugin to this main application. I call them plugins not in the sense they add something to the main application, but because they can only work with this Host application as they depend on some of it...
Does anyone know of a .Net port for the auto generated gravatar MonsterIDs icons? I'd like to generate monsters locally in my .Net app.
...