Click here to Skip to main content
Click here to Skip to main content

Deploying ASP.NET Websites on IIS 7.0

By , 4 Sep 2008
 
IIS7.JPG

Introduction

  1. Introduction to IIS 7.0
  2. Features of IIS 7.0
  3. Basic Architecture of IIS 7.0
  4. How to Deploy ASP.NET Websites on IIS 7.0
  5. How to Create Application Pool
  6. Assign Application Pool To Your Application
  7. Configure Web Garden on IIS 7.0
  8. IIS 6.0 Vs IIS 7.0
  9. Where Do I Get IIS 7.0
  10. References
  11. History

Introduction to IIS 7.0

Microsoft Internet Information Services (IIS) 7.0 in Windows Server 2008 and Windows Vista provides a secure, manageable platform for developing and administrating and hosting Web applications and services. It has been completely redesigned and Restructured .IIS 7.0 provides features and functionality for administrators to effectively manage Web infrastructures; developers to rapidly build Web applications and services; and hosters to Web hosting.

IIS7_new.JPG

Features of IIS 7.0

Following are some features of IIS 7.0:

  • IIS 7.0 provides features and functionality that enable administrators to reliably and effectively manage Web infrastructures.
  • IIS 7.0 has a distributed file-based configuration system that enables IIS settings to be stored in web.config files along with the ASP.NET settings.
  • IIS 7.0 provides a cost-effective, more scalable Web server platform for delivering reliable Web hosting to a broad set of customers.

Major innovations in IIS 7.0:

  • A modular, extensible core Web server
  • A unified, distributed file-based configuration system
  • Integrated health monitoring and diagnostics
  • A set of new administration tools with delegation support

For more features and product understanding, check here.

Basic Architecture of IIS 7.0

The following diagram shows the Overall Architecture of IIS 7.0 which contains HTTP.Sys, SvcHost.exe, Application Pool and Worker Process(W3Wp).

II7_Archi.JPG

The main components of IIS 7.0 are HTTP.Sys, Svchost.Exe, Application Pool , Worker Process (W3WP.exe) and Configuration Store.

HTTP.Sys: It the Kernel mode Protocol stack which listens to the HTTP and HTTPS Request. W3SVC and WAS are the parts of Svchost.exe. W3SVC is the Listener of Request from kernel mode that is passed by the HTTP.Sys. W3SVC also interacts with Windows Activation Process which is managed by the worker process by starting, stopping and recycling the application pool. It was also responsible for Health Monitor of Application Pool during runtime. Configuration stores all web.config and ASP.NET Settings and other configuration in XML Hierarchy form. W3wp.exe is a long-running process that processes requests and generates responses.

The following diagram shows you the process flow of IIS 7.0. This is the flow of User Request to IIS and gets the Response from IIS.

ProceessFlowofIIS.JPG

User Request Pass from Kernel Level to User Level Via Http.Sys and then passes to svchost, and then goes to Application Pool.

For more details, please click here.

How to Deploy ASP. Net Websites on IIS 7.0

From now onwards, I will describe one example to deploy your ASP.NET websites on IIS 7.0.

Step 1: From Visual Studio, publish your Web application.

Step 2: Copy the published application folder to "C:\intepub\wwwroot" [default] folder.

Step 3: From RUN - > inetmgr -> OK

The following screen will come. This is the main page for any application. There are three panels.

Main_DefaultIIS.JPG

"TestWeb" is a recently pasted webapplication on your wwwroot folder.

Step 4: We need to convert it to an application, just right click and then Click on "ConvertToApplication" as shown in the following picture:

ConvertToApplication.JPG

After converting it to application, its icon will be changed and then you can set the property for your web application from the middle pane. You can set IIS Authentication Mode, Default Page Just like IIS 6.0:

ConvertedToApplication.JPG

You can change Security Settings on Authentication Section. By default Setting will be set from your web.config itself. As in my web.config Form Authentication was set that's why, Forms Authentication has been Enabled. If we want to change the status, just double click and update status to Enabled to Disabled or Vice Versa.

AuthenticatinSettings.JPG

Now one most important part is to set the Application Pool for your application.

How to Create Application Pool

A site can contain many applications including that site’s default application, which is called the root application. In addition to belonging to a site, an application belongs to an application pool, which isolates the application from applications in other application pools on the server .

Step 1: Right Click on Application Pool and give the name of your pool. Here, I have given "pool" and select Framework and click on OK:

PoolCreation.JPG

Step 2: If you are writing some thing on the server [may be writes Error Events Logs], you need to change the Pool Identity to Local System. Right click on Pool Identity setting as shown in the following image:

There are three identities of Application Pool:

  • Network Service
  • Local Service
  • Local System
changePoolIdentity.JPG

Assign Application Pool To Your Application

Now, we need to assign the Application Pool to our web application.

Step 1: Right Click on "TestWeb" Application and Select "Advanced Settings":

asingAppPool.JPG

