iis 7 - Can't get ELMAH to works with ASP.NET MVC2 on IIS7.5 -
i try use elmah on asp.net mvc2 application, works fine on test server (casini x86) while using x86 version, when deploy on production server x86_64 version, 404 error when try access "elmah.axd" , no errors logged on iis (but logged in casini)
here web.config
<?xml version="1.0" encoding="utf-8"?> <!-- more information on how configure asp.net application, please visit http://go.microsoft.com/fwlink/?linkid=152368 --> <configuration> <configsections> <sectiongroup name="elmah"> <section name="security" requirepermission="false" type="elmah.securitysectionhandler, elmah" /> <section name="errorlog" requirepermission="false" type="elmah.errorlogsectionhandler, elmah" /> <section name="errormail" requirepermission="false" type="elmah.errormailsectionhandler, elmah" /> <section name="errorfilter" requirepermission="false" type="elmah.errorfiltersectionhandler, elmah" /> </sectiongroup> </configsections> <connectionstrings> <add name="applicationservices" connectionstring="data source=.\sqlexpress;initial catalog=ironviper;integrated security=sspi" providername="system.data.sqlclient" /> <add name="ironviperentities" connectionstring="metadata=res://*/models.ironviper.csdl|res://*/models.ironviper.ssdl|res://*/models.ironviper.msl;provider=system.data.sqlclient;provider connection string="data source=.\sqlexpress;initial catalog=ironviper;integrated security=true;multipleactiveresultsets=true"" providername="system.data.entityclient" /> </connectionstrings> <elmah> <errorlog type="elmah.xmlfileerrorlog, elmah" logpath="~/app_data" /> </elmah> <system.web> <httphandlers> <add verb="post,get,head" path="elmah.axd" type="elmah.errorlogpagefactory, elmah" /> </httphandlers> <httpmodules> <add name="errorlog" type="elmah.errorlogmodule, elmah" /> </httpmodules> <trace localonly="false" pageoutput="true" /> <compilation debug="true" targetframework="4.0"> <assemblies> <add assembly="system.web.abstractions, version=4.0.0.0, culture=neutral, publickeytoken=31bf3856ad364e35" /> <add assembly="system.web.routing, version=4.0.0.0, culture=neutral, publickeytoken=31bf3856ad364e35" /> <add assembly="system.web.mvc, version=2.0.0.0, culture=neutral, publickeytoken=31bf3856ad364e35" /> <add assembly="system.data.entity, version=4.0.0.0, culture=neutral, publickeytoken=b77a5c561934e089" /> </assemblies> </compilation> <authentication mode="forms"> <forms loginurl="~/account/logon" timeout="2880" /> </authentication> <membership> <providers> <clear /> <add name="aspnetsqlmembershipprovider" type="system.web.security.sqlmembershipprovider" connectionstringname="applicationservices" enablepasswordretrieval="false" enablepasswordreset="true" requiresquestionandanswer="false" requiresuniqueemail="false" maxinvalidpasswordattempts="5" minrequiredpasswordlength="6" minrequirednonalphanumericcharacters="0" passwordattemptwindow="10" applicationname="/" /> </providers> </membership> <profile> <providers> <clear /> <add name="aspnetsqlprofileprovider" type="system.web.profile.sqlprofileprovider" connectionstringname="applicationservices" applicationname="/" /> </providers> </profile> <rolemanager enabled="true"> <providers> <clear /> <add connectionstringname="applicationservices" applicationname="/" name="aspnetsqlroleprovider" type="system.web.security.sqlroleprovider" /> <add applicationname="/" name="aspnetwindowstokenroleprovider" type="system.web.security.windowstokenroleprovider" /> </providers> </rolemanager> <pages> <namespaces> <add namespace="system.web.mvc" /> <add namespace="system.web.mvc.ajax" /> <add namespace="system.web.mvc.html" /> <add namespace="system.web.routing" /> </namespaces> </pages> </system.web> <system.webserver> <validation validateintegratedmodeconfiguration="false" /> <modules runallmanagedmodulesforallrequests="true" /> <httpwarmup> <requests> <add requesturl="/" allowedresponsecodes="200-399" warmupcontext="" sendmode="asynchronous" /> </requests> </httpwarmup> </system.webserver> <runtime> <assemblybinding xmlns="urn:schemas-microsoft-com:asm.v1"> <dependentassembly> <assemblyidentity name="system.web.mvc" publickeytoken="31bf3856ad364e35" /> <bindingredirect oldversion="1.0.0.0" newversion="2.0.0.0" /> </dependentassembly> </assemblybinding> </runtime> <appsettings> </appsettings> </configuration>
the url used on production server is: http://xxxx/ironviperwebinterface/elmah.axd
and on casini : http://localhost:xxxx/elmah.axd
i tried change
<add verb="post,get,head" path="elmah.axd" type="elmah.errorlogpagefactory, elmah" />
to
<add verb="post,get,head" path="ironviperwebinterface/elmah.axd" type="elmah.errorlogpagefactory, elmah" />
but don't change anything.
i can't find problem..
any idea please ?
thank you
looks might answer:
Comments
Post a Comment