Attention: We are retiring the ASP.NET Community Blogs. Learn more >

Reducing web server roundtrips with a No Touch Deploy application

I was seeing 30+ web server roundtrips for resource files.  I reduced this to 10+ by adding

<Assembly: NeutralResourcesLanguage("en-US")>

to all of our assembly files. 

The 10+ remaining were for two 3rd party dlls we use.  We own the source code for one so I was able to add the above to their assembly files.  However, we do not own the source code for the other one.  I experimented with zero-length files.  This did not work.  I experimented with a dummy resource file.  This did not work. 

Finally, I added 

Thread.CurrentThread.CurrentUICulture = New CultureInfo("")

We do not need localization so just turn off the culture.

Bingo, no more web server roundtrips for resource files. 

Thanks to Wes and Ian for all of the help.  

 

1 Comment

Comments have been disabled for this content.