Where can I find Web Sharing in Microsoft Windows Server 2008 R2? - asp.net

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

Related

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.

asp.net website deployment in IIS

I have a very simple website which displays Hello World. I tried to deploy this project on the server. These are the steps I followed:
Copy the folder of the project to inetpub/wwwroot folder.
In IIS management, created a website. Gave the path of the website from step 1.
Gave the application pool as .NET 3.5
After doing the above, while browsing the page, I received the error- Type not found in web.config.
Check to see if you can browse a simple image there. that is, copy a jpg to the root of your web site and try to open it.
paste your web.config, that would be a help.
(app pool is set from advanced options in inetmgr program)
Add all website(or application.exe) files to the IIS Virtual Directory instead of wwwrootfolder. (IIS virutal directory is created by you while configuring IIS server)
Or
New Website
Under Locations Click on "Browse"
Click on "Local IIS" and then select the "IIS Virtual Directory"(IIS vitual Directory which is directory created by the user while configuring IIS server)
Open manually using Explorer drag and
add all you files to the "solution explorer"
then "Yes to all"

How do i configure IIS7 for a website rather than a web application to be viewed through localhost?

I want to view my "website" through localhost. I dont want to click on the play button in Visual Studios. I know with "web application", i would need to place the published files into a particular directory ( normally C:\inetpub\wwwroot\ ) and then view the application through Localhost.
However, i believe this would be different for "websites". How is this done?
Just like a web application, you can put your website in a folder under c:\inetpub\wwwroot\, and browse to your site's URL. (For example, //localhost/mysite)
You could also open IIS Manager, right-click your website folder, select "Manage Application", and then click "Browse". You website will open in your default browser.

Proper setup for IIS7.5 machine account for anonymous Web site access

Using IIS 7.5, IIS_IUSRS is supposed to be the account to use. I get '401 - Unauthorized: Access is denied due to invalid credentials' error. If I add an EVERYONE account with Read, it works. But rather not have Everyone account. Any idea why IIS_IUSRS does not work? It has Read access. Anonymous Access=enabled. Specific User=IUSR
As a side, on the Basic Settings... for the site, Test Settings button says 'ok-on Authenticate' but Authorization 'cannot verify access to path'.
In IIS 7.5 this has changed from being an IIS_IUSRS account to being a user under the IIS AppPools top level windows group
if you create an application pool called
www.mysite.com
then the sites default created user account that it runs as becomes
IIS AppPools\www.mysite.com
Check the following Microsoft Doc under "Securing Resources" to see more
http://learn.iis.net/page.aspx/624/application-pool-identities/
Under the 'Securing Resources' section listed here:
Open Windows Explorer.
Select a file or directory.
Right click the file and select "Properties"
Select the "Security" tab Click the "Edit" and then "Add" button
Click the "Locations" button and make sure you select your machine. Enter "IIS AppPool\DefaultAppPool" in the "Enter the object names to select:" text box.
Click the "Check Names" button and click "OK".
Substitute DefaultAppPool with the name of the application pool you created/used when adding your site to IIS. This IIS AppPool (not IIS AppPools as of iis 7.5.7600 on Windows 7 pro) group is a group of virtual accounts that you will not see when performing a normal account search on your local machine or via a directory service.

How to affect configuration of IIS properties using Web Setup Project in Visual Studio 2005

I just built a setup.msi file using the Web Setup Project template within Visual Studio 2005 to deploy my web application to another web server.
While it works OK, it results in a new virtual directory on the target webserver that requires a fair bit of custom (i.e. manual) configuration steps using INETMGR on the target webserver.
I've noticed the Web Setup Project provides for various "editors" such as "Registry Editor", "User Interface Editor", etc. but I could not find anything that enables me to automate configuration tasks such as:
- How to change "Execute permissions" from "Scripts only" to "Scripts and Executables"
- How to disable "Anonymous access" and check "Integrated Windows authentication"
- How to set a particularfile.aspx as the default content page (instead of default.aspx)
Are customizations like this possible with this project template or should I include something like a "ReadMe.txt" in the deployment? Thanks.
EDIT: 09/09/09
- How to add a Path such that installing user can put the code somewhere other than c:\inetpub\wwwroot\
That is, when the .msi runs, the only choice for "Site" is "Default Web Site" and it cannot be changed at install time.
NOTE: My development PC (where my Web Setup Project is) runs Windows XP and thus IIS 5.1; I do not see any properties exposed for the Web Application Folder that look appropriate; only something called Property with a value called TARGETDIR.
How to change "Execute permissions" from "Scripts only" to "Scripts and
Executables"
right-click on setup project
select view > file system
select web application folder
edit properties "ExecutePermission"
How to disable "Anonymous access" and check "Integrated Windows
authentication"
I'm looking for the same thing myself, but i think it needs a custom action. Check out http://www.codeproject.com/KB/install/SetIISettings.aspx
How to set a particularfile.aspx as the default content page (instead of
default.aspx)
right-click on setup project
select view > file system
select web application folder
edit properties "DefaultDocument"

Resources