Click here to Skip to main content
15,914,163 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
I am trying to run my web project on IIS.

I have installed IIS and created virtual directory. I just tried to run application by two ways.
Note :Here I have used one ActiveX control
1] http://localhost//virtualdirectoryname/default.aspx
2] http://ipaddress//virtualdirectoryname/default.aspx

1st link is working properly but insted of "localhost", I just used "ipaddress" in the second case.

Actually both are same but second link is not working. Is there any property that I have to set in IIS or in my project?

Please help on this or suggest me...

Thanks....
Posted
Updated 23-Feb-11 16:51pm
v6
Comments
Dylan Morley 23-Feb-11 6:11am    
When you say 'not working', what do you mean?

Do you see a .Net error page? Or do you see a 404 'page not found' or something like that?
Murali.P 23-Feb-11 6:19am    
no such type messages are not coming but i do have one click event (copy image and paste into web page) on the web page this event not working on IIS hosted web application

localhost is IP address 127.0.0.1 which is not the same as your computers IP address. In order for IIS to also accept this IP address you'll have to change the binding. The website your virtual directory was created on needs to listen on "your computers IP" at port 80. So check your IIS configuration.

Regards,
 
Share this answer
 
v2
Comments
Espen Harlinn 25-Feb-11 7:41am    
Good advice, you're probably giving him the right answer, my 5
Manfred Rudolf Bihy 25-Feb-11 8:04am    
I'm not sure if it's really OP's problem, but since OP hasn't responded yet we're left with guessing. Thanks for your vote Espen.
I have seen this a few times and it is usually caused by an incorrect proxy server configuration. If you can access it via telnet (this would not be going via the proxy) then you have effectively verified that a service of some kind (not necessarily IIS!) is running on that port.
I recommend disabling the auto-detect proxy option if you are using Internet Explorer and are not using a proxy or if you must use a proxy add explicit declarations for exceptions rather than relying on the "Bypass Proxy for Local Addresses" checkbox.
 
Share this answer
 
Comments
Murali.P 25-Feb-11 7:41am    
Hi,

Please tel me where i can get these options "disabling the auto-detect proxy option if you are using Internet Explorer"

thanks.
Manas Bhardwaj 25-Feb-11 7:54am    
http://support.microsoft.com/kb/271361

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900