473,624 Members | 2,121 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Images/CSS not resolving on dev machine testing

I have just upgraded to a new development machine that came with Vista
ultimate.
I am developing a website with VS2005 and VB. My image and css references in
my source code are all relative. For example http://root.com/images/some.gif
in my source is just /images/some.gif. When I publish to the root web on any
IIS server, that works just fine.

On my old XP machine I had registered a custom version of multisite.dll with
a config.ini like this:
[websites]
localhost=/alias

That worked fine. To test the project and have all relative references work
properly on my dev machine I just typed in IE http://localhost instead of
http://localhost/alias and everything worked as if it were published to a
root web and acted exactly like it does when published to a production
server (with a different web.config file of course). But multisite.dll will
not register on Vista.

Note I am developing in C:\development\ project folder. When it is set up as
a virtual website I need to type in http://localhost/alias to get it to run.
That is when I lose my images and css styles.

So, what is the correct way to do this?

I have tried editing the hosts file to create an entry like:
localhost/alias alias

Thinking that I can then type in http://alias and get the site to come up.
I have also heard that others have somehow created a domain refererence
(maybe on a network machine... they were not clear) and got the test site to
work.
Note... when I just run debug... my images do not show up either.

Then I thought of creating a <baseelement in each page with a variable in
global.asa that I could reference as <basein my pages and maybe that will
help.

OK... I obiously need some schooling on this matter. I have not had the
luxury of attending VS2005 workshops to get this "small" problem rectified
and have not found an anwer other than using multisite.dll.
Any suggestions would be appreciated.... . thanks

If somebody could point me in the right direction it would be very much
appreciated.

May 15 '07 #1
3 1825
Hi,
My understanding you referring to multisite.dll from
http://www.codeproject.com/aspnet/Multisite.asp

I actually wrote it way back before vista came around. Unfortunately I do
not have Vista machine available for me to test. So I can not promise that I
will fix it soon. I'll try but if there is no update in this article in a
week then I probably failed.
-----------------------------------------------------------------------------

to use <basetag is good idea and probably should work. involves changing
the whole project though.
--------------------------------------------------------------

Other than that i can not suggest anything. You might try to swtich to work
with Casini instead of IIS. Then i belive your application will run from the
root and images will be back.


George.

"John Kotuby" <jo***@powerlis t.comwrote in message
news:O1******** ******@TK2MSFTN GP02.phx.gbl...
>I have just upgraded to a new development machine that came with Vista
ultimate.
I am developing a website with VS2005 and VB. My image and css references
in my source code are all relative. For example
http://root.com/images/some.gif in my source is just /images/some.gif.
When I publish to the root web on any IIS server, that works just fine.

On my old XP machine I had registered a custom version of multisite.dll
with a config.ini like this:
[websites]
localhost=/alias

That worked fine. To test the project and have all relative references
work properly on my dev machine I just typed in IE http://localhost
instead of http://localhost/alias and everything worked as if it were
published to a root web and acted exactly like it does when published to a
production server (with a different web.config file of course). But
multisite.dll will not register on Vista.

Note I am developing in C:\development\ project folder. When it is set up
as a virtual website I need to type in http://localhost/alias to get it to
run. That is when I lose my images and css styles.

So, what is the correct way to do this?

I have tried editing the hosts file to create an entry like:
localhost/alias alias

Thinking that I can then type in http://alias and get the site to come up.
I have also heard that others have somehow created a domain refererence
(maybe on a network machine... they were not clear) and got the test site
to work.
Note... when I just run debug... my images do not show up either.

Then I thought of creating a <baseelement in each page with a variable
in global.asa that I could reference as <basein my pages and maybe that
will help.

OK... I obiously need some schooling on this matter. I have not had the
luxury of attending VS2005 workshops to get this "small" problem rectified
and have not found an anwer other than using multisite.dll.
Any suggestions would be appreciated.... . thanks

If somebody could point me in the right direction it would be very much
appreciated.

May 15 '07 #2
Just a quick update.
I looked at the some docs quickly and looks like you need to specifically
enable ISAPI extensions for IIS.
Check out this article
http://msdn.microsoft.com/msdnmag/is...7/default.aspx first
picture has a reference on how to do it.

Hope this helps.
Let me know.
George.
"George Ter-Saakov" <gt****@cardone .comwrote in message
news:%2******** ********@TK2MSF TNGP02.phx.gbl. ..
Hi,
My understanding you referring to multisite.dll from
http://www.codeproject.com/aspnet/Multisite.asp

I actually wrote it way back before vista came around. Unfortunately I do
not have Vista machine available for me to test. So I can not promise that
I will fix it soon. I'll try but if there is no update in this article in
a week then I probably failed.
-----------------------------------------------------------------------------

to use <basetag is good idea and probably should work. involves changing
the whole project though.
--------------------------------------------------------------

