.net-4.0

<rewrite> not a valid child of <system.web> ?

Hopefully I am just overlooking something incredibly simple, if so I apologize.... I have an ASP.NET application in .NET4 and we're trying to use URL rewriting using <configuration> <system.webServer> <rewrite> <rules> <rule....> For some reason intellisense is returning an error which says th...

Multithreading producer-consumer pattern using .Net TPL discussion

Firstly, my scenario: An application with data input, data processing and result aggregation. Input data can be huge so it is cut into batches. Batches are individual. Data processing becomes batch processing and is a relatively time-consuming procedure. Finally, each batch processing would result in a batch result. All batch results ar...

Wordpress-like Plug-in model in ASP.NET MVC

This is kind of based off of this question. I'm currently looking at rebuilding our company intranet from the ground up (I'll be honest, our existing one is an absolute mess), but one of the core "features" of our new intranet that I'd like is the ability to build whole applications (which will also probably be in MVC 9 times out of 10,...

Word 2010 addin does not load, vsto 2010

Our development machine is 64 bit hardware running Windows 7 Professional N (64 bit), 64 bit Office Professional 2010 and Visual Studio Professional 2010. We created a Word 2010 (Application Level Addin) using .net framework 4 , Ribbons and windows installer targeting Office 2010 using this link. We followed everything to the dot sever...

Linq - Is there a IEnumerable.ForEach<T> extension method that I'm missing?

Possible Duplicates: Lambda Expression using Foreach Clause Why is there not a ForEach extension method on the IEnumerable interface? This seems pretty basic. I'm trying to iterate over each object of an IEnumerable. It appears that I would have to cast it to a list first. Is that right? It seems to me there should be an ext...

web.config authorization deny unauthorised

I am developing a .NET for ASP.NET Web Application and am trying to deny all users who are unauthorised from accessing my application but allowing them only to the login page. Below is a snippet of the code which is inside my system.web section: <authentication mode="Forms"> <forms loginUrl="Login.aspx" timeout="60" name="APPNAME" ...

w3wp crashing out

Hi, One of our web servers is suffering from random w3wp.exe crashing and after a couple of weeks of debugging i simply cannot figure out why. The only thing that has helped so far is reducing the max worker processes from 15 to 5 however this isn't ideal as we are using a multi-cpu machine in the hopes of reducing the total number of s...

I can't add Microsoft.SqlServer.Management.Common to my ASP.NET MVC Application

I am trying to add a reference to the above assembly but it does not appear in my ASP.NET MVC .NET 4 (Not client) applications Assembly list. Does anyone know how to reference this Assembly? ...

MVC, WCF ASP.NET 4.0 & JQUERY

Hello, I've spent the past few days getting frustrated with WCF, so I've decided to post for help on here because.. well.. I don't have a clue where to start!.. any help would be appreciated! Firstly: When creating a WCF Service in .Net 4.0, which template should I use if I want to be able to create a service that will accept data from...

Producer Consumer queue does not dispose

Hi, i have built a Producer Consumer queue wrapping a ConcurrentQueue of .net 4.0 with SlimManualResetEvent signaling between the producing (Enqueue) and the consuming (while(true) thread based. the queue looks like: public class ProducerConsumerQueue<T> : IDisposable, IProducerConsumerQueue<T> { private bool _IsActive=true; pu...

VB.Net Serialize anonymous type to xml

In MVC I can do something like the following to serialise an object with an anonymous type to JSON... Public Function GetStateList() As JsonResult Dim MyObject = New With {.Id = 1, .Property = "SomeValue"} Return Me.Json(MyObject) End Function which would return something like; { "Id": 1, "Property"Som...

MSBUILDEMITSOLUTION not working with .NET 4?

In prior versions of MSBuild, you could set an environment variable named MSBUILDEMITSOLUTION to 1 to get an XML version of a solution (.sln) file that could be parsed. According to the MSBuild Team Blog, that's still in the version that ships with Visual Studio 2010, but it does not seem to be working. Has anyone managed to get this wo...

How to programatticaly open/read digitally signed email with read receipt turned on in .NET / C# ?

Hi, I created "email management" tool that does bulk email management(standalone exe C# .NET4 application that "connects" to Oulook 2007 and via Microsoft.Office.Interop.Outlook "monitors" all user emails; not Outlook Add-in but standalone exe app + there are reasons why it's not addin architecture). Now, during testing phase I realise...

How to add a jscript or html item template via an add-in in visual studio

I'm currenlty working on an add-in and require the functionality to add custom item templates to a project programatically. I'm currently installing the templates (which are of a .zip format) in ..\Visual Studio 2010\Templates\ItemTemplates\. From within the add-in I then call the following code: string templateLocation = (solution as...

Programmatic way of refreshing VS Item Template cache from within Visual Studio Add-In

Is there a way from within a Visual Studio Add-in to get visual studio to rebuild its cache in a similar way to calling DevEnv.exe with the /InstallVSTemplates command? ...

SQL injections and .NET 4

Is there instruments in .NET 4 to "automatize" verifications of SQL fields against SQL injections? I saw this article, but afraid could be not to date... EDIT: Oracle Db compatible... ...

MS Workflow Foundation 4 - Can the workflow model be interigated at runtime, as in to generate a visual representation of it?

can the workflow model be interigated at runtime. Reason, to generate a visual web representation of it? For highlighting the current node of the workflow, for example. ...

silverlight service reference from wsdl - methods missing

I'm successfully creating a Service Reference for a silverlight application by pointing to a local wsdl file. The preview pane shows the 6 methods avaialble in this wsdl. However, the generated proxy seems to have no knowledge of those methods, so I cannot find a way to call them. Been fighting this for a while, what the heck is goin...

Can a .Net 4.0 assembly be used in a .Net 3.5 application?

Possible Duplicate: How to reference .NET 4.0 assembly within .NET 3.5 projects Is there any way to ineteroperate a 4.0 assembly (a WPF interface) within a 3.5 application (an MFC Application). This application is giving us no end of trouble attempting to migrate it to 4.0. ...

checklist pre-release

Hi, I have developed a asp.net page and I'm ready to release it for the public. This is my first asp.net page and I would appreciate if I could get some tips of what to do pre-release. So I hope you all can help me put together a checklist before publishing. Thanks M ...