.net

working with xbrl in .net

Hi Experts, I want to create a xbrl report with .net, please let me know how to use it. Thanks in advance ...

efficient way to detect if an image is empty

Hi, I need a very fast method to detect if an image is empty. Im my case then all pixels are white and transparant. The images are png's. My current method is to load them in a memory bitmap and check each pixel value, but this is way to slow. Is there a more efficient way? This is my current code: 'Lock the bitmap bits. Dim bmp...

Any good opensource SharePoint components that can abstract you from the inner SharePoint plumbings?

I am looking for a good reusable set of components that can be used to communicate with SharePoint via web services, preferably open source. I want some abstraction from CAML and WebDav and SharePoint Web Services that could help me speed up my development time. Ideally I want to select, insert, update and delete from lists, manage a...

Can T-SQL store ulong's?

I want to store a C#.NET ulong into a T-SQL database. I don't see any provisions for doing this, as the SQL bigint has the same Min/Max values as a normal long. Is there any way I can do this? Or is catching an OverflowException my only hope? ...

Entity Framework 4 How to find the primary key?

I am trying to create a generic method using EF4 to find the primary key of an object. example public string GetPrimaryKey() { .... } To Give more info I am working off of the Tekpub StarterKit and below is the class I am trying to get up and running using System; using System.Collections.Generic; using System.Linq; using System.W...

Are there any web application frameworks usable with .NET 2.0?

Apologies if this has been asked many, many times before - I'm afraid I couldn't find any satisfactory answers. I'm stuck in an environment (a bank) where, although we have VS 2008 on the development machines, production machines are locked down to the .Net framework 2.0 and SQL Server 2005. Are there any modern application frameworks ...

How to get Gherkin syntax highlighting for .feature files in Visual Studio?

There's no highlighting for Feature, Scenario, Given, When, Then, etc. keywords by default. Is there a ready made template out there to enable this? ...

Is there a way to emulate the Console in a Silverlight or WPF application?

I really like using Console applications to learn different aspects of .NET programming. I'm wondering if there is a way to emulate the Console in a Silverlight or WPF application. Is there already an open source Console control that I could plug into my application? Most importantly, I'd need to be able to emulate the appropriate Rea...

How to register System.DirectoryServices for use in SQL CLR User Functions?

I am porting an old 32-bit COM component that was written in VB6 for the purpose of reading and writing to an Active Directory server. The new solution will be in C# and will use SQL CLR user functions. The assembly that I am trying to deploy to SQL Server contains a reference to System.DirectoryServices. The project does compile wi...

Registry in .NET: DeleteSubKeyTree says the subkey does not exists, but hey, it does!

Hi, Trying to delete a subkey tree: HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.hdr. .hdr subkey has one subkey, no values. So I use this code: RegistryKey FileExts = Registry.CurrentUser.CreateSubKey("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\FileExts"); RegistryKey faulty = FileExts.Op...

Requested Service not found - .NET Remoting

I am Getting this exception System.Runtime.Remoting.RemotingException occurred Message="Object '/55337266_9751_4f58_8446_c54ff254222e/rkutlpt5hvsxipmzhb+jkqyl_98.rem' has been disconnected or does not exist at the server." Source="mscorlib" StackTrace: Server stack trace: at System.Runtime.Remoting.Channels.ChannelServices.Che...

Recursion in Unity and Dispose pattern implementation

My class is inherited from UnityContainer (from Unity 2.0), here is source code: public class UnityManager : UnityContainer { private UnityManager() { _context = new MyDataClassesDataContext(); // ... } protected override void Dispose(bool disposing) { ...

wcf callback exception after updating to .net 4.0

I have a wcf service that uses callbacks with DualHttpBindings. The service pushes back a datatable of search results the client (for a long running search) as it finds them. This worked fine in .Net 3.5. Since I updated to .Net 4.0, it bombs out with a System.Runtime.FatalException that actually kills the IIS worker process. I have no...

Deserializing XML to an Auto-Generated Proxy Class

I'm trying to deserialize a parameter being passed into a web service call using XML Serialization. I am targeting the type of the proxy class that is generated by Visual Studio when referencing the web service. The deserialization appears to work except(no exceptions) yet none of the xml fields are mapped to their corresponding proper...

Null reference but it's not?

This is related to my previous question but it is a different problem. I have two classes: Server and Database. Public Class Server Private _name As String Public Property Name() As String Get Return _name End Get Set(ByVal value As String) _name = value End Set End Property Private _databases As List...

Migrated to ASP.NET 4.0 on IIS 7 and can not get custom errors to work

I have an ASP.NET Web Application project that used to target ASP.NET 2.0. I installed ASP.NET 4.0 on the web server hosting the web application and changed the web application project to target .NET 4.0. Everything works ok with on exception: Custom Error Handling Before migrating to .NET 4.0, custom errors used to work. In my appli...

What do you think about the advantages/disadvantages of .net 4.0 dynamic types?

Possible Duplicate: What do you think of the new C# 4.0 dynamic keyword? What do you think about the advantages/disadvantages of .net 4.0 dynamic types? are they useful? do we really need them? what are their advatages? thanks ...

Best direction for displaying game graphics in C# App

I am making a small game as sort of a test project, nothing major. I just started and am working on the graphics piece, but I'm not sure the best way to draw the graphics to the screen. It is going to be sort of like the old Zelda, so pretty simple using bitmaps and such. I started thinking that I could just paint to a Picture Box contr...

Comparing Ranges in Excel

In the Excel Interop libraries, is there functionality to determine whether a given Range object is contained within another Range object? It would be simple enough for me to compare the row and column indices of each Range, but things become more complicated when you want to compare two ranges that may be on different worksheets. ...

How do I tell if an action is a lambda expression?

I am using the EventAgregator pattern to subscribe and publish events. If a user subscribes to the event using a lambda expression, they must use a strong reference, not a weak reference, otherwise the expression can be garbage collected before the publish will execute. I wanted to add a simple check in the DelegateReference so that if ...