Feb08

Disabling input validation in MVC2 using ASP.NET 4.0

Tags: .NET, Arquitectura
Imagine you need to make a web page in which you can edit HTML and send it back to the server (an html editor), so you place the input and when you submit the form, the famous “A potentially dangerous Request.Form value was detected from the client” error rises, so you try the old way and you set the input validation to false in the page.
No... [Read More]

Feb03

MOSS cache in https sites

Tags: .NET, MOSS/WSS
There is quite odd behavior with MOSS cache: Imagine you create a site with two areas, one that can be accessed by http and one which must be accessed using https.
So you need to enable https in your site, etc… Alright, so how do you make the users access the secure zone by using https, you do two things:
You link to the secure zon... [Read More]

Feb03

Creating a custom RSS for your site

Tags: Proyectos, Internet, .NET, Community
Sometimes you need to create a custom RSS feed for your site, and the product you’re using (MOSS, Umbraco, a custom development,…) does not provide what you exactly need. So you start thinking about building your own feed.
The first attempt is to build the XML yourself, but you’ll find that it can be a little tricky, but think a while… since... [Read More]

Jan31

Testing your antivirus using EICAR Standard Anti-Virus Test File

Tags: Arquitectura
Sometimes you have to install an antivirus on your infrastructure or add virus detecting features to your application, then you have to test if it works… I don’t know you but I usually don’t have a virus available to test if the AV is correctly configured and I don’t want to test the system with a real virus.
So here comes EICAR Test File to... [Read More]

Jan30

Crawler error 2436 on a Host-Header based WebApp (and loopback check is disabled)

Tags: Proyectos, MOSS/WSS
This one took us a couple of hours (stressful hours) to spot. We rebooted a server and the crawler stopped crawling ;)
We have two webapps published in the server, the first one is attending to the machine name, and the second (the faulty one) is attending to an alias in the dns (using a host header like “app.company.int” ). The two applic... [Read More]

Jan19

Search in a document library points to Dispform.aspx instead of the file itself

Tags: MOSS/WSS, Proyectos
This one happened today… We discovered that for the pdf files the search results pointed to the dispform.aspx instead of pointing to the file itself.
The procedure we used to fix it was:
First insert a new pdf in the site and make an incremental crawl. When the crawl finishes search for the file in the crawl log, we saw that MOSS... [Read More]

Jan17

Dynamically Signing Downloaded Pdfs using an HttpHandler

Tags: .NET, Proyectos
Sometimes you have to perform some kind of operations on the files the user downloads from your site, for example you might need to put a watermark on the documents or images.
In this particular case we are going to sign a pdf file to prevent users modifying the file without being noticed. This is a very useful feature when you distribute le... [Read More]

 Next >>