I 'm currently using imageresizer.dll ver3.3.3 in my ASP.NET MVC 4 web
project hosted on IIS7.5. I have included the imageresizer.mvc.dll in the
bin folder and added the mvc shim plugin.
Everything works properly in my local machine. But in production machine I
'm facing resource not found issue. The production machine also has ASP.NET
MVC 4, IIS7.5 and the bin directory contains both dlls and web.config file
is as follows:
In the production machine.
1. When I execute the image request with .ashx, I get the resource not
found exception.
2. To verify if the image really exists, I removed the .ashx and the
image was loaded without issues. So something I 'm missing on imageresizing
part in my production machine.
3. I tried to diagnose the issue by executing /resizer.debug.ashx but
here too I get resource not found exception.
4. I tried omitting the .ashx extension but with width paramter in the querystring. The image size isn't affected.
I 'm totally unsure what are my next steps to address this issue. Can anyone
please guide me what I'm missing?
Thanks and Regards,
G Hemant
I followed the installation instructions to the best of my ability and I had the same issue as you regarding the /resizer.debug
I am not using MVC as a whole; however, I am using routing and have a RegisterRoutes method in my Application_Start section of the global.asax.
This line, added to the RegisterRoutes method solved my issue with not being able to get access to resizer.debug.ashx:
routes.Ignore("{resource}.ashx/{*pathInfo}"); //ignore ashx files
Now I have access from Cassini as well as iis7.
Related
I’m trying to get Identity Server v3 up and running. Below is what I've done.
Created an empty ASP.NET web project
Copied the StartUp and
config files from the SelfHost (Minimal) (http://goo.gl/ojOjSJ)
sample project
Installed the following Nuget packages: OWIN,
Microsoft.Owin, Microsoft.Owin.Host.SystemWeb, and
Thinktecture.IdentityServer.v3
Add the [assembly: OwinStartup(typeof(Startup))] attribute
When I run locally and try to hit one of the endpoints (/core/.well-known/jwks), I get “The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.” I know startup is running because I can set a breakpoint and it hits it.
Any help would be greatly appreciated.
At this point you are better off with using the github issue tracker because idsrv is still under development.
I found a solution for this by installing the following hotfix for handlers with extensionless URLs: https://support.microsoft.com/en-us/help/980368/a-update-is-available-that-enables-certain-iis-7.0-or-iis-7.5-handlers-to-handle-requests-whose-urls-do-not-end-with-a-period
I have an ASP.NET MVC 4 app that I'm trying to deploy as an Azure Web Site. My app works fine in my local environment. When I publish the site to azure though, I receive the following error:
Multiple types were found that match the controller named 'Root'. This can happen if the route that services this request ('') does not specify namespaces to search for a controller that matches the request. If this is the case, register this route by calling an overload of the 'MapRoute' method that takes a 'namespaces' parameter.
The request for 'Views' has found the following matching controllers:
MyApp.HD.Web.Controllers.RootController
MyApp.Web.Controllers.RootController
Why would I get this error on Azure but not locally? I can't figure out how to get around it.
Thank you
I've had this problem before. Let me explain why it happened.
We added a new project to our solution, let's call it NewProject. This project had been set up incorrectly so we recreated it as NewProject2. Once the project was setup and working, we renamed it to NewProject. This is when the problem started. Under certain build configurations we were getting the same error as you. It was complaining about ambiguous controllers with namespaces NewProject and NewProject2. Doing a find-in-files returned no matches for NewProject2. The was thoroughly frustrating. Given that this was only occuring under certain build configurations was a big sign that the problem was with left-over references in the bin folder(s). Doing a clean didn't seem to fix the problem. The ultimate fix was to do a complete code purge. DLLs typically do not get committed to source control. I backed up and deleted all code and got it back from source control. The issue no longer occurs.
It's worth mentioning that this issue was not global. It only occurred on certain developer machines. I figure the ones that were affect were the ones that had gotten latest from source control during the process of create1/create2/rename2/delete1.
Try doing a clean and rebuild in the affected build config.
Try manually removing your bin and obj folders.
Try a complete code purge
I have a deployed a web application in IIS. Which used to work without any issues. Recently i have shifted that web application to another machine, Here is the problem. Once i setup the Webapplication when i opened the default document in IIS im getting the File not found error as following
Internal Server Error
\?\C:\inetpub\wwwroot\application\web.config
I have no clue why the IIS is not able to find the web.config. The file is present in the path C:\inetpub\wwwroot\application\web.config but the IIS is looking in the path \?\C:....
Please let me know how to resolve this??
Firstly this is documented on support.microsoft.com so I would suggest that anyone who has this issue read this first as it covers a number of solutions which I won't
Now from personal experience I encountered this error after setting up a new development machine. What I had forgotten to do was install the Url Rewrite 2.0 IIS module. Sadly the IIS error gives absolutely no idea that this is the actually issue.
Therefore to solve this issue investigate the system.webServer setting in our web.config and ensure that you have installed all the iis modules that you use. I did this by systematically removing elements from my web.config until I came across the cause.
In my case, I was running ASP .NET Core website so I had to install .Net Core Runtime from
https://dotnet.microsoft.com/download/dotnet-core/current/runtime
I know it's old post but I resolved the same issue as follows:
If you are using TFS and you are getting this problem then Reason is ".vs" file is not excluded from commit.
Because of that ".vs\config\applicationhost.config" gets the local version of another user/Developer.
To Solve the error, First open that file Update Physical path inside "" xml tag.
Also ask user to exclude this folder from TFS to prevent future issues.
If you are getting mysql localhost error. What I will do will work for you.
Control Panel(View by: Large Icons) >> Programs and Features >>
(Usually upper left corner) Turn Windows Features on or off >>
Internet Information Services >> Web Management Tools and World Wide Web Services
After Restart.
hello i am trying to set up umbraco on my pc
i have followed each step
and when i try to lunch the site on iis i get this error
Module IIS Web Core
Notification BeginRequest
Handler Not yet determined
Error Code 0x80070032
Config Error The configuration section 'system.web.extensions' cannot be read because it is missing a section declaration
Config File \?\C:\inetpub\wwwroot\cms\web.config
Requested URL http://localhost:80/cms
Physical Path C:\inetpub\wwwroot\cms
Logon Method Not yet determined
Logon User Not yet determined
any idea? please help
Try changing the version of .NET that the application pool is running under.
You've not mentioned which version of Umbraco you are using but I'm guessing 4.7.
If so you'll probably need to be running it under .NET4, unless you have specifically downloaded the .NET3.5 version direct from Codeplex.
try to change the port to other number rather than using default 80 port.
hope this helps
I'm trying to deploy a winform application with IIS and ClickOnce. I can access the publish.htm page and the install even starts when I click on the provided link.
However I get this error during the installation process:
Downloading http://MyWebSiteUrl/.../Interop.SHDocVw.dll did not succceed.
The remote server returned an error: (500) Internal Server Error.
Can anybody help me out on this ?
Thanks,
Bruno
I found out that I needed to check "use .deploy file extension" (under properties>Publish>Options>Deployment
[Answering this old question because it comes up as the best match in my case and the accepted answer was of no use to me].
Background, in an IIS hosted ClickOnce scenario, the downloadable components are itemized in a manifest file at the root of the deployment (that's how you can specify a single download link and deploy all the supporting components).
I was converting a tested application from a WiX installation to a lightweight version with ClickOnce and received the HTTP 500 error without anything else in the logs. Naturally, I failed to think it through and instead found myself getting dragged down the rabbit hole on the internets, with instructions for detailed logging, magic spells, etc.
Upon more sober reflection, the problem was simple and I should have been able to tell immediately from the IIS log: a 500 followed by a 0 is shorthand for 'you're an idiot, the content isn't where you said it was' and it had almost nothing to do with ClickOnce.
I had copy/paste/edited an existing download link template in MVC that was in use for simple apps and it happened to cater to only two levels of subfolders in the manifest. When I ported a more complex project structure, I ended up leaving items in a Resources sub-sub-subfolder that looked fine in the manifest but the path was being truncated in MVC so that the related item could not be found.
Moral of the story - if you get a 500 error always check first to make sure your non-functioning appliance is plugged into a working outlet...