If you are trying to deploy .NET web application to SharePoint, follow these steps:
1. Create a virtual directory under your portal's website in IIS.
2. Map the virtual directory to the physical file path.
3. Open SharePoint Central Administration page.
4. Click "Windows SharePoint Services" link on the left.
5. Select "Configure virtual server settting" link from "Virtual server
configuration" group.
6. Select your Portal server from the list
7. Click "Define managed path" link under Virtual Server Management group in
Virtual Server setting page.
8. Type name of the virtual directory you created in first step in the Path
section of Add new Path section
9. Select "Exclude path" radio button under the type section
10. Click "Ok"
11. Navigate to http://your_portal/your_application/default_page.aspx
2. Map the virtual directory to the physical file path.
3. Open SharePoint Central Administration page.
4. Click "Windows SharePoint Services" link on the left.
5. Select "Configure virtual server settting" link from "Virtual server
configuration" group.
6. Select your Portal server from the list
7. Click "Define managed path" link under Virtual Server Management group in
Virtual Server setting page.
8. Type name of the virtual directory you created in first step in the Path
section of Add new Path section
9. Select "Exclude path" radio button under the type section
10. Click "Ok"
11. Navigate to http://your_portal/your_application/default_page.aspx