Step 2: Finally assign your created Application Pool "pool" to "TestWeb" Application.

FinalAppPoolAsign.JPG

Now you can run your application by just typing http:\\localhost\testweb and it can be accessible on network by IP also.

Configure Web Gardens in IIS 7.0

I have split this section into some parts. These are:

What is Application Pool ?

Application pools are used to separate set of IIS worker processes that share the same configuration. Application pools enable us to isolate our web application for better security, reliability, and availability. The worker process serves as the process boundary that separates each application pool so that when one worker process or application is having an issue, other applications or worker processes are not affected.

aPPpIOOL.JPG

Figure: Application Pool With Worker Process On IIS Server

In your IIS, there may be more on Web sites hosted and by creating Application Pool, you can just assign a Separate Worker Process to your application. I have already discussed how you can assign Application Pool to your web application.

Types of Application Pools

There are two predefined Application Pools is IIS 7.0:

  1. DefaultAppPool (Integrated)
  2. ClassicAppPool

None of the Application Pools are Installed by default when IIS 7.0 is installed. Classic Application Pool is installed when ASP.NET 2.0 is installed in the System.

Identity Of Application Pool

Application pool identity configuration is an important aspect of security in IIS 7.0, because it determines the identity of the worker process when the process is accessing resource. This Settings comes form IIS 6.0. in IIS 5.0. There the Application pool runs under the local system account. In IIS 7.0, there are three predefined Identities that are the same as IIS 6.0

Applicationpool Identity Description
LocalSystem LocalSystem is a built-in account that has administrative privileges on the server. It can access both local and remote resources
LocalServices LocalServices built-in account has privileges of an authenticated local user account. It does not have any network access permission.
NetworkServices This is the default Identity of Application Pool. NetworkServices has privileges of authenticated local user account and it can have access remote resource as machine account.

How to Create An Application Pool and Assign It to a Web Application?

This has already been discussed.

Creating Application Pool and Assigning it to a Web Application

What is Web Garden?

By default each Application Pool runs with a Single Worker Process (W3Wp.exe). We can assign multiple Worker Processes With a Single Application Pool. An Application Poll with multiple Worker process is called "Web Gardens". Many worker processes with the same Application Pool can sometimes provide better throughput performance and application response time. And each worker process should have their own Thread and Own Memory space.

WEb_Garden.JPG

Fig: General Block Diagram of Web Garden.

As given in the picture, in IIS Server there may be multiple Applicationpool and each application pool has at least a single Worker Process. Web Garden should contain multiple Worker processes.

There are certain restrictions to use Web Garden with your web application. If we use Session Mode to "in proc", our application will not work correctly because session will be handled by different Worker Process. To avoid this type of problem, we should have to use Session Mode "out proc" and we can use "Session State Server" or "SQL-Server Session State".

Main Advantage: The worker processes in a Web garden shares the requests that arrive for that particular application pool. If a worker process fails, another worker process can continue to process requests.

How to Create Web Garden?

Create a New Application Pool. Right Click -> Advance Setting -> Go To Process Model Section, set the Value for Maximum Worker Process.

IIS_Update.JPG

Is It Recommended to use Web Garden?

It not always recommended to use Web Garden to your Application. It effects the performance of your sites except in very specific cases like some long running synchronous requests or application is very unstable.

IIS 6.0 Vs IIS 7.0

The main advantages of IIS 7.0 is Modular Design which gives some benefits to IIS 7.0 over IIS 6.0. The following table shows you some differences of IIS 6.0 and IIS 7.0.

Features

IIS 6.0

IIS 7.0

Architecture Monolithic Modular
Setup Most Features Installed Minimum installation based on role
Extended Features ISAPI Filter and ISAPI Extension Added Module and handler in managed or native code
Customize UI Normal Customize for .NET

There are many more differences.

Where Do I Get IIS 7.0

IIS 7.0 will not be available with all Operating Systems. There are some specific OS and specific Versions for IIS 7.0.

Operating System With Edition Available
Windows Server 2008 Yes
Windows Vista (Home Basic) No (Default) need to install
Windows Vista (Home Premium) No (Default) need to install
Windows Vista (Business) Yes
Windows Vista (Ultimate) Yes

Reference

History

  • 08/20/2008:
    • Article published
  • 08/28/2008:
    • Added Section: Web Garden on IIS 7.0
    • Modified some text

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

About the Author

Abhijit Jana
Software Developer (Senior)
India India
Member
.NET Consultant | Former Microsoft MVP - ASP.NET | CodeProject MVP, Mentor, Insiders| Technology Evangelist | Author | Speaker | Geek | Blogger | Husband
 
Blog : http://abhijitjana.net
Web Site : http://dailydotnettips.com
Twitter : @AbhijitJana
My Kinect Book : Kinect for Windows SDK Programming Guide

Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board.
Search this forum  
    Spacing  Noise  Layout  Per page   
