Azure 404 error redirection

by Rok Bermež 24. February 2010 11:56
Windows Azure uses IIS7 so normal <customErrors mode="RemoteOnly" redirectMode="ResponseRedirect" > <error statusCode="404" redirect="404.htm"/> </customErrors> wont work. What we have to do is to add <httpErrors errorMode="Custom"> <clear/> <error statusCode="404" path="404.htm" responseMode="Redirect"/> </httpErrors> to web.config and we are safe again.


.Net | ASP.NET | Azure

Changing the default browser in Visual Studio

by Rok Bermež 5. October 2009 14:41
If you've gotten used to using a particular browser when browsing (as opposed to debugging in Visual [More]


.Net | ASP.NET | Visual Studio | Web

Adding new WorkitemType to the existing Team Foundation (2008) Project

by Rok Bermež 16. September 2009 08:22
Recently a friend of mine had to add a new work item type to the template in the existing (and supposedly large project) so... here we go: Lets take a look at the existing work item types (MS agile template)   Next we export process template used in the project (menu:Team| Team Foundation Server Settings| Process Template Manager)  Now we have the current definitions so we can pick the closest one and modify it to suit our new needs   After its ready we can use a nice command line utility named witimport.exe that is located on the client computer in c:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE\ (use the /v switch to verify first)   And ta-ta-ra-ta the fruit of our work is available for use  


.Net | Development | Visual Studio

Method can not be reflected && 'date' is an invalid value for the SoapElementAttribute.DataType property. The property may only be specified for primitive types.

by Rok Bermež 4. September 2009 14:21
Annoying bug described in can be easily fixed by removing DataType="date" from SoapElementAttribute attribute. When you see: [System.Xml.Serialization.SoapElementAttribute(DataType="date", IsNullable=true)]   public System.Nullable<System.DateTime> BlaBLa just replace with: [System.Xml.Serialization.SoapElementAttribute(IsNullable=true)]   public System.Nullable<System.DateTime> BlaBla


.Net | ASP.NET | Live Mesh | Visual Studio

Paste XML as XElement

by Rok Bermež 22. May 2009 11:17
Generating XML in c# can be a time consuming task. 'Paste XML as XElement' Visual Studio extension can save you a lot of time. You can find this extension in Visual Studios samples directory:C:\Program Files (x86)\Microsoft Visual Studio 9.0\Samples\1033\CSharpSamples.zipExtract PasteXmlAsLinq project and compile it.Add PasteXmlAsLinq.AddIn and PasteXmlAsLinq.dll to one of the Visual Studios AddIn folder (you can see or add them in Tools|Options|Environment|AddIns)Restart the Visual Studio Now you have extra menu item and you can directly paste XML like <?xml version="1.0" encoding="utf-8" ?> <rootElement> <element id="1"> <podatek>aaa</podatek> </element> <element id="2"> <podatek>bbb</podatek> </element> </rootElement> to XElement xml = new XElement("rootElement", new XElement("element", new XAttribute("id", "1"), new XElement("podatek", "aaa") ), new XElement("element", new XAttribute("id", "2"), new XElement("podatek", "bbb") ) );


.Net | c# | Visual Studio


<<  January 2018  >>

View posts in large calendar

Page List

Month List