asp.net - Loading part of web.config from other file -


rewriter section defined follows: <section name="rewriter" requirepermission="false" type="intelligencia.urlrewriter.configuration.rewriterconfigurationsectionhandler, intelligencia.urlrewriter" />

then <rewriter> element looks that:

<rewriter>     <if header="host" match="^example.com">       <redirect url="~/(.*)" to="http://www.example.com/$1" />     </if>     <!-- other rules --> </rewriter> 

now, have 2000 urls need redirect other domain. web.config file big enough on own when i've put 2000 urls it, got: cannot read configuration file because exceeds maximum file size error message. if i'd put data other config file, how can reference web.config?

my app running on asp.net 2.0 , uses package: https://www.nuget.org/packages/intelligencia.urlrewriter url rewriting.

as variant can change max size web.config tuning registry :)

hklm\software\microsoft\inetstp\configuration\maxwebconfigfilesizeinkb  (reg_dword) 

note if configure iis 7.0 , iis 7.5 run in 32-bit mode on windows server 2008 x64 or on windows server 2008 r2 x 64, registry key instead following:

hklm\software\wow6432node\microsoft\inetstp\configuration\maxwebconfigfilesizeinkb (reg_dword) 

Comments

Popular posts from this blog

Spring Boot + JPA + Hibernate: Unable to locate persister -

go - Golang: panic: runtime error: invalid memory address or nil pointer dereference using bufio.Scanner -

c - double free or corruption (fasttop) -