GeneralMy vote of 5memberItz.Irshad5 May '13 - 19:14 
Very useful information for beginners in IIS 7.0.
Keep it up !
GeneralMy vote of 1memberR koyee20 Mar '13 - 21:24 
didn't work needs update
Questionits workingmemberAmitkala2 Mar '13 - 21:45 
great work man its working like a charm Smile | :)
QuestionSqlserver database commands are not workingmemberMember 878084223 Feb '13 - 8:56 
Sir as you told i did and now i can access the website files over LAN in another computer through ISS but i have a registration.aspx form
 
In that the given username and password is getting stored in a sqlserver database that is attached with the project but it is not working where i am going wrong Frown | :( please help me
GeneralMy vote of 5memberdpalash5 Feb '13 - 18:50 
Thanks for sharing it is indeed a great article.
GeneralMy vote of 5memberMaddy_10088 Jan '13 - 23:17 
Nice. would like to read about IIS 7.5... Smile | :)
QuestionCaution/ RecommendationmemberMember 212708910 Dec '12 - 4:00 
Great tutorial but you indicated that users should change to Local System to allow them to write to the folder - "you need to change the Pool Identity to Local System"
 
Please use Local System with caution as it creates a security threat, opening your application to malicious users who can take over your machine. Instead modify security permissions for NETWORK SERVICE.
GeneralMy vote of 5memberANJYR29 Aug '12 - 5:25 
Thanks Sir...
 
I have one major doubt..
How to deploy website with database..means in which path i have to keep my database if that will be in SQL
QuestionIIS7 configuration errormemberhariom_soni18 Aug '12 - 4:11 
Dear Sir,
I tried to configure iis7 website but i got only error "Not found"
 
Please suggest me to solve error
AnswerRe: IIS7 configuration errormembershahnawaz92863 Feb '13 - 19:53 
Dear Sir,
I configure iis7 website but i got error when browse
 
Configuration Error
 

QuestionNice ArticlememberSuvabrata Roy19 Jul '12 - 21:55 
Will you please elaborate something on AppDomain and Worker Process ....
 
Thanks for The article
GeneralSession ProblemmemberMember 927399818 Jul '12 - 10:33 
Hello
 
I have a problem: web1-app1 web2-app2, a UserA enters your PC and supposedly closes the session of the application, a UserB login on the same PC user and UserB can see and it is mixed with the information of UserA. the implementation of Web Garden, I would solve this problem? or how I can fix?
 
Note: Your theme is excellent

GeneralNice Artical Thanks...memberSuvabrata Roy11 Jul '12 - 21:06 
Its really helps Smile | :)
Questiongreta articlememberMember 868709415 May '12 - 15:19 
Do not criticise, if you don't have any better idea.
GeneralMy Vote of 5memberShahin Khorshidnia12 May '12 - 19:37 
Good
Do not criticise, if you don't have any better idea.

GeneralMy vote of 5membersravani.v7 May '12 - 18:32 
My 5! Nice
GeneralMy vote of 5membermanoj kumar choubey2 Apr '12 - 22:15 
Nice
QuestionGreat article !!!!memberShay Yannay23 Feb '12 - 2:33 
Great article !!!!
QuestionMy ASP.NET Still Errormemberyugastio16 Feb '12 - 15:31 
i already follow your instruction. but I still find some error when i Load my web site..
"
HTTP Error 500.21 - Internal Server Error
Handler "PageHandlerFactory-Integrated" has a bad module "ManagedPipelineHandler" in its module list
"
 
and this:
Detailed Error Information
Module IIS Web Core
Notification ExecuteRequestHandler
Handler PageHandlerFactory-Integrated
Error Code 0x8007000d
Requested URL http://localhost:80/Rosalia/default.aspx
Physical Path C:\inetpub\wwwroot\Rosalia\default.aspx
Logon Method Anonymous
Logon User Anonymous
 
Any help? thanks
Questionmy programs on/off shows a blank window hthen how i am able to install iismemberMember 86266366 Feb '12 - 20:00 
please provide me solution
GeneralMy vote of 5membermojmos15 Nov '11 - 21:39 
thanks Abhijit Jana
GeneralMy vote of 5membersupriya chaladi10 Nov '11 - 19:58 
nice article perfect for the one i am searching
QuestionIs there a way to automate this?memberyaron klodovski21 Jun '11 - 23:58 
I provide to my custmers with an installation of my software. Today, the installation copies the WS components to "c:\inetpub\wwwroot\MyAppWS", but from there the customer has to set up the WS manually: create the application pool, convert to application etc.
 
Is there some way of scripting these steps, so I can run a script/batch file which will create everything automatically for the user, as part of installation?
 
Thank you! Smile | :)
GeneralURL Re-Wrtie with IIS - 7memberindSoftware15 Mar '11 - 19:04 
Hi,
 
I have developed my application using .Net 3.5, and now i'm trying to host my application in IIS 7 environment.
First i created a new App.Pool, which is Integrated and 32 bit support as true.
 
then i created a new web site and apply my application as well, fortunately without any problem its work fine.
 
