SharePoint runs
under IIS, if you open IIS Manager on a SharePoint server you will see a
typical SharePoint site, eg:
The first thing we
need to do is add an application to hold
our ASP.NET pages - this needs to be mapped to a folder on the server where we
are going to store the ASP.NET files.
The name of the
virtual directory must be unique and not match any existing folder, or any site
in the SharePoint system. (For example,
we might have our SharePoint site at http://intranet
and a sub-site at http://intranet/sales -
so even though the folder "sales" does not occur in the IIS tree, we
cannot use "Sales" as the name of our virtual directory.)
To
create an application
New folder "E:\ASP-Pages" created to
contain my ASP.NET files
- In IIS manager, right click
the site and "Add Application":
- Give the new Application a name (Alias) - which must not conflict with any URL currently in use, and connect it to the new folder created above:
- Click "OK"
- Verify the virtual directory
is set up correctly by creating a simple HTML page in the folder, eg
test.htm:
<HTML>
<BODY>
Hello
World!
</BODY>
</HTML>
29/10/2014 14:30 - Screen Clipping
- If the folder is correctly
connected you should be able to open the test page in a browser by
browsing to the SharePoint site and adding the new folder name and test
page:







No comments:
Post a Comment