Hi I have published and deploy a asp.net MVC 5 application on IIS. On local machine everything was working fine but on server ICONS and images are not showing, just a small square box is there.
Thanks
during the published PNG files were missing,
Related
I am using bootstrap, but Icons will not work through VS 2013, if you load up icons.html directly it works fine and you can see the icons. But through the web server the icons are not displayed
http://localhost:51501/icons.html
Here is the source
https://dl.dropboxusercontent.com/u/54772190/bootstrap.zip
What is going on here?
I'm using ImageResize.net in an MVC3 site.
It works correctly on my dev machine (using iis7.5 integrated mode) and does not require the use of ashx extension for resized images.
I've deployed to iis7.5 (integrated) on a new provisioned VM. I have no errors there but the images are not resized.
Testing the images urls in another browser tab shows that I can get resized images if I include the ashx extension.
I've double-checked that the target site is using Integrated mode.
Any ideas on where else to look to figure this out?
Probably won't help you since my problem was not being able to get the resized versions at all, with or without the ashx extension, but just in case. If the imagecache directory does not exist in your application folder, create it, and then make sure IIS_Users has modify access in the Security tab of the folder's properties.
EDIT
Oh. I forgot about the MvcRoutingShim. Make sure you have that installed.
I have some Problems about deploying an MVC-site.
What I did:
Install Windows Server 2008 R2 SP1
Add the IIS 7.5 Feature
Install .Net 4
Register .net in the iis, using "aspne_regiis -ir"
Add a new Application at the Default Web Site
Choose my application
Choose the DefaultAppPool
call up localhost/test in the IE
The Problem:
The Site is not correctly presented
e.g. The text is not presented in the right colors but only in black
there are no Images shown
the dll's, located in the applicationfolder are not used
Here two pictures what it is supposed to look like and what it actualy looks like
what it looks like
what it is supposed to look like
I used different "how to's" about this topic but could not find my mistake.
So what do I have to do to display the Site correct?
Tanks.
An Workmate found the Answer. The StaticFileHandler for .css (or other static file types) was missing and needed to be included.
To brief our problem, i am using MVC Application by default created by VS, only thing i have added image folder have one logo image.
I am using this image in site master as a logo path i am using to access it ../../Images/logo.png.
This logo image gets loaded in debug mode vs 2010 but when i publish it in local host iis 7.5 it does not get loaded. while clicking on error it shows different path.
Although above things works at my shared server.
Thanks, i have googled alot and find some tips over some page, here is the remedy
I used src='<%ResolveUrl("../../Images/logo.png")%>' and it is working fine
I am unable to show images in CR reports. I'm developing a MVC 2 project in VS 2008 with Crystal Reports that comes with it (10.5). Everything works fine, except for images. I can see them in the preview mode within the CR designer, but not when the app is deployed, which means I am loading data OK but something's wrong with IIS and/or routing.
When running the app, images appear with the red cross and if I navigate to the following url directly I get a 404 error.
http://localhost:1234/CrystalImageHandler.aspx
I think my problem is similar to the one here but that workaround doesn't seem to work for me.
I should also comment that I'm using the Areas feature within MVC.
EDIT: Forgot to add: When exporting the report to PDF the images are shown ok.
I don't know much about crystal reports, but is there an Http Handler? If there is and you are running IIS 7 on the live server, is the handler registered in the web.config under both system.web/httpHandlers and under system.webServer/handlers?
I forget to register the handlers under system.webServer/handlers for our IIS 7 server sometimes and we were having a similar issue with the Microsoft Charting Controls.