but i face some difficulties when I've implement my URL-Write module in IIS 7.0 Frown | :( i used all url re-write functionality inside the Application_BeginRequest event. I've tried fixed that issue after i search some tips from web, but none of them are work for me. (i have tried tips from http://ruslany.net/2008/09/wildcard-script-mapping-and-iis-7-integrated-pipeline/[^])
 
my first question is -
 
1. Is there have any addition things to do for URL -re-write in IIS 7.0?
2 . When i checked Handler Mapping Section my application, all ISAPI are links to Framework/v1.1... path, i need to know why its connect to v1.1, not connecting to v2.0?
 
Pls help me this is urgent matter for me.
 
Thanks,
GeneralRe redirection to Login.aspxmemberAjay Kale New9 Sep '10 - 2:51 
Hi
 
I have a query regarding redirection to Login page, which I am not being able to trace out.
 
When I click on any of the tab in my application (which internally loads a new aspx page) sometimes it
is redirected to Login.aspx, which is unexpected. Couldnot debug why this is happening even by javascript alerts and C# debugging statements.
 
Below is the view source piece from Login.aspx, just for clue
<form name="Form1" method="post" action="login.aspx?ReturnUrl=%2fValuations%2fToDoList.aspx" id="Form1">
 
Valuations is the dll of application and ToDoList.aspx is the tab page I clicked which should load, but suddenly Login.aspx page is displayed. I traced the complete solution project.
 
Can you please help me...?
 
- Ajay K
GeneralSolved my ProblemmemberPrakash Varun 201023 Aug '10 - 8:29 
uuummmmah Solved my Problem Smile | :)
AnswerRe: Solved my ProblemmvpAbhijit Jana27 Aug '10 - 8:14 
Nice to know !!
Cheers !
Abhijit Jana | MVP
Web Site : abhijitjana.net | Follow Me @ twitter
Read my Latest Article :Mastering Debugging in VS 2010

GeneralMy vote of 5memberbigbulldawg5 Aug '10 - 3:19 
I wish I found this article before I wasted 2 hours trying to deploy to localhost! Cheers and thx
GeneralRe: My vote of 5mvpAbhijit Jana27 Aug '10 - 8:15 
Cheers man !
Cheers !
Abhijit Jana | MVP
Web Site : abhijitjana.net | Follow Me @ twitter
Read my Latest Article :Mastering Debugging in VS 2010

GeneralMy vote of 4memberAbhijeet Patil18 Jul '10 - 22:03 
Very good explaination for hosting on IIS7.
I did all the steps and I can now see my website via http://localhost/xxxx
 
I have one issue. I can not see my login controls like text box where I can enter user ID and password.
Meaning, I can only see the static controls like lables bot the the buttons and text boxes.
can you please help?
 
patilabhijeetj at gmail . com
QuestionError: alloe definition= machine to application levelmembermuralekarthick14 Jul '10 - 23:13 
Hi I went through your article it was very useful in configuring virtual directory, and i followed them, but in authentication section i got only 'Anonymous authentication only enabled' and not any form authentication but i fear my web config file has got some authentication,here i have copied section of my web config file which has authentication section:
authentication mode ="Forms"
Forms timeout="43200"
authentication
authorization
deny users"?"
authorization
 
pls help me in solving this issue.
GeneralAccess through remote systemmembershafaqat309_122 Jun '10 - 20:00 
It works well on my local system but when i try to access same site on remote system it shows error page.
Generaldotnet Error - Help to resolvememberveeruvvv12 Apr '10 - 20:56 
Hi

We have developed our Applications using dotnet framework2.0 and C#
Its running fine in IIS6.0. and windows server2003.

But when I try to run this in windows server 2008 and IIS7.0 . Its not recognizing the BIN folder where we kept the complied assembly .
 
A simple Dotnet file will works fine.

 

Thanks in Advance

Veeru
 
The error is as bellow,
'App_Web_transfer.aspx.17cb61a2' is nothing but complied file kept in BIN folder ,
The control is not at all passed to BIN folder .

Server Error in '/' Application.
--------------------------------------------------------------------------------
 
Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
 
Parser Error Message: Could not load the assembly 'App_Web_transfer.aspx.17cb61a2'. Make sure that it is compiled before accessing the page.
 
Source Error:
 

Line 1: <%@ page language="C#" autoeventwireup="true" inherits="management_transfer, App_Web_transfer.aspx.17cb61a2" enableviewstate="false" %>
Line 2:
Line 3: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

 

Source File: /eilapplication/management/transfer.aspx Line: 1
 

 
--------------------------------------------------------------------------------
 
Version Information: Microsoft .NET Framework Version:2.0.50727.3603; ASP.NET Version:2.0.50727.3601
AnswerRe: How to fix this issue..mvpAbhijit Jana5 Dec '09 - 19:56 
Please make sure there is a single web.config in the root folder of your web application.
 
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.

