Can I find to what target .NET dll was built looking into the file?
I have a bit of mess with projects coming some on 4.0 some on 3.5 Is it possible to find out what version of .NET was the dll built looking into the file (not from code!) ? ...
I have a bit of mess with projects coming some on 4.0 some on 3.5 Is it possible to find out what version of .NET was the dll built looking into the file (not from code!) ? ...
Hello guys. I've got a legacy app where there's a UserControl which is used as an activex in a web page loaded in IE. Before .NET 4.0, there were security policies and a MMC console for creating code groups, etc. It seems like that is all gone with .NET 4.0. I was wondering if someone could give me some clues on how to update my UserC...
Hi boys & girls! Is it possible to install .NET Framework 4.0 on another drive than C:? Cheers, Wilburt ...
HI folks, I saw that there's many, many thread about this on the web, also in stackoverflow, but i didn't find any way to resolve my problem. I've tried 3 things about now and it all didn't works : I've simply tried to get the log4net.dll whos given from the log4net zip folder with all source code in the bin directory. Results : No com...
I have and httphandler "rss.ashx" that exposes an rss feed. I want to use GetRouteUrl inside this handler. How do I do it? ...
I have fair amount of knowledge on unit testing. I have been trying to read about code contracts. Does it really help unit testing? Is it over-rated especially when we talk about code-contract helping to do unit testing. I am specifically referring to contracts in .net 4.0. I use nunit for unit testing. ...
So I have an MVC 2 app that uses the Active Directory Membership Provider. Authentication works like a charm! Now I need to add some additional screens to allow the users to: Change their password Reset forgotten passwords (email a super secret link or something?) Conditionally add additional users (of course users of a certain role, a...
Hello, I need to print a string from a textbox. The string should print through the default printer weather it is a parallel printer or a usb printer. Can this be done. BTW..I am using .net Forms ...
Hi I'm working with .NET new TPL library and faced with some strange behavior for me I cannot explain. For some reason nested task is not started in my case. I've simplified the solution I have to the following: bool flag = false; for (int i = 0; i < 5; i++) { Task.Factory.StartNew(() => ...
I have a class similar to the following: public abstract class Manager<T, TInterface> : IManager<T> where TInterface : IRepository<T> { protected abstract TInterface Repository { get; } public virtual List<T> GetAll() { return Repository.GetAll(); } } This works perfectly fine, however, is there a way to get a...
I have the following situation: Microsoft Report Viewer 2010 is used to display reports (.rdlc files) in local mode in an ASP.NET web application. The report data is supplied by assigning a datasource in the code behind of an ASPX page. Here's an example: if(!IsPostBack){ ReportViewer1.Reset(); ReportDataSource reportDataSource = new R...
Hi, Is it possible to read CSV file using Entiry Framework 4 such that it should give me an entity that I can use it normally within my application? Thanks ...
So i am on VS2010 running iis 7 with .net 4.0 I have a REST wcf 4.0/.net 4.0 services that runs locally very beautifully. On my local it is hosted on IIS at http://localhost/SOMENAME/ [WebGet(UriTemplate = "Ping")] public string CheckAuthenticatedStatus() { string userName; if (!AuthenticateUser(out userName))...
Hi all, I'm currently writing an application that will control positioning of a measurement device. Because of the hardware involved I need to poll for the current position value constantly while running the electric motor. I'm trying to build the class responsible for this so that it does the polling on a background thread and will rai...
Assembly 'Foo.BAL, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' is marked with the AllowPartiallyTrustedCallersAttribute, and uses the level 2 security transparency model. Level 2 transparency causes all methods in AllowPartiallyTrustedCallers assemblies to become security transparent by default, which may...
Hi, I have a workflow service created with WF 4.0 and the need to have a typical WCF decorated interface extracted from it, containing all operations. I need it for testing purposes. Is there a way to extract a decorated interface from a workflow service? Thank you ...
Hello I have two project in a .NET 4.0 framework visual studio solution. First is a Class Library and second is a windows service. In My Class Library I am using HTMLEncode and HTMLDecode functions so I referenced system.web.dll in my class library project. But when i referenced my class library in windows service it's not referencing ...
I have a Silverlight 4 solution that takes a really long time to build from both VS2010 and the MSBuild 4 command line. The solution contains 42 projects, one is a Silverlight application project, one web application project, and the rest are class libraries. The MSBuild diag summary shows these tasks are taking some considerable time....
For the life of me, I can't seem to get my .NET 4 application merging properly with ILMerge. Even after setting /targetplatform, /lib, /ndebug and adding a custom ILMerge.exe.config file the output file doesn't work properly (it doesn't seem to be able to "find" the merged libraries). I've tried this and this to no avail. I can't even g...
Hello, (Edit for clarity...) I've got an ASP.Net application which manages the IIS server as follows: (End Edit...) Successfully using Microsoft.Web.Administration.ServerManager to manage the local IIS 7 server no problem (I'm creating new sites, virtual folders etc on the fly). What I really need to do is manage a remote server to do...