Hi all,
I just installed .NET 4.0 on my Win 2003 Server running IIS.
I didn't have any problems using ASP.NET 2.0 built websites, but now if I set the ASP.NET version to 4.0 and I deploy a website built using vs2010, I get HTTP 400 http://localhost/mysite/Default.aspx homepage. I have an.xml file in the same folder and browsing to that...
I've written some code to try and describe my concern:
static void Main(string[] args)
{
IEnumerable<decimal> marks = GetClassMarks();
IEnumerable<Person> students = GetStudents();
students.AsParallel().ForAll(p => GenerateClassReport(p, marks));
Console.ReadKey();
}
GetClassMarks uses yield return in it from my weir...
Hello everyone
Is a quick question, I've been searching around with no luck, I'm a newbie in ASP.NET webforms. Is there any way to set the default page for a site, meaning, when I Send a Get for http://{domain|localhost}/ it gets me the Default.aspx or any I set?
I know I can set that redirect in IIS (i'm using 7.5), but I want to know...
Lets say I build an Service Layer wich deals with POCOs coming out of an repository. The Repository is aware of the EF 4.0 and deals with POCO generation and so on. But that does also mean that my Repository will have a .NET 4.0 dependency and so my Service Layer which consumes the Repository will also have a .NET 4.0 dependency...even i...
I wrote a class library in .NET 2.0 for database access some 2 years ago and have been using it all along on .NET 2.0, 3.0 and 3.5.
In the current project I'm working on (which is a .NET 4.0 application), tried using the old faithful class library and I got the following exception:
System.InvalidOperationException was unhandled
Me...
In ASP.Net I can use a http handler or module to catch errors.
I need something equivalent for my windows service.
I'm thinking something like Application.OnError += ErrorHandlingMethod;
Any ideas?
...
Hi i'm using an htmltable that is refreshed when a textbox change.
For refresh it i'm using this code:
HtmlTableRow tableRow;
HtmlTableCell tableCell;
for (int i = 0; i < 50; i++)
{
tableRow = new HtmlTableRow();
tableCell = new HtmlTableCell();
tableCell.InnerHtml = i.ToString();
tableRow.Cells...
Hello,
I'm developing an XBAP solution which contains 52 projects. I upgraded already the solution from visual studio 2008 to visual studio 2010 without any problems; but I would like to also migrate all the projects from the .Net Framework 3.5 to 4.0 without having to do it manually.
Does there exist a tool or some other automated way...
Currently I use this:
RouteTable.Routes.Add(new ServiceRoute("API", new WebServiceHostFactory(),typeof(MySite.Web.MyServiceV1)));
To make this url point to the MyServiceV1.SVC
MySite.com/API
I want to use a Prefix which contains a / in it but it doesn't seem to work.
RouteTable.Routes.Add(new ServiceRoute("API/V2", new WebService...
Hello
I updated my solution from .NET 3.5 to 4.0, and thanks god, I just had to fix minor things.
But what I don't understand is, the edmx file generated many warnings like this:
Error 2005: Mapping Association 'FK_CP_C' is redundant:
Its referential integrity constraint provides sufficient information.
You can safely delete the mappin...
Is it possible to run an application built on .NET 3.5 with a plug-in built with .NET 4?
Cheers,
Christian
...
Hi,
I have a VS 2008 project. This project's target framework 3.5. Everything is Ok in this situation.
I migrated this project to VS 2010 and I also changed target framework to .Net 4.0. Then I tried to build the project. But I got an error which says me to about to use "NetFx40_LegacySecurityPolicy" switch. So I used that switch and e...
what is the best way is to use a ORM like Nhibertate or Entity Framework or to do a customer ORM .
I will use this ORM for a C# 4.0 project
...
What does BlockingCollection.Dispose actually do?
...
I have a WPF 4 application where I have implemented Drag and Drop using the standard DragDrop.DoDragDrop approach, but Im doing it using touch instead of Mouse events.
My XAML for my Grid (that Im dragging) is as follows:
<Grid x:Name="LayoutRoot"
ManipulationStarting="ManipulationStarting"
ManipulationDelta="Manipulation...
hi
i made a prism silverligght app with SL 4.0 and .net 4.0 ,
i published app and put it on in iis and make that as web application on iis ,
when i browse .svc page or other page i give "The page cannot be found" error.
i set mime types for .xap , .xaml , ...
my os is windows server 2003 sp1 r2.
what is problem?
...
I have an Intranet site reading the windows user name and using it for authentication in the website.
My code works locally but does not read the login name when hosted using IIS 6 on Windows Server 2003 with anonymous access checked. If I un-check anonymous access then in Firefox I keep getting a pop up for username and password which...
In our Smartclient app we currently use PostSharp to inject get/set code into auto properties to implement Dirty state tracking and INotifyPropertyChanged events.
We often use these business objects with LinqToSql. We'd like to remove this dependency on Postsharp, and the .Net 4.0 ExpandoObject looks perfect. We can add dynamic properti...
From my managed code (let's call it MyLib) I am using a library (let's call it OtherLib) that is basically a wrapper around some c++ code (I have never seen the wrapper code or have had access to its source, nor will I have it).
When my calling library is targetting the 3.5 framework all is good and dandy. When I make it target .NET 4.0...
I'm trying to load tokenGroups from Active Directory but it isn't working once deployed to a Windows Server (2003). I cannot figure out why, since it works fine locally...
Here is my error:
There is no such object on the server.
And here is my code (the sid variable is the current users SecurityIdentifier pulled from HttpContext):...