GeneralRe: Deployment works..butmvpAbhijit Jana5 Dec '09 - 19:51 
It nice to know that My suggestion helped you !!
 
gunasundari wrote:
I finished recently mcts.net 2.0 certification exam for 70-528.

Congrats !!!
For next paper I will suggest you to first read Microsoft Press Book !!
 
Congrats Again!!
 
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.

GeneralRe: Deployment works..butmvpAbhijit Jana25 Nov '09 - 20:24 
gunasundari wrote:
in the case of after deployment the website, the database only connected ,but data can not displayed in gridview..

How did you know only database connected ? Are you getting any error ?
 
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.

GeneralRe: Deployment works..butmvpAbhijit Jana25 Nov '09 - 21:47 
Guna,
I am not looking for the code. Are you sure that database is connected properly. As you are saying that database is connected but you are not able to view the data, that why am asking. please make sure that connection string is given properly.
 
Let me know if the issue has resolved.
 
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.

GeneralERROR WHILE DEPLOYING DOT NET 2.0 WEBSITE...memberMember 402573918 Sep '09 - 10:44 
hi,
I am hosting a dot net 2.0 website on GoDaddy.com
i have created it in dot net 2.0 framework...
and now hosting it on IIS 7.0 server..
 
There are several folders in the file manager in hosting control panel
for several websites. Now i have created a virtual directory for a folder to which my domain is linked.
 
