Request.ApplicationPath not resolving properly

K

Kent P. Iler

Hi,

I used Request.ApplicationPath for referencing my images directory from
multiple levels. It worked great in my dev environment. However, when I
copied the project to my production server, the reference is completely
removing the server name. For example, an image tag should have the
reference http://localserver/project/images/pic1.jpg on my
dev machine, and on the production server the reference should be
http://prodserver/images/pic1.jpg. However, on production, the image
reference is set to http://images/pic1.jpg. You can see that it is dropping
the server name completely!

Any suggestions?

Thank you!

-- Kent Iler
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,768
Messages
2,569,575
Members
45,053
Latest member
billing-software

Latest Threads

Top