November Happy Hour will be moved to Thursday December 5th.
November Happy Hour will be moved to Thursday December 5th.
I would suggest to compare your dev and production web.config. Looks like one or more handlers are missing
Hi!
Thanks for the tip, that was it!
On the server I found this:
<configuration>
<system.webServer>
<handlers>
<add name="wildcard" path="*" verb="*" type="EPiServer.Web.StaticFileHandler, EPiServer.Framework.AspNet" />
</handlers>
</system.webServer>
</configuration>
That one was not in my web.config on dev.
I can see that you have used this in you post about securing a location:
Securing a Static Folder | Episerver Developer Community
And that make sense. Any guess why the original developer har put this in the "main" system.WebServer?
Thanks!
/Kristoffer
Hi!
Without that line no css is loading, static files, and with that line the plugin does not load. Any ideas why?
/Kristoffer
Looks like you need this in your production web.config
<add name="PageHandlerFactory-Integrated-4.0" path="*.aspx" verb="GET,HEAD,POST,DEBUG" type="System.Web.UI.PageHandlerFactory" preCondition="integratedMode,runtimeVersionv4.0" />
<location path="episerver">/<system.webServer>/<handlers>
Almost, I had to add this:
<location path="modules/MyPluginFolder">
<system.webServer>
<handlers>
<clear />
<add name="PageHandlerFactory-Integrated-4.0" path="*.aspx" verb="GET,HEAD,POST,DEBUG" type="System.Web.UI.PageHandlerFactory" preCondition="integratedMode,runtimeVersionv4.0" />
</handlers>
</system.webServer>
</location>
Thanks for your help!
/Kristoffer
Hi!
Hi have installed a admin tool plugin that is an aspx, works just fine on my developing machine but when I deploy to my test servers the file is not loading, instead the .aspx file is downloaded?
Why is that? All other .aspx files i the Epi admin works just fine so the server can handle .aspx files.
The url for the GUI plugin is like "/modules/myplugin/myfile.aspx" and the link looks just fine in Episerver but when I click it the aspx file gets downloaded?
Any ideas?
Thanks!
/Kristoffer