.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Visual Studio 2010, MVC2.0, IIS7, .NET4 deployment problem

Posted By:      Posted Date: August 31, 2010    Points: 0   Category :ASP.Net
I have a problem where I can get an MVC2.0 application using .NET3.5 running in IIS, but when I upgrade it to .NET4.0, the browser just reports error 500 Internal Server Error. The problem is easy to replicate as follows.  Firstly, to show it works with .NET3.5: Create a new MVC2.0 application in Visual Studio 2010, using the inbuilt starter template. Run the application using the development server, and the Home & About pages display fine. Publish the application to a directory. Copy the directory to a subdirectory under inetpub/wwwroot on my Vista computer, running IIS7 Create a new application in IIS Manager & select the DefaultAppPool (integrated pipeline) Browse the application and Home & About pages are displayed. Then the problem I have is after upgrading to .NET4.0: Change to .NET4.0 for the project in Visual Studio Build & this runs fine with the development server. Publish the application & set up IIS as before, except choosing the application pool ASP.NET v4.0 (integrated pipeline) Browse the application, and I get the 500 Internal Server Error I'm guessing there is some extra configuration required - can anyone help? I've deliberately used the default MVC installation to eliminate any variables caused by my programming .. Thanks in advance, Steve

View Complete Post

More Related Resource Links

Extreme ASP.NET: Search Engine Optimization with ASP.NET 4.0, Visual Studio 2010 and IIS7


In this article, the author takes a look at SEO practices that the reader can apply when using the latest Microsoft Web technologies.

Scott Allen

MSDN Magazine September 2009

Video: SharePoint 2010 Solution Deployment in Visual Studio 2010

This video delves into the details of packaging and deployment for SharePoint solutions in Visual Studio 2010. (Length: 9:16)

Visual Studio 2010 & IIS7 / ASP 4.0

Hi,I recently upgraded from Visual Studio 2008 to the new 2010, after it had installed I opened a local website to begin working on it, it asked me if I wanted to update the web.config file to the new ASP version 4.0 - I clicked yes.After this I receive a server error'd regarding the ASP version 4.0 - any ideas?Thanks.


I'm getting an error when i connect the form(which has a chart object in it) to a database... I've another project where it is already to the database. There i couldn't find the chart object in the toolbox... please help me... PS: i'm using VISUAL STUDIO 2010

visual studio 2010 pro web site running problem


hi friends.

i seted up visual studio 2010 to my pc before 2 mounts and i did not have any problem. after i formated my pc vs2010 not running web site projects. sortly when i run it on internet explorer open but its cant open project. its like there is no any websites, what is problem.

thanks all. 

Authentication/Firewall problem and Visual studio 2010


i have windows server 2008 running on my pc. i have been able to setup client/server network with a domain. i login on th e client pc and tried to create a website project with VS2010. but each time i choose iis7 of the server i get the following error : the web server does not appear to have any authentication methods enabled. It asked for user authentication, but did not send a WWW-Authenticate header. although i have enable form authentication on the web server and i can access from the client pc the default page of IIS7.Does anyone have any explanation on that? thanks

CLR Deployment issue sql server 2008 r2 visual studio 2010



 i am getting the following error while deploying the clr project converted frm vs2008 to vs2010. Please help me


Compile complete -- 0 errors, 24 warnings

Bloomberg_WSDL -> D:\Projects\STP\Development\BBG-WSDL\SS-BBG-WSDL\bin\Release\Bloomberg_WSDL.dll

------ Deploy started: Project: Bloomberg_WSDL, Configuration: Release Any CPU ------

Build started 11/22/2010 7:07:50 PM.


Beginning deployment of assembly Bloomberg_WSDL.dll to server : stpQA01

C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\TeamData\Microsoft.Data.Schema.SqlClr.targets(96,5): error : Could not connect to server stpQA01 : Login failed for user 'stpuser'.


Time Elapsed 00:00:00.07

========== Build: 1 succeeded or up-to-date, 0 failed, 0 skipped ==========

========== Deploy: 0 succeeded, 1 failed, 0 skipped ==========


Visual Studio 2010 Gives Problem when I have Multiple Web Application and one refer other



I am developping the ERP Web Application. My solution structure is as given  below.

Main Web Application -  Having reference to All Module Web Application.

Common Web Application - Has Master Page, User Control, Login page, Defualt Error and etc

