asp.net - Web.config isn't showing errors remotely even with customErrors="Off" (on ubuntu/mono) -
here web.config file:
<?xml version="1.0"?> <configuration> <system.web> <customerrors mode="off" /> <compilation debug="true" strict="false" explicit="true /> <pages> <namespaces> <clear /> <add namespace="system" /> <add namespace="system.collections" /> <add namespace="system.collections.generic" /> <add namespace="system.collections.specialized" /> <add namespace="system.configuration" /> <add namespace="system.text" /> <add namespace="system.text.regularexpressions" /> <add namespace="system.web" /> <add namespace="system.web.caching" /> <add namespace="system.web.sessionstate" /> <add namespace="system.web.security" /> <add namespace="system.web.profile" /> <add namespace="system.web.ui" /> <add namespace="system.web.ui.webcontrols" /> <add namespace="system.web.ui.webcontrols.webparts" /> <add namespace="system.web.ui.htmlcontrols" /> </namespaces> <controls> <add src ="~/controls/malebed.ascx" tagprefix ="mycontrol" tagname ="male"/> <add src ="~/controls/femalebed.ascx" tagprefix ="mycontrol" tagname ="female"/> </controls> </pages> </system.web> </configuration>
even customerrors mode set off (and capital "o") still showing me default errors page telling me set property before can see actual error remotely.
i don't have machine.config file, , i've set customerrors mode="off" in web.debug.config , web.release.config.
any ideas anyone?
thank much.
edit - showing:
server error in '/' application description: application error occurred on server. current custom error settings application prevent details of application error being viewed remotely (for security reasons). could, however, viewed browsers running on local server machine. details: enable details of specific error message viewable on remote machines, please create <customerrors> tag within "web.config" configuration file located in root directory of current web application. <customerrors> tag should have "mode" attribute set "off". <!-- web.config configuration file --> <configuration> <system.web> <customerrors mode="off"/> </system.web> </configuration> notes: current error page seeing can replaced custom error page modifying "defaultredirect" attribute of application's <customerrors> configuration tag point custom error page url. <!-- web.config configuration file --> <configuration> <system.web> <customerrors mode="remoteonly" defaultredirect="mycustompage.htm"/> </system.web> </configuration>
i found had restart apache after making changes web.config file...
Comments
Post a Comment