Other than that i can not suggest anything. You might try to swtich to
work with Casini instead of IIS. Then i belive your application will run
from the root and images will be back.


George.

"John Kotuby" <jo***@powerlis t.comwrote in message
news:O1******** ******@TK2MSFTN GP02.phx.gbl...
>>I have just upgraded to a new development machine that came with Vista
ultimate.
I am developing a website with VS2005 and VB. My image and css references
in my source code are all relative. For example
http://root.com/images/some.gif in my source is just /images/some.gif.
When I publish to the root web on any IIS server, that works just fine.

On my old XP machine I had registered a custom version of multisite.dll
with a config.ini like this:
[websites]
localhost=/alias

That worked fine. To test the project and have all relative references
work properly on my dev machine I just typed in IE http://localhost
instead of http://localhost/alias and everything worked as if it were
published to a root web and acted exactly like it does when published to
a production server (with a different web.config file of course). But
multisite.dl l will not register on Vista.

Note I am developing in C:\development\ project folder. When it is set up
as a virtual website I need to type in http://localhost/alias to get it
to run. That is when I lose my images and css styles.

So, what is the correct way to do this?

I have tried editing the hosts file to create an entry like:
localhost/alias alias

Thinking that I can then type in http://alias and get the site to come
up.
I have also heard that others have somehow created a domain refererence
(maybe on a network machine... they were not clear) and got the test site
to work.
Note... when I just run debug... my images do not show up either.

Then I thought of creating a <baseelement in each page with a variable
in global.asa that I could reference as <basein my pages and maybe that
will help.

OK... I obiously need some schooling on this matter. I have not had the
luxury of attending VS2005 workshops to get this "small" problem
rectified and have not found an anwer other than using multisite.dll.
Any suggestions would be appreciated.... . thanks

If somebody could point me in the right direction it would be very much
appreciated.


May 15 '07 #3
George,

Thanks for the answer and the link. I wish I had seen that article before
resorting to running "aspnet_reg iis -enable -i" from the command prompt in
the correct dotnet framework install folder for version 2.0. Now I see why
my ASP.NET applications weren't even running at all originally (I was
getting errors about unregistered MIME types).

I was just about to post another work-around I discovered this morning,
because I was getting no feedback. I figured my question was just too stupid
to dignify a response. Here is my "new post".
---------------------------------------
So no need for multisite.dll!

I just went into IIS Manager on my dev machine and set the home folder for
my Default website
on the development machine to my project folder. Now the images and
stylesheets are resolving when I type in http://localhost, because the
default website now points to c:\devlopment\m yprojfolder.

I guess being ignored by the newsgroup community can lead to a low level of
creativity...LO L.

Still haven't figured out how to get my relative image paths to work
properly in the debugger when using a virtual directory off the root of
a website, or in a different location altogether (I don't like to clutter up
Inetpub\www).

Oh, the perils of skipping over the basics during the learning curve and
just jumping into a new development language.

Do any of you MVPs program from a virtual web on your local machine that by
default resolves to something like http://localhost/devfolder? If so, how do
you get your images to show up as if you were programming from a root web?
Just wondering...sti ll.

Thanks to all....

"George Ter-Saakov" <gt****@cardone .comwrote in message
news:%2******** ********@TK2MSF TNGP02.phx.gbl. ..
Just a quick update.
I looked at the some docs quickly and looks like you need to specifically
enable ISAPI extensions for IIS.
Check out this article
http://msdn.microsoft.com/msdnmag/is...7/default.aspx first
picture has a reference on how to do it.

Hope this helps.
Let me know.
George.
"George Ter-Saakov" <gt****@cardone .comwrote in message
news:%2******** ********@TK2MSF TNGP02.phx.gbl. ..
>Hi,
My understanding you referring to multisite.dll from
http://www.codeproject.com/aspnet/Multisite.asp

I actually wrote it way back before vista came around. Unfortunately I do
not have Vista machine available for me to test. So I can not promise
that I will fix it soon. I'll try but if there is no update in this
article in a week then I probably failed.
-----------------------------------------------------------------------------

to use <basetag is good idea and probably should work. involves
changing the whole project though.
--------------------------------------------------------------

Other than that i can not suggest anything. You might try to swtich to
work with Casini instead of IIS. Then i belive your application will run
from the root and images will be back.


George.

"John Kotuby" <jo***@powerlis t.comwrote in message
news:O1******* *******@TK2MSFT NGP02.phx.gbl.. .
>>>I have just upgraded to a new development machine that came with Vista
ultimate.
I am developing a website with VS2005 and VB. My image and css
references in my source code are all relative. For example
http://root.com/images/some.gif in my source is just /images/some.gif.
When I publish to the root web on any IIS server, that works just fine.

On my old XP machine I had registered a custom version of multisite.dll
with a config.ini like this:
[websites]
localhost=/alias

