Error in publishing web page with IIS - asp.net

With the demonstration web page of the visual studio 2013 I've published on my local server using the FileSystem option.
Following the msdn example (https://msdn.microsoft.com/en-us/library/vstudio/1y1404zt(v=vs.100).aspx) I have loaded this web page with the IIS. But when I try to open the web page in my internet browser the following error occurs:
**Error HTTP 500.19 - Internal Server Error
The requested page cannot be accessed because the related configuration data for the page is invalid.
Config Error: This configuration section cannot be used at this path. This happens when the section is locked at a parent level. Locking is either by default (overrideModeDefault="Deny"), or set explicitly by a location tag with overrideMode="Deny" or the legacy allowOverride="false". **
I have tried many different configurations based on these links, without success, one of them is https://social.msdn.microsoft.com/Forums/vstudio/en-US/6e79cb01-ffb0-439c-8e1c-505a29b87671/iis7-http-error-50019-internal-server-error?forum=dotnetstocktradersampleapplication

Please try this
1) Click "Start button"
2) In the search box, enter "Turn windows features on or off"
in the features window, Click: "Internet Information Services"
3) Click: "World Wide Web Services"
4) Click: "Application Development Features"
5) Check (enable) the features. Check all except CGI.

Problem Solved!
I've done this steps:
1) Click "Start button"
2) In the search box, enter "Turn windows features on or off"
in the features window, Click: "Internet Information Services"
3) Click: "World Wide Web Services"
4) Click: "Application Development Features"
5) Check (enable) the features. Check all except CGI.
then I got another error message and solved doing what this link suggested:
How to add ASP.NET 4.0 as Application Pool on IIS 7, Windows 7

Change .NET framework version of your website's Application Pool to 4.0
Steps:
In IIS, click Application Pools
Select the application pool which you have created/configured for
your website
Right Click -> Select "Basic Settings"
Change .Net Framework Version to v4.0...

Related

How to make a classic ASP application work

I have a classic asp application that is very old an d I want to make it work, any help would be appreciated because I don't have much idea on how to do so
Check this threads on stack over flow -
How to guide for getting a classic asp application working under IIS 7.0
How to deploy classic asp website?
OR
check this steps also -
To use the UI on Windows Server 2008 or Server 2008 R2
Click Start, point to Administrative Tools, and then click Server Manager.
In Roles Summary, click Add Roles.
Use the Add Roles Wizard to add the Web Server (IIS) role.
For detailed instructions about how to install a default IIS 7 Web server, see Deploying a Static Content Server (IIS 7).
On the Select Role Services page, note the preselected role services that are installed by default, and then select the following additional role services:
ASP
Request Filtering
ISAPI Extensions
On the Summary of Features to Install page, confirm your selections, and then click Install.
On the Installation Results page, confirm that your installation of the Web Server (IIS) role and required role services completed successfully, and then click Close.
To verify that IIS installed successfully, type the following into a Web browser:
http://localhost
You should see the default IIS 7 Welcome page.
To use the UI on Windows Vista or Windows 7
Click Start, and then click Control Panel.
In Control Panel, click Programs, and then click Turn Windows features on or off.
In the Windows Features dialog box, click Internet Information Services to install the default features, and then select the following additional features:
ASP
Request Filtering
ISAPI Extensions
Click OK to close the Windows Features dialog box.
To verify that IIS installed successfully, type the following into a Web browser:
http://localhost
You should see the default IIS Welcome page.

deploying mvc 4 asp.net with iis in windows 7

i created a mvc4 asp.net app using the default template within visual studio 2012. i can build and run the app with no problem.
now im trying to host this in my computer (windows 7 ultimate). i turned on iis in my machine, and i did this :
open iis manager
right click sites and "Add Web Site"
set site name to "site1"
set physical path to "C:\Users\DaFriskyMonkey\Documents\Visual Studio 2012\Projects\mvc4app"
click "Ok"
then i go to "Application Pools" and change".Net Framework version" to "v4.0"
so when i navigate to "localhost" i got this : HTTP Error 401.3 - Unauthorized
You do not have permission to view this directory or page because of the access control list (ACL) configuration or encryption settings for this resource on the Web server.
when i go to "edit permissions" for the "mvc4app" folder "IIS_IUSRS" has "read" permission.
what should i do to make things work properly.
thanks you all.

setting up site in windows 7 for asp.net application

