I've implemented emlah in both asp.net web forms and mvc3 apps.
Its very useful pluggable tool for logging.
My Query:
I am looking to restrict access to elmah.axd for only my office ip.
Can some on please guide me how to achieve this!!
I am referring to applying ip/domain/a particular resource level
restriction through ipsecurity, this is configurable, here the link
for the same: http://www.stokia.com/support/misc/web-config-ip-address-restriction.aspx
I followed the link and tried applying the config setting in my
web.config files after installing the required IIS 7 services. Some
how its not working. I tried restricting ips manually through IIS 7,
it works.
If some one have already implemented what I am looking for then please
help me on this.
Best Regards.
Sudhanshu.
Unfortunately I'm not in position to do any testing here for you, but
perhaps the following ideas will help:
1) My first port of call would be to test that IP security *can* work
for you.
Forget about ELMAH for a minute and do the following:
a) create a new folder in your application
b) create a simple page in that application
c) see if you can get IP security to work following the instructions
in the link supplied
Once you've got this up and running, you can then move on:
2) Check to see if the same configuration can be applied directly to
ELMAH
If this works straight away you are done
If not, try this:
3) Consider how you are specifying the path to elmah.axd
The path itself might not physically exist, or it might be your root
folder
So try these steps:
a) create a folder in your application called elmahviewer
b) Apply IP security to this folder
c) change your handler declaration such that it maps to elmahviewer/
elmah.axd
Hope this helps!
Let us know how you get on!
Cheers,
James
On Nov 22, 2:01 pm, suddy <sudhansu...@gmail.com> wrote:
> Hi,
>
> I've implemented emlah in both asp.net web forms and mvc3 apps.
> Its very useful pluggable tool for logging.
>
> My Query:
>
> I am looking to restrict access to elmah.axd for only my office ip.
> Can some on please guide me how to achieve this!!
>
> I am referring to applying ip/domain/a particular resource level
> restriction through ipsecurity, this is configurable, here the link
> for the same:http://www.stokia.com/support/misc/web-config-ip-address-restriction....