473,568 Members | 2,795 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Problem with Virtual directory on my local machine.

I am trying to use my IIS web server on my local machine for testing my web
site.

The problem is that periodically it will not use the virtual directory for
the root.

This happens for my logon page, for instance.

If I have the following Virtual Directory: Staff.

I would call this by using http://localhost/Staff/default.aspx.

This works fine most of the time. But if I tried to uset
http://localhost/Staff/App/page.aspx, I get a 404 error. You need to log on
to get to this page, so the program works as expected and calls my Logon
page, but it calls it without the Virtual Directory - even though the
Virtual Directory is in the ReturnURL parameter:

http://localhost/App/EELogin.aspx?Re...pp%2fpage.aspx

It should be:

http://localhost/Staff/App/EELogin.a...pp%2fpage.aspx

As I said it works for other things that start from the root, such as my
images and buttons (/images/button.jpg for example).

Why doesn't it use the Virtual Directory for this case?

Thanks,

Tom
Sep 28 '06 #1
2 2144
Is the virtual directory set up as an application in IIS. To check, go to
the property pages. If you see Create, it is not. If you see Remove, it is.
If not, create it. If you still have problems, make sure it is in the
correct Application pool (if you use both 1.1 and 2.0 is generally the only
time this is a problem).

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
http://gregorybeamer.spaces.live.com

*************** *************** *************** ****
Think outside of the box!
*************** *************** *************** ****
"tshad" <ts**********@f tsolutions.comw rote in message
news:um******** ********@TK2MSF TNGP03.phx.gbl. ..
>I am trying to use my IIS web server on my local machine for testing my web
site.

The problem is that periodically it will not use the virtual directory for
the root.

This happens for my logon page, for instance.

If I have the following Virtual Directory: Staff.

I would call this by using http://localhost/Staff/default.aspx.

This works fine most of the time. But if I tried to uset
http://localhost/Staff/App/page.aspx, I get a 404 error. You need to log
on to get to this page, so the program works as expected and calls my
Logon page, but it calls it without the Virtual Directory - even though
the Virtual Directory is in the ReturnURL parameter:

http://localhost/App/EELogin.aspx?Re...pp%2fpage.aspx

It should be:

http://localhost/Staff/App/EELogin.a...pp%2fpage.aspx

As I said it works for other things that start from the root, such as my
images and buttons (/images/button.jpg for example).

Why doesn't it use the Virtual Directory for this case?

Thanks,

Tom

Sep 29 '06 #2
"Cowboy (Gregory A. Beamer)" <No************ @comcast.netNoS pamMwrote in
message news:es******** ******@TK2MSFTN GP05.phx.gbl...
Is the virtual directory set up as an application in IIS. To check, go to
the property pages. If you see Create, it is not. If you see Remove, it
is. If not, create it. If you still have problems, make sure it is in the
correct Application pool (if you use both 1.1 and 2.0 is generally the
only time this is a problem).
It is set as an application (has the Remove button)

I don't have 2.0 loaded on my machine. I am running an XP Professional.

Most of the stuff works fine but the logon page is causing the problem. I
also have another post where the Logon page is also having a problem with my
SSL page. If I hit a link in my email that goes to a secure page and the
Logon gets called, it says it can't open the page. Works fine if I leave
the https and port out or if I go to a page that doesn't require a logon.
It seems my 2 problems may be related.

I have my Logon page in my web.config set as:
<authenticati on mode="Forms">
<forms name="staffing"
loginUrl="/appl/EELogin.aspx"
timeout="400"
protection="All "
path="/" />

Not sure if this is the problem but since both of my issues seem to involve
the Logon page I assume there is something wrong with the setup.

Thanks,

Tom
>
--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
http://gregorybeamer.spaces.live.com