That worked fine. To test the project and have all relative references
work properly on my dev machine I just typed in IE http://localhost
instead of http://localhost/alias and everything worked as if it were
published to a root web and acted exactly like it does when published to
a production server (with a different web.config file of course). But
multisite.d ll will not register on Vista.

Note I am developing in C:\development\ project folder. When it is set up
as a virtual website I need to type in http://localhost/alias to get it
to run. That is when I lose my images and css styles.

So, what is the correct way to do this?

I have tried editing the hosts file to create an entry like:
localhost/alias alias

Thinking that I can then type in http://alias and get the site to come
up.
I have also heard that others have somehow created a domain refererence
(maybe on a network machine... they were not clear) and got the test
site to work.
Note... when I just run debug... my images do not show up either.

Then I thought of creating a <baseelement in each page with a variable
in global.asa that I could reference as <basein my pages and maybe
that will help.

OK... I obiously need some schooling on this matter. I have not had the
luxury of attending VS2005 workshops to get this "small" problem
rectified and have not found an anwer other than using multisite.dll.
Any suggestions would be appreciated.... . thanks

If somebody could point me in the right direction it would be very much
appreciated .



May 15 '07 #4

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

Similar topics

2
4005
by: jn | last post by:
This is the weirdest thing I've come across in a while. I'm trying to resize an image. If I give it a small image ( < 100K) it will resize. If I give it a larger image, it gives me the IE "Action Cancelled" page. The memory_limit for PHP has been changed to 30MB so that's not the problem. I know that the line with imagecreatefromjpeg() is the problem (even though I can't get an error message). I can run this code with the large images...
12
2129
by: oeyvind toft | last post by:
I`m writing a pattern machine in JS. I use small (20-50px) dynamicly created divs (100-200) and use loops to place them in predefined patterns. I assign style props to them at creation time. Problem: When assigning a background image to the style object of the divs, it takes 10 - 12 seconds before they are displayed on screen. For now I`ve used the same image (2kB) for all
3
3476
by: Dalan | last post by:
At first I was not certain what could cause Access 97 from displaying most jpeg images, but not all. After further testing, it seemed that all original images of less than 275 pixels per inch or less would display, but those close to 300 pixels/inch or greater would not (MS Access cannot recognize the file format xxx.jpg). The larger, original images were scanned and saved as .bmp (at 300 dpi producing a 15MB file). Then the images were...
1
1556
by: Gianluca_Venezia | last post by:
I'm developing an application and I'm testing it. There is a strange new thing, happened today (and only in one of two pc I'm using as test). In PCs with runtime, opening mde file, and before first form is open, access show image-import-bar trying to load five different images (and using the path of the PC where I'm developing); in first form there is no images. 1) It's possible the, when runtime opens mde file it opens also all form?...
2
2431
by: mich_stone | last post by:
Dear world, I have an IMAGE control placed on my .aspx page with its ImageUrl property not set. In my code, i am setting it equal to something using the following statement img.ImageUrl = Server.MapPath ("usedIcons/AssignAccess/" + reader.ToString ());
3
2285
by: kansaschuck | last post by:
Ok... Let me start over since I had miss labeled the other question and it ended up in phpland and I failed to follow the posting rules. Sorry, here's a rework. (hey... I just saw the html code in it's window during a message preview. That is nice. Sorry I miss posted the html code the first time) I'm using standard HTML on a ISP website (Lunarpages) running Lunix. I'm displaying images with the html img src command by full url. ...
0
280
by: John Kotuby | last post by:
I have just upgraded to a new development machine that came with Vista ultimate. I am developing a website with VS2005 and VB. My image and css references in my source code are all relative. For example http://root.com/images/some.gif in my source is just /images/some.gif. When I publish to the root web on any IIS server, that works just fine. On my old XP machine I had registered a custom version of multisite.dll with a config.ini like...
17
2053
by: liketofindoutwhy | last post by:
to simply add two quote images around some text. seems quite simple at first but turns out all the obvious solutions are not as desirable as a perfect solution: please see http://www.0011.com/css/quote.html basically, Style 1 is just inlining the image, text, and image. Style 2 is using a table.
3
3461
by: shawie60 | last post by:
Hi guys, I have a bit of a problem. I've set up my network ( 3 desktops 1 x wireless laptop) using a TK IP router. Most use fixed IP addresses. Each machine can access the internet. 1 of the machnes (laptop) can find 1 of the networked PC's. None of the machines can find/browse the NAS ( fixed IP address) tho I can access the login configuration setup. If I ping each machine's IP address I get a reply as expected. if I use net view \\ip...
0
8173
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8679
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. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8335
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 most users, this new feature is actually very convenient. If you want to control the update process,...
0
8475
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6110
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4079
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4174
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2606
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1785
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.