Module Web Application -  Having Module wise Aspx and code behind. It refer Common Web Application to reduce redundacy.

In this Context we are facing the following problem.

1) while running web application in the debug mode it gives error as 'the target assembly contains no service types.
 You may need to adjust the Code Access Security policy of this assembly'

2) Could not Debug both Module and Common Web Application.

3) In Design Time both Master or user control not renders in refered Aspx Page.

4) While I debug in visual studio 2010, it gets restart after some time.


Kindly Advice on the same.

Thanks in Advance










Web Application Deployment with Visual Studio 2010 and SQL Server 2005?



Is it possible to do a web application deployment(create package/publish sql & package/publish web) with Visual Studio 2010 and SQL Server 2005?

I'm trying my  hand at this new feature - I have an application created in VS2010 and the backend is SQL Server 2005

I read on msdn that the pre-requisites for the database part of the web application deployment is SQL Server Express 2008 or later versions for the tutorial they posted...Is that mandatory for any deployments??

Thanks for your help! Smile


Problem in the code of "Assembly" in Visual studio 2010


Program is

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Myclasslib1;

namespace WindowsFormsApplication5
    public partial class Form1 : Form
        public Form1()
        class c1=new class();
        private void button1_Click(object sender, EventArgs e)
            int x=c1.sum(Convert.ToInt32(TextBox.Text),Convert.ToInt32(TextBox.Text));
 Error is

1.Error    6    'WindowsFormsApplication5.Form1.c1' does not contain a definition for 'sum'   

Problem in the code of "Assembly" in Visual studio 2010 of C#


The code is as follows

using System;

using System.Collections.Generic;

using System.ComponentModel;

using System.Data;

using System.Drawing;

using System.Linq;

using System.Text;

using System.Windows.Forms;

using myclasslib;

namespace myclasslib


public partial class Form1 : Form


public Form1()




Myclass m1 = new Myclass();

Myclass2 m2 = new Myclass2();

private void button1_Click(object sender, EventArgs e)


int s = m1.Sum(35, 36, 37);



private void button2_Click(object sender, EventArgs e)


string s2=m2.StringFormat("abhishek");



class1 c1 = new class1();

private void button3_Click(object sender, EventArgs e)


int z=c1.MyFun(56,98);

MessageBox.Show(z.ToString()); } } } }

Errors are :

Error    3    The type or namespace name 'class1' could not be found (are you missing a using directive or an assembly reference?)   

Error    6    'myclasslib.Myclass2' does not contain a definition for 'StringFormat' and no extension method 'StringFormat' acceptin

ASP.NET 4 and Visual Studio 2010 Web Development Beta 2 Overview

Many exciting changes for ASP.NET are coming in the .NET Framework version 4. This document gives an overview of many of the new features that are included in the Beta 2 release of the .NET Framework 4 and of Visual Studio 2010.

Visual Studio 2010 Beta 2

This is a big deal. This isn't ".NET 3.6" - there are a lot of improvements of .NET 4, and it's not just "pile on a bunch of features so you get overwhelmed." I've been working with and talking to many of the teams involved and even though it's a cheesy thing to say, this is a really customer-focused release.

ASP 4 - Whirlwind Tour around .NET 4 (and Visual Studio 2010) Beta 1

There's a lot of stuff that's new and added in .NET 4, but not in that "overwhelming-I-need-to-relearn-everything" way. More in that, "oh, this is way easier/simpler now" way. Like, moving data around with ADO.NET DataServices is easy, binding with client templates is easy, there's F# if you need it, the "dynamic" keyword if you need it, Silverlight's already installed, oh, and the parallel stuff will freak you out, but in a good way.

Short Overview of SharePoint Features in Visual Studio 2010

As you probably know, Visual Studio 2010 was announced earlier this week and it contains a lot of cool features and project templates for SharePoint developers. Below is a short overview for some of the SharePoint development related features and project templates.

Code spelling checker extension for visual studio 2010

Building a spelling checker for source code as an extension for visual studio 2010.

is it possible to convert whole visual studio 2008 web site project to visual studio 2010 web site p


is it possible to convert whole visual studio 2008 web site project to visual studio 2010 web site project


my current project references




i have a very annoying iis problem

iis server stops working until app pool is recycled


i am hoping that new visual studio (net framework 4.0) may solve this very annoying unsolveable problem


ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend