.net

Entity framework - Problem when cloning entities. reference entities are cloned as wel

Hi, I have a TreeNode class with Expression. Expression has Parameter ID pointing to Parameters table. Each parameter has ParameterGroupId. I have a Copy& paste TreeNode feature. When I copy an existing node, I create a new node but using the same reference to the P (Parameter) and PG (ParameterGroup). The problem is, the new node was...

RDLC (VS 2010) How to access nested class or arrays on DataObjects

How can I access the TD.SubNumber property and Numbers[] on RDLC? I keep getting #Error on my expressions "=Fields!TD.Value.SubNumber" and "=Fields!Numbers.Value(0)". public class TestData { TestSubData tdata = new TestSubData(); public TestSubData TD { get { return tdata; } set { tdata = value; } } ...

Publishing .Net Web App does not copy certain files

There are certain images & swf files that are used in the project, but they are not added to the project (Meaning, the Solution Explorer does not show them). When I try to use the Build->Publish option in VS2008, those images & swf files are not published. Do I have to necessarily add them to the project in order to publish them? Isn'...

Experience with .NET Reflector Pro

Hi, do you have an experience with .NET Reflector Pro (not the free version)? I searched for some way how to easy debug application in external enviroment (for example: production server out of office/developer domain) and I found feature "Step through decompiled assemblies and use all the debugging techniques you would use on your own...

XSD doesn't allow to build

I'm working on an ASP.NET project with another developer. He has added an XSD file to the solution file (.sln). He can build the application on his machine successful, while I cant build on my machine, considering that we share the exact same code. I get the following error: Error 1 Failed to generate code. Exception of type '...

Detecting private IP addresses using one member in the .NET Framework?

Is there one method or property in the .NET Framework that tells if an IP address is private? Or must a custom check be coded? ...

How to create a plug-in for Windows Mobile web browser (IE) using C#?

I have a plug in for IE created in .NET C# now I want to port it to IE for Win mobile (5, 6, 7) how to do such thing? (I mean a plug in like Flash for example...) ( I vant to see some kind of special visual element on the page that appeare when some special tag appeares in html document... like bla bla bla ) ...

Basic serialization throws an 'Invalid XML' error

I have the following class structure (not simplified btw): [Serializable] [XmlInclude(typeof(Twitter))] [XmlInclude(typeof(LinkedIn))] public abstract class SocialNetworkBase : ISocialNetwork { public abstract string UserName { get; set; } } public class Twitter : SocialNetworkBase { public override string UserName { get; set; ...

FoxPro and .NET COM without registration

I use Unmanaged Exports to create a native .dll from .NET .dll so I can access .NET code from Delphi without COM registration. For example I have this .NET assembly: using System; using System.Collections.Generic; using System.Text; using RGiesecke.DllExport; using System.Runtime.InteropServices; namespace DelphiNET { [ComVisible(t...

VisioWave's Display recconnection problem

Is there somebody who used (General Electric's) VisioWave SDK (ActiveX 'XWDisplay' component) for video cameras management in .NET? I try to made a cycle with two cameras and between two reconnects capture the background picture. Is there a way to avoid it? ...

Linq2Sql vs Stored Procedures

Apologies if this is a duplicate question, but is there a real difference between executing a SQL statement in Linq2Sql compared to executing a Stored Procedure? What are the benefits? (if any) ...

Should I use WPF or Winforms to build my new Windows desktop application?

There are pros and cons for both approaches. But from a managers perspective what is the best approach? ...

How can I make .NET C# ActiveX plugin work on Mac Safari?

So I've created a plugin for windows working in IE Chrome etc (there is an eazy way to make active x plugin work on Netscape based browsers under windows) how to port it to mac? ...

Shared Authentication between SAAS/Cloud web application and Desktop application

A simple scenario: Let's say we have a Web Application up in the cloud that let users sign up using OpenID. (I'm open to use Windows Live ID as alternative) They can log in and update some meta data, for example what their favorite color is. If I now want to get this information from a desktop client, how do I do that? I will probably ...

Unique controls identification

Hello, Is there any way to uniquely identify controls using Accessibility? Once control is identified - I should be able to get its current position on screen (rectangle). Tried to do this with IAccIdentity, but don't know what to do with that string of bytes which it returns - is there any way I can extract necessary information from i...

FileHelpers and CSV: what to do when a record can expand unbounded, horizontally

I'm trying to parse this type of CSV file with FileHelpers: Tom,1,2,3,4,5,6,7,8,9,10 Steve,1,2,3 Bob,1,2,3,4,5,6 Cthulhu,1,2,3,4,5 Greg,1,2,3,4,5,6,7,8,9,10,11,12,13,14 I can't figure out how to parse this with FileHelpers. I would imagine I should be able to do something like this: [DelimitedRecord(",")] public class MyRecord { ...

Unpacking EBCDIC Packed Decimals (COMP-3) in an ASCII Conversion

I am using Jon Skeet's EBCDIC implementation in .NET to read a VSAM file downloaded in binary mode with FTP from a mainframe system. It works very well for reading/writing in this encoding, but it does not have anything to read packed-decimal values. My file contains these, and I need to unpack them (at the cost of more bytes, obviousl...

System.Drawing.Icon constructor throwing "Operation completed successfully" exception

On a Windows XP machine, the following code is throwing a System.ComponentModel.Win32Exception with the message "The operation completed successfully" System.Drawing.Icon icon = new System.Drawing.Icon("icon.ico"); I can stop the program crashing with try { System.Drawing.Icon icon = new System.Drawing.Icon("icon.ico"); } catch(S...

Error during Team Build: The type or namespace name 'Serializable' could not be found

New problem with VS2005 Team Build: Building locally a solution of a mobile client for a platform of the company, everything goes pretty neat and compilation occurs without major hiccups, but using the very same solution on a Team Build gives me the following problem: Solution: TB Client.sln, Project: Client.PocketPC.UIAPI.csproj,...

Adding .cs in a ResourceDictionary ?

Hello. I have DataTemplate in a ressource dictionnary, and in some, I need button and i don't know how i can use code behind for manage events. I tried to put a class in my resource dictionnary like that : <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/...