.net

Prism for .NET 3.5 and EntLib 5 (or Unity 2)

Hello, is it possible to develop with Prism under .NET 3.5 using EntLib 5? According to documentation, Prism 2.1 targets .NET 3.5, but it works with EntLib 4. And Prism 4 works with EntLib 5, but in requirements section of documentation said that .NET 4 is required. The question is: can I develop with Prism using EntLib 5? I already use...

Isolation in a Multi-tenant ASP .NET Application

I'm building a multi-tenant ASP .NET application. Given that each tenant can configure their application dynamically (which may involve dynamic custom assemblies being loaded into memory), I need a means of isolating each tenant. I'd prefer not to create a new Web Application per tenant for maintenance reasons. I've was considering us...

Is there a 3rd party library that knows to convert a linq expression to a human readable string representation?

I have a linq expression and I wish to display it in the log in a human readable form. Any one knows any library that can do it? I saw this entry http://stackoverflow.com/questions/3294438/creating-a-string-from-a-lambda-expression, but it is not that useful, in my opinion. Thanks. EDIT Now that I think about it, my case is probably n...

automated document creation

Are there any existing solutions to create documents in Silverlight? Looking to create purchase orders, contracts, etc. Printing is a desired feature. ...

Winforms: Why do events fire at design-time?

Why are messages displayed at design-time? My code is : class Class1 : TextBox { public Class1() { this.Resize += new EventHandler(Class1_Resize); } void Class1_Resize(object sender, EventArgs e) { MessageBox.Show("Resize"); } } Pic : ...

Dynamically add <asp:content to page, Nested masterpages

hi all, I am currently using nested masterpages in my latest asp.net 4.0 project and i want to change the look and feel dynamically, so the homepage may just be 1 column wide, about us page may be 2 columns etc. I am dynamically loading the masterpage dependant on the record selected in the DB (1column.master, 2column.master) on the pr...

Jscript .Net and PDF Duo - How to Import DLL?

I have an winform application that retrieves some html. I'm trying to convert the html string to a pdf. This is the first time I've tried using an 3rd part library before and I cant seem to get it right. I'm using /r:pdfduo-net.dll jsc option and my import statement is below: import System; import System.Text; import System.Data; impor...

Is it possible to convert a dll to source code?

Is it possible to convert a dll library back to source code? Not that I want to do this, but I need to outsource some non-critical parts of a software that I am writing, but I wouldn't want the other guys to copy everything that I have so far. The code in the respective dll is not the whole code. I have managed to include only the nece...

Are auto-generated proxies the best approach for implementing an asynchronous WCF client?

I am designing the architecture for a C#/.NET 3.5 project that will communicate between a client and a server via WCF. This will generally be a query-response system, so as an example, one of the service methods might look like this: User GetUserByLastName(string lastName); An additional stipulation is that the WCF client methods nee...

Capture hyperlink click in HTML displayed in WPF Frame

Hello, and sorry if that was asked before, With a WPF Frame Control I can display a website. WPF appears to delegate Rendering to the resident IE installation. Unfortunately it appears that when I click some link in the displayed page, WPF does not register this as Navigation, e.g. Navigating event doesn't fire. I can almost imagine w...

Monitoring application to track performance of .net service in production?

Is there anything similar to appdynamics.com to track performance and errors of a .net service in production? I'd love to have an easy to integrate dashboard to monitor Number of calls per minute Response time Cpu / Memory usage GC behaviours Exceptions Alerts if anything is out of scale (actual response time vs avg, etc..) ...

Complex DAL -> BL mappings using AutoMapper

I'm considering to use AutoMapper in the upcoming project and trying to find possible "bottlenecks". At the moment the most complex case i can imagine is the following: A domain class which is represented by 3 (for example) tables in the database (my data access layer is LINQ to SQL). To build an instance of the class i need to perform 3...

I'm releasing my software. Do I have to use .net obfuscator?

I'm planning to release an alpha version of my freeware-closed source software shortly(It's an authoring tool written in C#), do I have to use .net obfuscator? Generally i wouldn't like for people to effortlessly browse the code and - most importantly - modify it. (I'm afraid, i'm not ready to opensource it at this point in time.) If ...

Entities Framework 4 Code First: Large model

Has anyone advice when working with large database models when using EF4 code first? Entity sets are added to the database context, but if I have 100 tables, I need to create 100 DbSets, 1 for each table: public class Customers : DbContext { public DbSet<Customer> Customers {get; set;} public DbSet<Employees> Employees {get; set...

RIA technology choice

I'm a .NET silverlight developer. After last project i want to have a rest from this tech and want to learn something new. My next project will be an app for managing workflow of a company.This app will need printing support, export to office formats, document management, maybe authorization\authentication. Can you suggest what technolog...

server to client push?

I keep getting comet when I search for this, but comet seems to complex for my needs, i.e. 100 users max with probably 10 users online at a time. Is there are better solution for my requirements, i.e. be able to push data to clients, probably between 10-20 clients max at a time. ...

Soap Envelope Header in Delphi 7 not including utf-8 encoding. How can I modify it?

I'm having problems receiving invalid non-ascii characters coming from a Delphi 7 client sending a utf-8 encoded XML to a C# WebService in a String parameter. With a .Net client, the characters are received without a problem. I've tried a lot of stuff, and nothing seemed to work, so I decided to trace the SOAP conversation with Wireshark...

delay loading of a silverlight page

How would i go about delaying the total load of a SilverLight Page? I take a parameter out of the querystring on the page load of a Silverlight web page, and then send it to a web service boolean function to process. The result of the return value is used to determine whether to fully load and display the page, or direct to another page....

C# Hook Windows Processes to Check for Debugging Processes

I was wondering if there is a way I could hook the windows processes to check if any suspicious programs are running like (Wireshark, Fiddler, OllyDBG, etc). I want to hook the windows processes so it will close the client or pop-up a message in real time when it detects a unwanted process. If you guys can provide me with any links to ...

ASP.NET Session - Use or not use and best practices for an e-commerce app

Hi, I have used ASP.NET in mostly intranet scenarios and pretty familiar with it but for something such as shopping cart or similar session data there are various possibilities. To name a few: 1) State-Server session 2) SQL Server session 3) Custom database session 4) Cookie What have you used and what our your success or lessons ...