Picture from virtual directory IIS won't load - iis

When I enter an order number in a search bar, an image with the name "ordernummer".jpg must be retrieved. For this I use a web page that runs on an IIS server. For this I have already created a virtual directory to access the nas. The problem now is that the image will not load anyway.
The error I get:

Related

how to use customized website name instead of IP Address on IIS

I developed an Application locally with Angular-7. Eventually, I deployed it to the IIS of a VPS server with IP address 20.20.20.20 (not the real IP). When I run the application as 20.20.20.20, it works perfectly.
Now I want to access the Application with customized name (ePortal). So on the IIS of the VPS server, I made the Host Name to be ePortal. When I typed http://jPortal on the browser url, I got an error that the page cannot be displayed and the url does not exist.
How do I resolve this?
If you want to see your desired name on your local computer only please go to
c:\windows\system32\drivers\etc
And open hosts file using note pad having admin privilege.
and add your IP And your desired name to file and save it.
Now you can browse your server by the name you defined.

Getting error while put any text in Host Name field in IIS 7.5 while set up website

I have created a website and virtual directory in IIS 7.5 and map the root folder to this website.
I put Host Name blank and browse the website by typing http://localhost:82/ in browser.
Website running properly.
Now I put abc in Host Name text box and browse the website following error display:
This page can't be displayed
•Make sure the web address http://abc:82 is correct.
•Look for the page with your search engine.
•Refresh the page in a few minutes.
Is there anything I'm missing?
Thanks
I got answer.
Actually I have to make en entery in c:\windows\system32\drivers\etc\hosts for abc hostname

IIS 7.5 Virtual Directory to Mapped Drive

I have an S: which is connected via a username that exists both on server1 & server2.
The mapped drive works fine.
I connect this as a virtual directory called config in IIS it connects and works fine. I can see in content view the files in the mapped drive.
When I attempt to browse to one of these files it gets an error 500
http://www.mydomain.com/config/file.html
file.html is there
I've done this before, Im sure its a permission or security issue somehow, but I cant work it out
500 - Internal server error.
There is a problem with the resource you are looking for, and it cannot be displayed.
Give up mapped drives please,
http://support.microsoft.com/kb/207671
http://support.microsoft.com/kb/257174
The answer was two part.
Part one I was simply browsing the website, I wasn't using https and thus I was getting a different IIS site that didn't have the virtual directory.
Part two was I was using ColdFusion attempting to run a .cfm from the virtual directory, even with the correct website, it still got an error 404.
The resolution for this was to ensure the ColdFusion service was run as Administrator rather than LocalSystem and all was good.
Just for everyones reference, if you create the same username / password on both servers, share using that username, connect using UNC path and that username and it will work, no special permissions or anything.
Thanks to Karl & Lex for the help.

Unable to create website error (NEW)

I copied my ClickOnce deployment to my C:/Inetpub/ folder on my webserver and I deleted my Virtual directory. I deleted the WpfApplication1 folder beneath wwwroot in Win Explorer. Then I turned on Web Sharing for this folder. Then I viewed my IIS Manager and this new Share name appeared under wwwroot.
So now under Inetpub folder on my web server I have the following directory path:
C:\Inetpub\WpfApplication1\
with contents:
Application Files
publish.htm
setup.exe
WpfApplication1.application
Next, I remapped both the publishing and installation URL's for the project to http://myserver/WpfApplication1/
And I clicked Publish Now.
But after I performed a Publish Now operation, I got the following error on my development server (D610-M):
Error 1 Failed to connect to 'http://myserver/WpfApplication1/' with the following error: Unable to create the Web site 'http://myserver/WpfApplication1/'. The Web server does not appear to have any authentication methods enabled. It asked for user authentication, but did not send a WWW-Authenticate header. 1 1 WpfApplication1
On my webserver, when I click Browse from the IIS Manager on the WpfApplication1 directory, it shows me the Install page. But after I click the Browse button, it returns an error which says:
The remote name could not be resolved: 'd610-m' (D610-M is the name of my development server).
How do I fix this?
Try using the IP address of the machine instead of the DNS name...

IIS7 startup site

I have a Windows 2008 Server with IIS7 on it and a web page running under the name, let's say myApplication. I have a domain name that points to the IP of my server, let's say myApplication.com.
In order to access my application I have to enter http://myApplication.com/myApplication.
If I write http://myApplication.com/ I arrive to the IIS7 start page. Is there a way (besides rewriting the iisstart.htm to make a JavaScript or meta-data redirect) to automatically open the myApplication when someone enters "http://myApplication.com/"?
What I would like is the following:
The user enters in the browser: "http://myApplication.com/"
He/she is taken to "http://myApplication.com/myApplication"
In the URL bar of the browser only "http://myApplication.com/" shows and everything inside the application is relative to this URL.
Generally when I configure IIS, I set the properties for the "default web site" to a folder that doesn't contain anything, then create individual entries within IIS for each web site. For example, you would create a new entry for "MyApplication.com" and set its home directory to the proper folder on the server that contains your root files (usually c:\inetpub\wwwroot\myapplication.com\ but it could be anywhere you like).
It sounds as if you have created a folder for your application, but do not have a specific entry in IIS configured to handle the requests and load files from the proper folder.
If you have a dedicated IP address for the application, be sure to specify that IP within the site settings for that site. If you're using a single IP for multiple sites, configure the IP AND hostnames/domains that will be used to access that site so IIS will know which site entries belong to which domains and where to route the requests.

Resources