now the when i see the website on internet, its showing me HTML pages but it is not showing me ASPX pages Frown | :( Frown | :(
its giving some error..
can you please help me in this?
 
website : http://www.rahulphotographic.com
and affected page is contactus.aspx
 
please help me regarding this..
thanks in advance
 
- Amit
GeneralQueries regarding HostingmemberTrupti Mehta10 Aug '09 - 3:38 
I have developed a asp.net site with MS SQL (still working on it), and now want to host on a domain (have all details) and see it running live. The hosting site has IIS 7, .net 3.5, general Application Pool. Their wasn't DSN for the MS SQL, so I installed it and it is now sert up.
 
As you have explained in this article, to publish the project and upload those files to the server. I published the project, but wan't satisfied with the results. The published folder showed only .aspx files, and a dll, pdb, xml file in bin, and data in App_data folder.
 
I want to know what happens to the code behind files and the class .vb files.
 
As I was unsatisfied with the results, I uploaded files normally and I am getting "500 Internal sErver Error. The resource could not find what it needs and the error could not be displayed" message.
 
In the customErrors, I changed the mode to On and provided html file locations for Application error, 403 and 404. If I have to give html only, then how can I access the erro code and display the stack trace to find the eroor.
 
One more point, your articles says to upload the published folder. But my hosting site doesn't allow me to upload folders, I got to upload file(s). So if I create the published folder name same as the name hosted on site and then uplaod the files, that should be good enough?
 
Info regarding hosted one:
I created a name under IIS Manager "scalendar". In File Manager, I got "scalendar" folder and I upload files there. I can access the page http:\\qschedule.net\scalendar, so I think I must have done it correctly. Yet if needs some corrections, please let me know.
 

Can you please throw some proepr light on the errorpages and deployment stuff. I am totally new to asp.net and IIS. So, please help me out. I have already spent 2 days figuring out what's going on and how to do to achieve the goal. I also looked on net for such topics but couldn't find any thing helpful (except your article, but ...). Please Try to help me at the earliest.
 
Thanks
 
Terry

GeneralError from asp.net deployment on IIS 7memberopunarcisse20 Jul '09 - 3:33 
I have developed an asp.net application called "camcudaf" with the framework 3.5. I have installed IIS 7 and it came with its’ default framework 2.0. All applications I have tried to deploy gave me the same error message. I wonder if the cause may be the frameworks (the deployment framework (3.5) is different from the development framework (2.0)). I followed the stages of the example above, but i couldn't make it work. Could anyone help me out?
Below is a copy of the copy of the error messages.
 
Server Error in '/camcudaf' Application.
 
Compilation Error
 
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
 
Compiler Error Message: CS0016: Could not write to output file 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\camcudaf\3a576d32\430c26f4\App_Code.unyx_iz5.dll' -- 'Access is denied. '
 
Source Error:
 
[No relevant source lines]
 
Source File: Line: 0
 
Show Detailed Compiler Output:
 

** Below is a detailed output of the error message **
 

c:\windows\system32\inetsrv> "c:\Windows\Microsoft.NET\Framework\v3.5\csc.exe" /t:library /utf8output /R:"C:\Windows\assembly\GAC_MSIL\System.Web.Services\2.0.0.0__b03f5f7f11d50a3a\System.Web.Services.dll" /R:"C:\Windows\assembly\GAC_32\System.Data\2.0.0.0__b77a5c561934e089\System.Data.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.Xml\2.0.0.0__b77a5c561934e089\System.Xml.dll" /R:"C:\Windows\assembly\GAC_MSIL\System\2.0.0.0__b77a5c561934e089\System.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.WorkflowServices\3.5.0.0__31bf3856ad364e35\System.WorkflowServices.dll" /R:"C:\Windows\assembly\GAC_32\System.Web\2.0.0.0__b03f5f7f11d50a3a\System.Web.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.Xml.Linq\3.5.0.0__b77a5c561934e089\System.Xml.Linq.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.Data.DataSetExtensions\3.5.0.0__b77a5c561934e089\System.Data.DataSetExtensions.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.Drawing\2.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.Runtime.Serialization\3.0.0.0__b77a5c561934e089\System.Runtime.Serialization.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.ServiceModel.Web\3.5.0.0__31bf3856ad364e35\System.ServiceModel.Web.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.Windows.Forms\2.0.0.0__b77a5c561934e089\System.Windows.Forms.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.Web.Mobile\2.0.0.0__b03f5f7f11d50a3a\System.Web.Mobile.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.Web.Extensions\3.5.0.0__31bf3856ad364e35\System.Web.Extensions.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.Design\2.0.0.0__b03f5f7f11d50a3a\System.Design.dll" /R:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\mscorlib.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.IdentityModel\3.0.0.0__b77a5c561934e089\System.IdentityModel.dll" /R:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\camcudaf\3a576d32\430c26f4\assembly\dl3\8fa10131\00f74ee1_b796c901\AjaxControlToolkit.DLL" /R:"C:\Windows\assembly\GAC_MSIL\System.Web.Extensions.Design\3.5.0.0__31bf3856ad364e35\System.Web.Extensions.Design.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.Configuration\2.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.Core\3.5.0.0__b77a5c561934e089\System.Core.dll" /R:"C:\Windows\assembly\GAC_32\System.EnterpriseServices\2.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.ServiceModel\3.0.0.0__b77a5c561934e089\System.ServiceModel.dll" /out:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\camcudaf\3a576d32\430c26f4\App_Code.unyx_iz5.dll" /D:DEBUG /debug+ /optimize- /w:4 /nowarn:1659;1699;1701 /warnaserror- "C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\camcudaf\3a576d32\430c26f4\App_Code.unyx_iz5.48.cs" "C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\camcudaf\3a576d32\430c26f4\App_Code.unyx_iz5.3.cs" "C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\camcudaf\3a576d32\430c26f4\App_Code.unyx_iz5.44.cs" "C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\camcudaf\3a576d32\430c26f4\App_Code.unyx_iz5.9.cs" "C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\camcudaf\3a576d32\430c26f4\App_Code.unyx_iz5.0.cs" "C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\camcudaf\3a576d32\430c26f4\App_Code.unyx_iz5.17.cs" "C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\camcudaf\3a576d32\430c26f4\App_Code.unyx_iz5.42.cs" "C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\camcudaf\3a576d32\430c26f4\App_Code.unyx_iz5.37.cs" "C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\camcudaf\3a576d32\430c26f4\App_Code.unyx_iz5.14.cs" "C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\camcudaf\3a576d32\430c26f4\App_Code.unyx_iz5.15.cs" "C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\camcudaf\3a576d32\430c26f4\App_Code.unyx_iz5.16.cs" "C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\camcudaf\3a576d32\430c26f4\App_Code.unyx_iz5.1.cs" "C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\camcudaf\3a576d32\430c26f4\App_Code.unyx_iz5.10.cs" "C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\camcudaf\3a576d32\430c26f4\App_Code.unyx_iz5.11.cs" "C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\camcudaf\3a576d32\430c26f4\App_Code.unyx_iz5.12.cs" "C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\camcudaf\3a576d32\430c26f4\App_Code.unyx_iz5.13.cs" "C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\camcudaf\3a576d32\430c26f4\App_Code.unyx_iz5.51.cs" "C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\camcudaf\3a576d32\430c26f4\App_Code.unyx_iz5.4.cs" "C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\camcudaf\3a576d32\430c26f4\App_Code.unyx_iz5.29.cs" "C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\camcudaf\3a576d32\430c26f4\App_Code.unyx_iz5.18.cs" "C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\camcudaf\3a576d32\430c26f4\App_Code.unyx_iz5.19.cs" "C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\camcudaf\3a576d32\430c26f4\App_Code.unyx_iz5.50.cs" "C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\camcudaf\3a576d32\430c26f4\App_Code.unyx_iz5.6.cs" "C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\camcudaf\3a576d32\430c26f4\App_Code.unyx_iz5.45.cs" "C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\camcudaf\3a576d32\430c26f4\App_Code.unyx_iz5.46.cs" "C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\camcudaf\3a576d32\430c26f4\App_Code.unyx_iz5.47.cs" "C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\camcudaf\3a576d32\430c26f4\App_Code.unyx_iz5.40.cs" "C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\camcudaf\3a576d32\430c26f4\App_Code.unyx_iz5.41.cs" "C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\camcudaf\3a576d32\430c26f4\App_Code.unyx_iz5.5.cs" "C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\camcudaf\3a576d32\430c26f4\App_Code.unyx_iz5.43.cs" "C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\camcudaf\3a576d32\430c26f4\App_Code.unyx_iz5.34.cs" "C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\camcudaf\3a576d32\430c26f4\App_Code.unyx_iz5.35.cs" "C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\camcudaf\3a576d32\430c26f4\App_Code.unyx_iz5.36.cs" "C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\camcudaf\3a576d32\430c26f4\App_Code.unyx_iz5.7.cs" "C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\camcudaf\3a576d32\430c26f4\App_Code.unyx_iz5.30.cs" "C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\camcudaf\3a576d32\430c26f4\App_Code.unyx_iz5.31.cs" "C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\camcudaf\3a576d32\430c26f4\App_Code.unyx_iz5.32.cs" "C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\camcudaf\3a576d32\430c26f4\App_Code.unyx_iz5.33.cs" "C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\camcudaf\3a576d32\430c26f4\App_Code.unyx_iz5.38.cs" "C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\camcudaf\3a576d32\430c26f4\App_Code.unyx_iz5.39.cs" "C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\camcudaf\3a576d32\430c26f4\App_Code.unyx_iz5.49.cs" "C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\camcudaf\3a576d32\430c26f4\App_Code.unyx_iz5.24.cs" "C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\camcudaf\3a576d32\430c26f4\App_Code.unyx_iz5.25.cs" "C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\camcudaf\3a576d32\430c26f4\App_Code.unyx_iz5.26.cs" "C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\camcudaf\3a576d32\430c26f4\App_Code.unyx_iz5.27.cs" "C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\camcudaf\3a576d32\430c26f4\App_Code.unyx_iz5.20.cs" "C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\camcudaf\3a576d32\430c26f4\App_Code.unyx_iz5.21.cs" "C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\camcudaf\3a576d32\430c26f4\App_Code.unyx_iz5.22.cs" "C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\camcudaf\3a576d32\430c26f4\App_Code.unyx_iz5.23.cs" "C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\camcudaf\3a576d32\430c26f4\App_Code.unyx_iz5.2.cs" "C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\camcudaf\3a576d32\430c26f4\App_Code.unyx_iz5.28.cs" "C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\camcudaf\3a576d32\430c26f4\App_Code.unyx_iz5.8.cs"
 

Microsoft (R) Visual C# 2008 Compiler version 3.5.30729.1
for Microsoft (R) .NET Framework version 3.5
Copyright (C) Microsoft Corporation. All rights reserved.
 
error CS0016: Could not write to output file 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\camcudaf\3a576d32\430c26f4\App_Code.unyx_iz5.dll' -- 'Access is denied. '
 

Version Information: Microsoft .NET Framework Version:2.0.50727.3074; ASP.NET Version:2.0.50727.3074
 

 

Best Regards
GeneralRe: Error from asp.net deployment on IIS 7mvpAbhijit Jana21 Jul '09 - 23:44 
opunarcisse wrote:
I have developed an asp.net application called "camcudaf" with the framework 3.5. I have installed IIS 7 and it came with its’ default framework 2.0. All applications I have tried to deploy gave me the same error message. I wonder if the cause may be the frameworks (the deployment framework (3.5) is different from the development framework (2.0)). I followed the stages of the example above, but i couldn't make it work

Yes, Default framework should 2.0.x.x. Framework 3.0 and 3.5 just update the dll. So it is ok. No need to Worries.
 
Resolution of your Problem :
You have installed IIS after .NET Framework install in your computer. So the problem is your IIS is not registered with asp.net . So what you need to do.
Go to Framework Directory and run aspnet_regiis -i command
e.g :
C:\\Windows\Microsoft.Net\Framework\Version 2.0.x.x > aspnet_regiis -i
Hope this will help you.
 
cheers,
Abhijit
CodeProject MVP
Web Site:abhijitjana.net
My Latest Article : IIS Remote Debugging

GeneralRe: Error from asp.net deployment on IIS 7memberopunarcisse29 Jul '09 - 8:41 
Hello,
Thanks for your help . I resolved already . it had to do with access rights on the published folder.
The application is up and running but I can't access my database. I thing my connect string is the problem. I am using the same connection string from the VS2008 but it doesn't work. this connection string works well in development environment . Is there some thing I need to change in the connection string .
i an using an sql express 2005 on vista. I have tried all I know. could you please help me .
Thanks in advance.
Narcisse
GeneralDeployment of ASP.NET websitemembercwleecw19 Jul '09 - 21:42 
I have Windows Vista Premium with IIS installed.
 
I have deployed a website by creating virtual directory in the default web site and also disabled the
 
Windows Firewall.
 
Now, I am encountering two problems.
 
1. Some of my friends can access the website successfully while some failed and received an error message "Internet Explorer cannot display the webpage". They are both from external network.
 
2. I have a file upload control in the webpage. Some of my friends can upload the file while some received an error " runtime error : An application error occurred on the
server. The current custom error settings for this application prevent the
details of the application error from being viewed remotely (for security
reasons). It could, however, be viewed by browsers running on the local
server machine.
 
In addition, since I am new to ASP.NET, I would like to ask what kind of permissions I am supposed to set (and what folder) when I have to deploy ASP.NET website for public access?
GeneralRe: Deployment of ASP.NET websitemvpAbhijit Jana19 Jul '09 - 21:50 
First of All, Thanks For Reading my article Smile | :)
cwleecw wrote:
1. Some of my friends can access the website successfully while some failed and received an error message "Internet Explorer cannot display the webpage". They are both from external network.

Both are the External user and one are able to access and other not. D'Oh! | :doh: It should not be happened. What is the Access Permission Did you Give for the Virtual Directory ? Did you tried with "Anonymous". ?
Please try with Anonymous permission and let me know the result.
 
cwleecw wrote:
I would like to ask what kind of permissions I am supposed to set (and what folder) when I have to deploy ASP.NET website for public access?

1. You have to give the Anonymous access to your virtual Directory.
2. If you are giving the functionality like File Uploading, you can do two thing
> Give the Write access Permission to Everyone to the folder where you are uploading file.
> Create a separate Application Pool and change the Identity of Application Pool to "Local System" For your Web Site.
 
Hope This will help you.
 
Let me know if you have any issue. Smile | :) Thumbs Up | :thumbsup:
 