Bought a Win 7 64-bit machine and installed vs2010 and things are fine.
Now i want to create a site in IIS for one of my asp.net application, so that i can access and get the site served from IIS rather than from WebDev.Webserver.exe.
Googled a lot, but haven't find a solution. Can any one help me on this.
Not sure if you have IIS installed but here is how to do it. Provided you have the correct edition of Windows 7 (Professional or Ultimate).
Summary:
Start > Control Panel > Programs
click on Turn Windows features on or off.
Check the box for 'Internet Information Services (IIS)
Once installed you can follow the steps included on the microsoft website. This should get you up and running.
Summary:
Open IIS Manager.
In the Connections pane, right-click the Sites node in the tree, and then click Add Web Site.
In the Add Web Site dialog box, type a name for your Web site in the Web site name box.
Click Select if you want to select a different application pool than the one listed in the Application Pool box. In the Select
Application Pool dialog box, select an application pool from the
Application Pool list and then click OK.
In the Physical path box, type the physical path of the Web site's folder, or click the browse button (...) to navigate the file system
to find the folder.
If you do not have to make any changes to the site, and you want the Web site to be immediately available, select the Start Web site
immediately check box.
Click OK.

Where can I find Web Sharing in Microsoft Windows Server 2008 R2?

I am trying to set up a new application and one of the steps requires Web Sharing.
Here are the steps:
Here are the instructions on how to Deploy the Application Layers to LocalHost
1) Make Sure IIS is running!
2) Open Windows Explorer and navigate to c:\inetpub\wwwroot
3) Open the "Enterprise" directory. You will see many sub-directories there including "EnterpriseASP" and "EnterpriseWS"
4) Right-Click on the "EnterpriseWS" Directory
4) Select "Properties"
5) Select "Web Sharing"
6) On the Web Services Tab, the "Share On" drop-down should say "Default Web Site", if not, click on the drop down and select it.
7) Click on the "Share This Folder" radio button, and then the "EnterpriseWS" entry should come up under the "Aliases" list.
8) Now press the "Add" button, and an "Add Alias" or "Edit Alias" box should pop-up on the screen, Accept the defaults for the "Access Permissions" part of the screen ((Read Should be checked) and under the "Application Permissions" section "Execute Including Scripts" should be selected. Accept the other defaults given and select "OK"
9) Select "Apply" and close this window
Repeat all of the same above steps for "EnterpriseASP", and any of the other Enterprise applications that you will be using, like EnterpriseHelp, EnterpriseHelpDesk, EnterpriseCRM, EnterprisePOS, EnterpriseCart, EnterpriseBudget.
So how to solve this ? I can't find it on my windows.
Those windows explorer integration points were removed with IIS 7. You will have to set those directories and permissions up via the IIS manager. These articles should help-
How to: Open IIS Manager
How to: Create and Configure Virtual Directories in IIS 7.0
On C:\inetpub\wwwroot there are only 3 files 1-aspnet_client 2-iisstart 3-welcome and no "Enterprise" directory, so I was not able to web share the folder which I can then find on inetmgr
The solution I found is that:
Run->Inetmgr->Sites->Right clickt (Default Website)->Add Application->Browse Physcial Path->Give Site Name
Khi., Pakistan

How do I set the ASP.NET version for a Virtual Directory using IIS Manager 7.0?

In the old version of IIS Manager, I could just right-click on a VD, hit properties, and then in the ASP.NET tab pick the version of ASP.NET I wanted to run. Does anyone know if that is still possible? I am running a localhost instance of IIS on my Vista box and I am not used to the new UI that IIS 7 comes with.
You need to change the application pool - the ASP.NET version is set at the application pool level.
Left click the virtual directory in IIS manager, then on the far right of the screen click on 'advanced settings' The application pool is at the top of the list there.
If you need to, you can add a new application pool by right clicking the 'application pools' icon in the left pane and selected 'Add Application Pool'
IIS7 has two options within a "website". In IIS6 you'd add a sub-app as a "Add Virtual Directory..." in IIS7 doing so forces you to keep the same AppPool and thus .NET framework version as the website.
But, IIS7 now has an "Add Application..." options, which allows you to essentially do what IIS6 had allowed, so that you can explicitly state the AppPool to run in and it can differ from the parent website.
In IIS7 the ASP.NET version is specified in an application pool (which is then used by your web app). There's a screenshot of the dialog here:
http://www.stolenbit.com/2008/10/select-aspnet-version-in-iis-7.html

Resources