*************** *************** *************** ****
Think outside of the box!
*************** *************** *************** ****
"tshad" <ts**********@f tsolutions.comw rote in message
news:um******** ********@TK2MSF TNGP03.phx.gbl. ..
>>I am trying to use my IIS web server on my local machine for testing my
web site.

The problem is that periodically it will not use the virtual directory
for the root.

This happens for my logon page, for instance.

If I have the following Virtual Directory: Staff.

I would call this by using http://localhost/Staff/default.aspx.

This works fine most of the time. But if I tried to uset
http://localhost/Staff/App/page.aspx, I get a 404 error. You need to log
on to get to this page, so the program works as expected and calls my
Logon page, but it calls it without the Virtual Directory - even though
the Virtual Directory is in the ReturnURL parameter:

http://localhost/App/EELogin.aspx?Re...pp%2fpage.aspx

It should be:

http://localhost/Staff/App/EELogin.a...pp%2fpage.aspx

As I said it works for other things that start from the root, such as my
images and buttons (/images/button.jpg for example).

Why doesn't it use the Virtual Directory for this case?

Thanks,

Tom


Sep 29 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1139
by: Jamin Guy | last post by:
I have an ASP .Net project that I'm trying to debug, but I'm having trouble running it correctly on my machine. It runs fine on the server, but when I run it from my local machine(XP Pro with IIS) I can only access pages in the projects root directory. If I try to access pages in sub-directories of the project root directory I get an HTTP 403...
9
1987
by: TPS | last post by:
I have a virtual directory where all posted files are stored. The ASP app does not have rights to the share on the other server where the vir dir resides. What is the best way to give the asp app the rights to post files to the vir dir. Thanks
8
3373
by: nick | last post by:
I have a problem and I've been using a cheezy work around and was wondering if anyone else out there has a better solution. The problem: Let's say I have a web application appA. Locally, I set it up as C:\domains\appA. Locally, my IIS root points to C:\domains. I don't point it to C:\domains\appA since if I have an appB under C:\domains I...
3
1969
by: Paras Sharma | last post by:
Hi all, We are facing this big problem. Scenario is as follows. We have one single solution (say EIS) under which there are 25 projects. All the files are saved at a central location under Visual Sorce Safe on a seprate machine. For a new person who is trying to setup this solution file on his / her local machine follows the following...
6
2798
by: BookerW | last post by:
Ok interesting, on my local machine And i did not do a good job of keeping track of the exact order.... but on my local machine in which i have vis studio 2003 installed and IIS for win XP, I copied the web.config file from the source code folder into the inetpub\wwwroot folder b/c that is where the ASP engine was looking for it.
1
1643
by: Richard | last post by:
Hi, I created a new directory on my WinXP-Pro/SP2 file system. Then I created a virtual directory in IIS pointing to that local directory. After completing that, I noticed that I had a mispelling in the name of the parent directory of that local directory. I "improved" the situation by creating a correctly-spelled peer of that parent...
5
2662
by: =?Utf-8?B?bXVzb3NkZXY=?= | last post by:
Hi, I wonder if someone could shed some light on this one for me. I have developed a web app in VS2005 with the built in server. It uses an sql database, everytihng works. I need to test it across the network, so i've installed IIS7 on my Vista machine and created a new website, point at the website's directory. After I switched to the...
1
15205
by: eblackmo | last post by:
I have a test network consisting of four servers running windows 2003 server R2 SP2. I have set up a domain which functioned correctly for about a day and a half until the other servers decided they can no longer connect to the domain controller. Ping resolves the domain controllers name to the correct ip nslookup finds the ip but can not resolve...
0
4526
by: okonita | last post by:
Hi all, I am having a DB2 connectivity problem that I hope someone can help me resolve. I need this to test Replication and such other things. What am I doing wrong here? Any help that I can get will be highly appreciated. First, the error that I am getting when I try to connect to the remote host after performing NODE and database catalog...
0
7693
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7604
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7916
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7660
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
1
5498
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5217
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3651
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
1207
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
932
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.