cheers,
Abhijit
CodeProject MVP
Web Site:abhijitjana.net
My Latest Article : IIS Remote Debugging

GeneralRe: Deployment of ASP.NET websitemembercwleecw19 Jul '09 - 22:03 
Wow, you are so fast.
 
I really appreciate your help !!!
 
I will notify you once I get the result.
 
By the way, how do you learn those ASP.NET stuff, i am a current university student and I think most of the courses in University are too theoretical. We know how to program ASP.NET, but don't know its deployment and relevant issues at all.
 
Also, i would really appreciate if you can provide some information about permissions of folder that I have to consider when I have to deploy a website, since it was really confusing.
 
Thanks again for your help.
 
Regards,
Chris
GeneralRe: Deployment of ASP.NET websitemembercwleecw20 Jul '09 - 18:50 
Hello,
 
My website works perfectly, thank you very much !!!
 
However, here i have another problem, it's about Microsoft Access.
 
Since my database of the website is Access, when I try to insert sth containing the character ' , it will give me an error.
 
For example, i want to insert a field called description, where description = " don't say hello world!"
 
since "don't" contains ', it all crashes.
 
Anyway to solve this issue ?
GeneralRe: Deployment of ASP.NET websitemvpAbhijit Jana21 Jul '09 - 23:37 
cwleecw wrote:
Since my database of the website is Access, when I try to insert sth containing the character ' , it will give me an error.
 
