Home How do I add httpErrors errormode in config transform?
Reply: 1

How do I add httpErrors errormode in config transform?

red888
1#
red888 Published in 2018-02-13 18:04:40Z

I dont want to have to add this node to the main web.config, I want to insert it via the config transforms.

I tried doing this:

It successfully add the customErrors node but httpErrors throws an error ( the preview transform feature fails).

Tchaps
2#
Tchaps Reply to 2018-02-13 20:33:44Z

What about add an empty block in the main config file:

 <httpErrors>
   </httpErrors>

And the replace the block in the release configuration?

 <httpErrors xdt:Transform="Replace">
  .........
   </httpErrors>

May be it could work. I think it may work.

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.299702 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO