.net

Dynamicly generated file on server does not release process handle .NET on Windows Server 2003

I have build a web application which the user can request a report which is generated on the server and sent back to the client. The process works fine and sends the file back to the client, however we are unable to open the file. Further investigation reveals that a process on the server still has a handle on the file by the IIS Applica...

Unwanted background-color in IE 6

Hi,I have an image and there is unwanted background-color coming to the image in IE6. Although it looks fine in all others IE6 messes it up with unwanted background-color.Any Ideas?? ...

Mscorcfg.msc disappeared !

In the past I used to configure .NET code groups with the Mscorcfg.msc utility. I could launch it in Configuration Panel/Administration Tools/.NET configuration Tools (or something like that). But now, it doesn't appear anymore, I have tried to search in the %WINDIR% directory, but Mscorcfg.msc has really disappeared. Now, how can I co...

Why is LINQ to SQL entity association creating a new (duplicate) row when inserting a new record?

I am trying to insert a new entity using LINQ-to-SQL, and entity is associated with a User entity. The insert of the new entity is successful, but my existing User entity gets inserted as if it were a new User. The code looks something like the following: var someEntity = new Entity(); someEntity.User = this.User; dataContextInstance.So...

How to Sort Integer Strings?

I am facing a strange problem while sorting a list of strings with integer values. However some values could be prefixed with some characters. e.g. // B1, 5, 50, A10, 7, 72, B3, A1, A2 There are basically page numbers and should be sorted like: // A1, A2, A10, B1, B3, 5, 7, 50, 72 But if I use default string sorting then these wil...

Nullable type is not a nullable type?

I was doing some testing with nullable types, and it didn't work quite as I expected: int? testInt = 0; Type nullableType = typeof(int?); Assert.AreEqual(nullableType, testInt.GetType()); // not the same type My question is why does testInt.GetType() return int, and typeof(int?) return the true nullable type? According to Enyra this ...

Enum or Dict? Which would help me here?

I have a winform data entry and retrieval program called CaseNotes. This has a form that that fill in. On the form there are multiple dropdown,checkbox controls that I are data-bound to a tblCNMaintItem. The structure of that table is --> ItemID | CategoryID | ItemDescription | OrderID | IsActive There is a seperate Category table t...

DLL needs to be uploaded twice for changes to take effect

I have a .NET 1.1 Web Application running on a local development machine and the live version is running on a hosted web server running .NET 2.0 (everything runs fine). My live server has a mirror of the project thats on my local development machine. When i re-build the project/solution and upload the new DLL to the live server, the cha...

Can I use a mono library from Objective-C (on the iPhone)?

Hi I am investigating a port of an app to the iPhone. My existing business logic is C# in a class library dll. It does some processing as well as sommunicating with web sites. I understand that Objective-C is the best thing to develop with on the iPhone and I'm prepared to dive in, but if possible I want to avoid re-writing the existin...

extend a user control

Hello guys, I have a question about extending a custom control which inherits from UserControl. public partial class Item : UserControl { public Item () { InitializeComponent(); } } and I would like to make a control which inherits from Item sg like that public partial class ItemExtended : Item { publ...

control wireless security camera using .NET program

this wireless camera says it has motion detection amoung its features. link text Can/How can I control such a camera from my .NET code? I want my code to be told when motion is detected so that the code can instruct the lights to be turned on ( that is the next question ). Or have the .net code tell the camera to look in another direct...

Is there a way to make a UserControl unfocussable?

Is there a way to make a UserControl unfocussable? EDIT: So SetStyle(ControlStyles.Selectable, false) is the way to go. But still there is difference to Control. If you inherit form Control the initial control does not lose focus. But after clicking on your control that is derived from UserControl and ControlStyles.Selectable is ap...

c# array function argument pass one dimension

Let say I got this function : void int Calculate(double[] array) {} And in my main I got this array: double[,] myArray = new double[3,3]; How can I call Calculate(...) ? I try (that's don't compile) : double[] mySingleArray = myArray[0]; What I want to avoid is unnecessary loop (for). I declare a regular array, but if a jagge...

Handling .Net UTF-8 strings in Erlang

Hello, I'm playing a bit with erlang and the distributed db Mnesia. One of the first problem I'm facing is the incompatibilty beetween the 'int list' strings of erlang and .Net UTF-8 strings. Is there any good conversion library? Thanks ...

SOAP web services in erlang

Hello, Is there any good erlang library for creating / accessing SOAP web services? Maybe also handling plain XML is quite difficult. Is Json a good alternative? Any lib for that? My goal is interop with existing .Net web services. Thanks ...

Reliable .wmf/wmf to Pixel based image conversion

Good afternoon, I am having a little trouble with .net's internal (System.Drawing) based MetaFile / Image handling of .wmf files that containt transparent areas. Basically whenever I do a MetaFile.LoadFile(...) and take that to save it as a tiff/png etc, some areas of that source files are missing. I can't really pin it down, but it -se...

.Net and default settings

If I am to have connectionstrings read from a config file in my application and I need to be able to change the connectionstrings as the application is moved from dev to uat to prod should I be using settings files at all as there the connection strings are compiled into the assembly which I will be moving from environment to environment...

WF Persistence - remove old workflows

When using Workflow Foundation with persistence there comes a point we want to drop some (or all) workflows out of it which no longer should be persisted/run. Any script/tool that I can use for this? ...

Problem generating Java SOAP web services client with JDK tool wsimport from a WSDL generated by a .NET 2.0 application

I'm trying to generate a client for some SOAP web services using the JDK 6 tool wsimport. The WSDL was generated by a .NET 2.0 application. For .NET 3.X applications, it works fine. When I run wsimport -keep -p mypackage http://myservice?wsdl it shows several error messages like this: [ERROR] A class/interface with the same name ...

FaceBook publishUserAction FaceBook Developer Toolkit 2.0?

I am so lost on this. I am trying to use the publishUserAction feature and have no idea what the correct way is to publish stories on FB. I get an error that I cannot automatically publish one-liners using Connect. OK, so what do I need to do then? Do I need to use the Feed Forms? Any help on this is greatly appreciated. I have been usin...