For example, i want to insert a field called description, where description = " don't say hello world!"
 
since "don't" contains ', it all crashes.

This is all about Script Injection. Are you getting error like "A dangerous reqest......" .
 
You need to very careful regarding the Script Injection and SQL Injection Problem.
If you are taking data from which can cause scripting problem, try to encode and decode the text. You will find lots of stuff over net.
 
And Nice to no, My suggestion helps you !!! Smile | :)
 
Let me know if you have any further issue.
You can check my latest article on IIS remote debugging. Smile | :)
 
cheers,
Abhijit
CodeProject MVP
Web Site:abhijitjana.net
My Latest Article : IIS Remote Debugging

GeneralIIS6membermbaocha3 May '09 - 10:19 
This is informative. I'll refrence it when i make the decision to switch to iis 7. But for now,
i think i'm contented with 6.0. All thesasme, its informative.
 

__________________________________________________________________________________________
Cheap Affordable Web Hosting & Design | Best PHP MySQL Linux Web Hosting | ASP.NET Windows Hosting
GeneralRe: IIS6mvpAbhijit Jana3 May '09 - 19:12 
Thanks !
 
cheers,
Abhijit
CodeProject MVP
Web Site:abhijitjana.net

GeneralQuestionsmemberMohammed Gouda22 Dec '08 - 0:32 
I am publishing from another machine with WinXP as follows
From Visual Studio 2008, I right click the web project and click Publish
There are 2 scenarios
- If the IIS7 authentication mode is set to forms authentication, I get an error message saying "The web server does not appears to have any authentication enabled"
- If the IIS7 authentication mode is set to Basic authentication, It asks for username and password
 
Also, I need to know how to define my home page from IIS 7
There is a feature named Default document but it does not take the full path
 
Thanks
 
foreach(Minute m in MyLife)
myExperience++;

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Permalink | Advertise | Privacy | Mobile
Web04 | 2.6.130516.1 | Last Updated 5 Sep 2008
Article Copyright 2008 by Abhijit Jana
Everything else Copyright © CodeProject, 1999-2013
Terms of Use
Layout: fixed | fluid