Tagged pages

Found 14 articles tagged with Configuration

Changing service reference configuration in the runtine
Updating service reference without restarting your applcation
 
0
Using web services in C# and in general in .NET based applications is really easy. All you need is a service URL and Visual Studio will generate both proxy classes for service communication and configuration for web service endpoints and bindings... read more
Hide IIS server info in a resposne
Hide server info in ASP.NET with simple web.config setting
0
Last year I wrote an article about ASP.NET web application security check list. Apparently there are always more things to add to improve your web application security... read more
Auto realod application config in .NET
Reflect config file changes in application in a runtime
 
0
In .NET working with configuration is really easy and there are bunch of .NET classes that rely on config values so you do not have to specify values in their constructors. For me it a common practice to instantiate database connections of WCF client by only creating an instance with parameterless constructor while keeping values in config file... read more
Reading config value to a proper data type
Automatic conversion of values from app.config
 
0
Reading from application config is pretty easy in .NET. You literally need one line to fetch the value... read more
Microsoft IIS and ASP.NET MVC caching techniques
Ways to cache data and response to improve page performance
 
0
Of course, the best way to make you web application work fluent is to write the code properly and design the architecture of application to meet requirements and certain load depending of the type of application. But even though architecture is good, you can always improve performance by reducing processing in application code itself... read more
Block referrer spam request on ASP.NET application
Block unwanted spam traffic from your wesbite
0
Recently I was checking my Google Analytics for this website I spotted some referrer urls that were completely unknown to me. When I tried to visit the url of the referrers I got a lot of commercial and pop-ups after few redirects. It looked really suspicious, so I tried to find a little bit more about these. ... read more
Enabling CORS only for specific domains in ASP.NET
Enable cross origin resquests only for certain domains in ASP.NET
0
Cross-origin resource sharing (CORS) means that page from other domain can make request to some resource which is on other domain. For example, if you try to invoke some WEB API method which is running on different domain you will get exception in the script. By default CORS are disabled in ASP.NET bot you can easily enable them just by modifying web.config for IIS7 and newer versions pf IIS. ... read more
Custom configuration section with intelisense
Setup intelisense for custom configuration sections in app.config
 
0
Config files are really useful and allow you to store some setting values without having to hard-code them. It provides out of the box configuration utility which is very flexible, but because of its flexibility, it has some drawbacks as well... read more
ASP.NET web application security check list
Things to do before your web application goes live
0
There are several things to be taken care of during development and before deployment to keep you online web app tip top regarding performance and security. 1. Logging informations ... read more
Restrict image and CSS hotlinking of your ASP.NET website
Blocking hotlinking with IIS Url Rewrite
0
I did not rely how important to restrict hot-linking until one day my friend came to me and told me that he has to pay additional money for the bandwidth on his website. He was surprised that he reached bandwidth quota limit. It was weird, but after some logging of requests coming to a website we realized that most of the requests were initiated from some other website... read more