XML documentation parse error (warning in Visual Studio)

Comments Off

I was working with a VB.NET project today and noticed the following warning:

XML documentation parse error: Whitespace is not allowed at this location. XML comment will be ignored.

After a quick search on the web I found the problem was using the ‘&’ character which is a reserved character for XML documentation. So my solution was to change ‘&’ to ‘and’ but I also found that placing the comment inside of <![CDATA[ Comments ]]> works. Here’s an example of my comment:

'''

''' This is a comment with an ampersand & causes a warning in Visual Studio.
''' 

''' 
''' 
''' 
Public Property s1() As String
	Get
		Return ""
	End Get
End Property

.NET 2.0 – Event validation fails when postback occurs before a page is rendered completely

Comments Off

http://support.microsoft.com/kb/969548

Solution: Upgrade the system to the .NET Framework 2.0 SP2 or the .NET Framework 3.5 SP1.

Other information related to this issue.

Sending Appointments to an Outlook 2007 Calendar from an ASP.NET 2.0 Web Site

Comments Off

Good article that uses VS 2005 to create an ASP.NET 2.0 web site that can create and send an calendar appointment to add to an Outlook 2007 calendar. Examples in both VB.NET and C#
http://msdn.microsoft.com/en-us/library/bb655909.aspx

Error while trying to run project: Unable to start debugging on the web server

Comments Off

Open your Internet Information Services manager and from the [your machine]/Web Sites/ Default Web Site node select the virtual folder which stores your project. Right Click and select Properties to select the ASP.NET tab page. Make sure the correct version ASP.NET Version is selected.

I have VS.NET 2003 and 2005 beta 1 running side-by-side on my box and noticed ASP.NET Version 2.0 is targeted by default, even for VS.NET 2003 projects.

Inline IF’ Statement

Comments Off

C#

string s;
s = (true ? "True" : "False"); //s will be "True"

VB.NET

Dim s As String
s = If(True, "True", "False") 's will be "True"
'In the following you cannot rely on a particular function
'not being called if the other argument is selected by Expression
'(notice IIf vs. If)
s = IIf(True, "True", "False") 's will be "True"

JavaScript

var s = (true) ? 'True' : 'False'; //s will be "True"