<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-6552951103434810852</id><updated>2011-09-07T03:22:35.967-07:00</updated><category term='Vuyiswa Maseko-0Buiding N-Tier VS NON N-Tier Applications'/><category term='Vuyiswa Maseko-Cannot Find keycodev2.dll or invalid keycode'/><category term='3.5 C#)'/><category term='Vuyiswa Maseko-not Create Windows Folder Named Con'/><category term='Vuyiswa Maseko-Could not load file or assembly &apos;App_Code&apos; or one of its dependencies. There is not enough space on the disk. (Exception from HRESULT: 0x80070070)new'/><category term='Vuyiswa Maseko-How to Show a Mesage Box in ASP.NET'/><category term='Vuyiswa Maseko-How to Get the Selected Item in a ListBox Control(ASP.NET 2.0'/><category term='Vuyiswa Maseko- How to Remove Duplicates in a String in SQL'/><category term='Vuyiswa Maseko-The State Information is Invalid for this Page and might be Corrupted'/><title type='text'>Removing SourceSafe dependencies from a VS Project</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://vuyiswamaseko.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6552951103434810852/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://vuyiswamaseko.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Vuyiswa Maseko</name><uri>http://www.blogger.com/profile/15443586948205234373</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/_uktx2Awu4nQ/SbpBWvn91uI/AAAAAAAAAAM/FzJmFZBWFLg/S220/me.office5.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>10</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6552951103434810852.post-7009458933308295418</id><published>2009-05-25T01:50:00.000-07:00</published><updated>2009-05-25T02:54:41.899-07:00</updated><title type='text'>Whitespace is not allowed at this location.</title><content type='html'>Am not a fan of Ado.net in XML and that is because its sometimes so consfusing and time consuming if you have get a work around for a problem of mulformed tags in the xml, well i might not be a fan but the previous programmer whom i inherited the project from was a fan of XML. well in a web application everything is xml based, database manupilation is done in xml, a lot of serialization and desirialization. it will take you more that ten lines of code , doing the looping to save data to SQL through a large dataset , but if you use straight ado.net object it will take you 5 or less lines and it depends on the parameters. now lets get to the point of this Blog.&lt;br /&gt;&lt;br /&gt;i came across an error on an XMl that reads&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;XML comment contains invalid XML: Whitespace is not allowed at this location".&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;This is because in your Column fields that you pass to the Xml there is ampresant and in XML its a special character, now you need to turn it off. well in my case and your case its simple , you need to leave your code the way it and in your code where you pass the xml string, you must use the replace function in C# or Vb.net like this&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Xml.Replace("&amp;amp;", "&amp;amp; amp;");&lt;br /&gt;&lt;br /&gt;the "&amp;amp;" will turn it off and everything will be good again. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Thank you&lt;br /&gt;&lt;br /&gt;Vuyiswa Maseko&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6552951103434810852-7009458933308295418?l=vuyiswamaseko.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vuyiswamaseko.blogspot.com/feeds/7009458933308295418/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vuyiswamaseko.blogspot.com/2009/05/whitespace-is-not-allowed-at-this.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6552951103434810852/posts/default/7009458933308295418'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6552951103434810852/posts/default/7009458933308295418'/><link rel='alternate' type='text/html' href='http://vuyiswamaseko.blogspot.com/2009/05/whitespace-is-not-allowed-at-this.html' title='Whitespace is not allowed at this location.'/><author><name>Vuyiswa Maseko</name><uri>http://www.blogger.com/profile/15443586948205234373</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/_uktx2Awu4nQ/SbpBWvn91uI/AAAAAAAAAAM/FzJmFZBWFLg/S220/me.office5.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6552951103434810852.post-3090171166366360468</id><published>2009-05-06T00:09:00.000-07:00</published><updated>2009-05-06T00:19:42.765-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Vuyiswa Maseko- How to Remove Duplicates in a String in SQL'/><title type='text'>How to Remove Duplicates in a string in SQL</title><content type='html'>I was working on a Functionality and came i cross duplicates in a Database table Field, so i thought that i will just put this string in a arralist and remove the Duplicates from there , but i thought how Arraylist are slow i thought mybe it will be good to do it here in sql, while googling i came across a very interesting post by Pinal Dave and  the post originally written by &lt;a href="http://blog.sqlauthority.com/2007/12/30/sql-server-remove-duplicate-characters-from-a-string/#comment-45626" target="_blank"&gt;Ashish Jain&lt;/a&gt; . you can Find it here &lt;a href="http://blog.sqlauthority.com/2009/01/15/sql-server-remove-duplicate-entry-from-comma-delimited-string-udf/"&gt;http://blog.sqlauthority.com/2009/01/15/sql-server-remove-duplicate-entry-from-comma-delimited-string-udf/&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Here is How it was done,&lt;br /&gt;&lt;br /&gt;Create a UDF(User Derfined Function)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;alter FUNCTION dbo.DistinctList&lt;br /&gt;(&lt;br /&gt;@List VARCHAR(MAX),&lt;br /&gt;@Delim CHAR&lt;br /&gt;)&lt;br /&gt;RETURNS&lt;br /&gt;VARCHAR(MAX)&lt;br /&gt;AS&lt;br /&gt;BEGIN&lt;br /&gt;DECLARE @ParsedList TABLE&lt;br /&gt;(&lt;br /&gt;Item VARCHAR(MAX)&lt;br /&gt;)&lt;br /&gt;DECLARE @list1 VARCHAR(MAX), @Pos INT, @rList VARCHAR(MAX)&lt;br /&gt;SET @list = LTRIM(RTRIM(@list)) + @Delim&lt;br /&gt;SET @pos = CHARINDEX(@delim, @list, 1)&lt;br /&gt;WHILE @pos &gt; 0&lt;br /&gt;BEGIN&lt;br /&gt;SET @list1 = LTRIM(RTRIM(LEFT(@list, @pos - 1)))&lt;br /&gt;IF @list1 &lt;&gt; ''&lt;br /&gt;INSERT INTO @ParsedList VALUES (CAST(@list1 AS VARCHAR(MAX)))&lt;br /&gt;SET @list = SUBSTRING(@list, @pos+1, LEN(@list))&lt;br /&gt;SET @pos = CHARINDEX(@delim, @list, 1)&lt;br /&gt;END&lt;br /&gt;SELECT @rlist = COALESCE(@rlist+',','') + item&lt;br /&gt;FROM (SELECT DISTINCT Item FROM @ParsedList) t&lt;br /&gt;RETURN @rlist&lt;br /&gt;END&lt;br /&gt;&lt;br /&gt;And Run your Fuction like this&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;SELECT dbo.DistinctList(MY_FIELD,' ') DistinctList FROM MYTABLE&lt;br /&gt;&lt;br /&gt;This Function takes two parameters the first one is the duplicated string, in this case i have used my field in mytable.  e.g if you have&lt;br /&gt;&lt;br /&gt;"12345612345" and run this on your field ,you will end up with&lt;br /&gt;&lt;br /&gt;"123456"&lt;br /&gt;&lt;br /&gt;Thanks&lt;br /&gt;&lt;br /&gt;Vuyiswa Maseko&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6552951103434810852-3090171166366360468?l=vuyiswamaseko.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vuyiswamaseko.blogspot.com/feeds/3090171166366360468/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vuyiswamaseko.blogspot.com/2009/05/how-to-remove-duplicates-in-string-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6552951103434810852/posts/default/3090171166366360468'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6552951103434810852/posts/default/3090171166366360468'/><link rel='alternate' type='text/html' href='http://vuyiswamaseko.blogspot.com/2009/05/how-to-remove-duplicates-in-string-in.html' title='How to Remove Duplicates in a string in SQL'/><author><name>Vuyiswa Maseko</name><uri>http://www.blogger.com/profile/15443586948205234373</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/_uktx2Awu4nQ/SbpBWvn91uI/AAAAAAAAAAM/FzJmFZBWFLg/S220/me.office5.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6552951103434810852.post-4921843465594932217</id><published>2009-04-29T00:19:00.000-07:00</published><updated>2009-04-29T00:25:20.581-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Vuyiswa Maseko-How to Show a Mesage Box in ASP.NET'/><title type='text'>How to Show a Mesage Box in ASP.NET</title><content type='html'>A lot of Developer from windows Platform who are new to Web Development , tries to mimic what they were doing in Windows Development on the Web.  Well it would be nice if Microsoft can add this feuture in ASp.net. Message boxes are the way a Developer interect with his or her users. In Windows Application its simple because you just need to call the Function&lt;br /&gt;&lt;br /&gt;MessageBox.Show("Your Message here...");&lt;br /&gt;&lt;br /&gt;This can still be used in the Web but , your message box will show at the taskbar and this will not be your intentions. To over come this in Asp.net you have to create a Function like this&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;public void CreateMessageAlert(System.Web.UI.Page aspxPage, string strMessage, string strKey)&lt;br /&gt;{&lt;br /&gt;string strScript = "&lt;script language="JavaScript"&gt;alert('" + strMessage + "')&lt;/script&gt;";&lt;br /&gt;if (!ClientScript.IsStartupScriptRegistered(strKey))&lt;br /&gt;{&lt;br /&gt;ClientScript.RegisterStartupScript(typeof(Page), strKey, strScript);&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;and you can call it like this&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;string strMessage = "You Message here...";&lt;br /&gt;CreateMessageAlert(this.Page, strMessage, "strKey1");&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;That is Simple.&lt;br /&gt;&lt;br /&gt;Vuyiswa Maseko&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6552951103434810852-4921843465594932217?l=vuyiswamaseko.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vuyiswamaseko.blogspot.com/feeds/4921843465594932217/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vuyiswamaseko.blogspot.com/2009/04/how-to-show-mesage-box-in-aspnet.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6552951103434810852/posts/default/4921843465594932217'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6552951103434810852/posts/default/4921843465594932217'/><link rel='alternate' type='text/html' href='http://vuyiswamaseko.blogspot.com/2009/04/how-to-show-mesage-box-in-aspnet.html' title='How to Show a Mesage Box in ASP.NET'/><author><name>Vuyiswa Maseko</name><uri>http://www.blogger.com/profile/15443586948205234373</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/_uktx2Awu4nQ/SbpBWvn91uI/AAAAAAAAAAM/FzJmFZBWFLg/S220/me.office5.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6552951103434810852.post-4857763350819176054</id><published>2009-04-28T02:03:00.000-07:00</published><updated>2009-04-29T00:26:29.200-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Vuyiswa Maseko-The State Information is Invalid for this Page and might be Corrupted'/><title type='text'>The State Information is Invalid for this Page and might be Corrupted</title><content type='html'>Some other Errors are not code related and but they can be solved through the code. Am uploading the Xml file to ym DB and am using Infragistics Controls to do this , it will work for very small files but it will give you a problem with a larger Files. Here is the cause&lt;br /&gt;&lt;br /&gt;Problem:&lt;br /&gt;&lt;br /&gt;This comes, because from version 2.2.2, we made the RadUploadHttpModule parse the files when used with the Cassini web server. I believe you have encountered a similar problem - the request data is not read properly by the RadUploadHttpModule and corrupt ViewState data is passed to the page. and you finnaly get the error&lt;br /&gt;&lt;br /&gt;The case-sensitive value that the TemplateSourceDirectory property of a page returns is used to create and to validate the ViewState property for that page. The value of this property for a page depends on the case-sensitive URL that the first user for that page requested. This value is reused for the remaining requests for that page until that page is recompiled. When the page is recompiled, the TemplateSourceDirectory property is re-initialized. If the new value (which is case-sensitive) differs from the previous value, the ViewState validation from the existing clients fails.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;The State Information is Invalid for this Page and might be Corrupted&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;/strong&gt;&lt;br /&gt;Resolutions:&lt;br /&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Someone else reported the same error and seemed to have found a workaround by causing his upload button PostbackUrl to go to the same page like this&lt;/li&gt;&lt;/ol&gt;&lt;p&gt;&lt;em&gt;btnAddFile.PostBackUrl = "~/NewsAddFiles.aspx?NewsId=" + hiddenNewsId.Value;&lt;/em&gt;&lt;/p&gt;&lt;p&gt;2. Download a hotFix &lt;a href="http://support.microsoft.com/default.aspx?scid=kb;ko;323744"&gt;http://support.microsoft.com/default.aspx?scid=kb;ko;323744&lt;/a&gt; &lt;/p&gt;&lt;p&gt;&lt;a href="http://support.microsoft.com/ph/1173#tab0"&gt;http://support.microsoft.com/ph/1173#tab0&lt;/a&gt;&lt;/p&gt;&lt;p&gt;3: Save the radion button selection and tree control node selection in session variables instead of view state, because the life scope of the view state is only within the page. When user navigates away to a different page, the view state of the previous page is destroyed.&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;Hope this This Helps &lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;Vuyiswa Maseko&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6552951103434810852-4857763350819176054?l=vuyiswamaseko.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vuyiswamaseko.blogspot.com/feeds/4857763350819176054/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vuyiswamaseko.blogspot.com/2009/04/state-information-is-invalid-for-this.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6552951103434810852/posts/default/4857763350819176054'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6552951103434810852/posts/default/4857763350819176054'/><link rel='alternate' type='text/html' href='http://vuyiswamaseko.blogspot.com/2009/04/state-information-is-invalid-for-this.html' title='The State Information is Invalid for this Page and might be Corrupted'/><author><name>Vuyiswa Maseko</name><uri>http://www.blogger.com/profile/15443586948205234373</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/_uktx2Awu4nQ/SbpBWvn91uI/AAAAAAAAAAM/FzJmFZBWFLg/S220/me.office5.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6552951103434810852.post-8195981104021425629</id><published>2009-03-24T05:08:00.000-07:00</published><updated>2009-04-29T00:26:57.132-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Vuyiswa Maseko-Cannot Find keycodev2.dll or invalid keycode'/><title type='text'>Cannot Find keycodev2.dll or invalid keycode</title><content type='html'>Have you ever come across this problem, when you have crystal report setup file. Which includes all the merge modules and license key for crystal reports. But still you are getting this error while deploying your application on the server.&lt;br /&gt;&lt;br /&gt;Solution:&lt;br /&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;&lt;div class="answerBody quoted" id="EchoTopic"&gt;&lt;nobr&gt;&lt;a class="tfTextLink" style="DISPLAY: inline; FONT-SIZE: 1em; PADDING-BOTTOM: 1px; COLOR: rgb(247,130,0); LINE-HEIGHT: 1em; BORDER-BOTTOM: rgb(247,130,0) 1px solid; BACKGROUND-COLOR: transparent; TEXT-DECORATION: underline" href="javascript:void(0)"&gt;Install&lt;/a&gt;&lt;/nobr&gt; CR redistrubutalbe on designated machine(using the correct version key, had some problems with an &lt;nobr&gt;&lt;a class="tfTextLink" style="DISPLAY: inline; FONT-SIZE: 1em; PADDING-BOTTOM: 1px; COLOR: rgb(247,130,0); LINE-HEIGHT: 1em; BORDER-BOTTOM: rgb(247,130,0) 1px solid; BACKGROUND-COLOR: transparent; TEXT-DECORATION: underline" href="javascript:void(0)"&gt;upgrade&lt;/a&gt;&lt;/nobr&gt; key)&lt;/div&gt;&lt;/li&gt;&lt;li&gt;Deploy the application including the mergemodules:&lt;br /&gt;Crystal_Database_Access2 &lt;div class="answerBody quoted" id="EchoTopic"&gt;&lt;wbr&gt;003.msm (necessary if you use ado)&lt;br /&gt;Crystal_Database_Access2&lt;wbr&gt;003_enu.ms&lt;wbr&gt;m (necessary if you use ado)&lt;br /&gt;Crystal_Managed2003.msm&lt;br /&gt;Crystal_regwiz2003.msm (don't forget to set license key in properties)&lt;br /&gt;VC_User_CRT71_RTL_X86_--&lt;wbr&gt;-.msm&lt;br /&gt;VC_User_MFC71_RTL_X86_--&lt;wbr&gt;-.msm&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;i have more links that are related to this topic and different version of Crystal report&lt;br /&gt;&lt;br /&gt;&lt;a href="http://support.businessobjects.com/fix/merge_modules.asp" target="_blank" rel="nofollow"&gt;http://support.businessobj&lt;wbr&gt;ects.com/f&lt;wbr&gt;ix/merge_m&lt;wbr&gt;odules.asp&lt;wbr&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://support.businessobjects.com/communityCS/FilesAndUpdates/cr9netredist.zip.asp" target="_blank" rel="nofollow"&gt;http://support.businessobj&lt;wbr&gt;ects.com/c&lt;wbr&gt;ommunityCS&lt;wbr&gt;/&lt;wbr&gt;FilesAndU&lt;wbr&gt;pdates/cr9&lt;wbr&gt;netredist.&lt;wbr&gt;zip.asp&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://support.businessobjects.com/communityCS/TechnicalPapers/crnet_keycodev2.pdf.asp" target="_blank" rel="nofollow"&gt;http://support.businessobj&lt;wbr&gt;ects.com/c&lt;wbr&gt;ommunityCS&lt;wbr&gt;/&lt;wbr&gt;Technical&lt;wbr&gt;Papers/crn&lt;wbr&gt;et_keycode&lt;wbr&gt;v2.pdf.asp&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Thank you&lt;br /&gt;&lt;br /&gt;Vuyiswa Maseko&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6552951103434810852-8195981104021425629?l=vuyiswamaseko.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vuyiswamaseko.blogspot.com/feeds/8195981104021425629/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vuyiswamaseko.blogspot.com/2009/03/cannot-find-keycodev2dll-or-invalid.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6552951103434810852/posts/default/8195981104021425629'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6552951103434810852/posts/default/8195981104021425629'/><link rel='alternate' type='text/html' href='http://vuyiswamaseko.blogspot.com/2009/03/cannot-find-keycodev2dll-or-invalid.html' title='Cannot Find keycodev2.dll or invalid keycode'/><author><name>Vuyiswa Maseko</name><uri>http://www.blogger.com/profile/15443586948205234373</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/_uktx2Awu4nQ/SbpBWvn91uI/AAAAAAAAAAM/FzJmFZBWFLg/S220/me.office5.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6552951103434810852.post-7886387768554646472</id><published>2009-03-24T00:23:00.000-07:00</published><updated>2009-04-29T00:27:22.813-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Vuyiswa Maseko-not Create Windows Folder Named Con'/><title type='text'>Cannot Create Windows Folder Named Con</title><content type='html'>&lt;b style="COLOR: red"&gt;Status:&lt;/b&gt;&lt;br /&gt;It is true that you cannot create a folder with the Following names&lt;br /&gt;&lt;br /&gt;&lt;ul class="tabletext"&gt;&lt;li&gt;PRN &lt;/li&gt;&lt;li&gt;AUX &lt;/li&gt;&lt;li&gt;NUL &lt;/li&gt;&lt;li&gt;LPT1 &lt;/li&gt;&lt;li&gt;COM1 &lt;/li&gt;&lt;li&gt;Potential drive letter - A: to Z: &lt;/li&gt;&lt;li&gt;A number of others &lt;/li&gt;&lt;/ul&gt;If you try to name a folder using one of these reserved names, the name will automatically revert to the default, generally "New Folder". Moreover, if you try to use a reserved name to name a file such as a Notepad or Microsoft Word document you will generally receive an error message similar to the following:&lt;br /&gt;&lt;br /&gt;Microsoft MS-DOS reserves certain names for system device drivers. If you try to name a file using one of these names, you will receive the following error message:&lt;br /&gt;&lt;br /&gt;&lt;span style="FONT-WEIGHT: bold"&gt;Write Fault Error Writing Device &lt;filename.ext&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="FONT-WEIGHT: bold"&gt;Abort, Retry, Ignore, Fail? &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The solution is to change the file name.&lt;br /&gt;&lt;br /&gt;Below is a list of default device driver names.&lt;br /&gt;&lt;div class="kb_intextbody"&gt;&lt;pre class="in_text"&gt;   Name    Function&lt;br /&gt;  ----    --------&lt;br /&gt;  CON     Keyboard and display&lt;br /&gt;  PRN     System list device, usually a parallel port&lt;br /&gt;  AUX     Auxiliary device, usually a serial port&lt;br /&gt;  CLOCK$  System real-time clock&lt;br /&gt;  NUL     Bit-bucket device&lt;br /&gt;  A:-Z:   Drive letters&lt;br /&gt;  COM1    First serial communications port&lt;br /&gt;  LPT1    First parallel printer port&lt;br /&gt;  LPT2    Second parallel printer port&lt;br /&gt;  LPT3    Third parallel printer port&lt;br /&gt;  COM2    Second serial communications port&lt;br /&gt;  COM3    Third serial communications port&lt;br /&gt;  COM4    Fourth serial communications port&lt;br /&gt;    &lt;/pre&gt;&lt;/div&gt;To identify system device driver names, use one of the following two commands:&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;mem /d  more &lt;/li&gt;&lt;li&gt;debug d 0070:0000&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;h5&gt;APPLIES TO&lt;/h5&gt;&lt;ul&gt;&lt;li&gt;Microsoft MS-DOS 2.11 Standard Edition &lt;/li&gt;&lt;li&gt;Microsoft MS-DOS 3.1 &lt;/li&gt;&lt;li&gt;Microsoft MS-DOS 3.2 Standard Edition &lt;/li&gt;&lt;li&gt;Microsoft MS-DOS 3.21 Standard Edition &lt;/li&gt;&lt;li&gt;Microsoft MS-DOS 3.3 Standard Edition &lt;/li&gt;&lt;li&gt;Microsoft MS-DOS 3.3a &lt;/li&gt;&lt;li&gt;Microsoft MS-DOS 4.0 Standard Edition &lt;/li&gt;&lt;li&gt;Microsoft MS-DOS 4.01 Standard Edition &lt;/li&gt;&lt;li&gt;Microsoft MS-DOS 5.0 Standard Edition &lt;/li&gt;&lt;li&gt;Microsoft MS-DOS 5.0a &lt;/li&gt;&lt;li&gt;Microsoft MS-DOS 6.0 Standard Edition &lt;/li&gt;&lt;li&gt;Microsoft MS-DOS 6.2 Standard Edition &lt;/li&gt;&lt;li&gt;Microsoft MS-DOS 6.21 Standard Edition &lt;/li&gt;&lt;li&gt;Microsoft MS-DOS 6.22 Standard Edition&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;Thank you&lt;br /&gt;&lt;br /&gt;Vuyiswa Maseko&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6552951103434810852-7886387768554646472?l=vuyiswamaseko.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vuyiswamaseko.blogspot.com/feeds/7886387768554646472/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vuyiswamaseko.blogspot.com/2009/03/cannot-create-windows-folder-named-con.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6552951103434810852/posts/default/7886387768554646472'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6552951103434810852/posts/default/7886387768554646472'/><link rel='alternate' type='text/html' href='http://vuyiswamaseko.blogspot.com/2009/03/cannot-create-windows-folder-named-con.html' title='Cannot Create Windows Folder Named Con'/><author><name>Vuyiswa Maseko</name><uri>http://www.blogger.com/profile/15443586948205234373</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/_uktx2Awu4nQ/SbpBWvn91uI/AAAAAAAAAAM/FzJmFZBWFLg/S220/me.office5.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6552951103434810852.post-9071604478468666662</id><published>2009-03-17T01:35:00.000-07:00</published><updated>2009-04-29T00:27:46.235-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Vuyiswa Maseko-Could not load file or assembly &apos;App_Code&apos; or one of its dependencies. There is not enough space on the disk. (Exception from HRESULT: 0x80070070)new'/><title type='text'>Could not load file or assembly 'App_Code' or one of its dependencies. There is not enough space on the disk. (Exception from HRESULT: 0x80070070)new</title><content type='html'>हवे यू एवर काम आक्रोस अन एर्रोर लिखे थिस&lt;br /&gt;&lt;br /&gt;&lt;em&gt;Could not load file or assembly 'App_Code' or one of its dependencies। There is not enough space on the disk. (Exception from HRESULT: 0x80070070)&lt;/em&gt;&lt;br /&gt;&lt;em&gt;दो नोट पनिक, थिस इस नोट अ प्रॉब्लम इन यौर ऍप्लिकेशन और यौर कोड, बुत इट्स अ प्रॉब्लम ओं यौर सर्वर।। तेरे अरे प्लेंटी ऑफ़ रेसोलुशन तो थिस प्रॉब्लम , &lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;1) रन थे डिस्क क्लेअनुप तो रेमोवे उनुसेद और टेम्प फिल्स एंड रिस्टार्ट यौर सर्वर अनडी विल सोल्वे यौर प्रॉब्लम &lt;/em&gt;&lt;br /&gt;&lt;em&gt;२)That's pretty clearly a disk space error। While your account may have plenty of disk space available, the error might refer to the operating system partition on the machine - since the error occurs when assemblies are being loaded into memory which likely will occur on the OS disk. Your Web space is probably on a different partition than the OS, and there is probably plenty of space there.&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;ठनक you&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;/em&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6552951103434810852-9071604478468666662?l=vuyiswamaseko.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vuyiswamaseko.blogspot.com/feeds/9071604478468666662/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vuyiswamaseko.blogspot.com/2009/03/could-not-load-file-or-assembly-appcode.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6552951103434810852/posts/default/9071604478468666662'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6552951103434810852/posts/default/9071604478468666662'/><link rel='alternate' type='text/html' href='http://vuyiswamaseko.blogspot.com/2009/03/could-not-load-file-or-assembly-appcode.html' title='Could not load file or assembly &apos;App_Code&apos; or one of its dependencies. There is not enough space on the disk. (Exception from HRESULT: 0x80070070)new'/><author><name>Vuyiswa Maseko</name><uri>http://www.blogger.com/profile/15443586948205234373</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/_uktx2Awu4nQ/SbpBWvn91uI/AAAAAAAAAAM/FzJmFZBWFLg/S220/me.office5.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6552951103434810852.post-7973412422983975131</id><published>2009-03-16T04:58:00.000-07:00</published><updated>2009-04-29T00:28:11.983-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Vuyiswa Maseko-How to Get the Selected Item in a ListBox Control(ASP.NET 2.0'/><category scheme='http://www.blogger.com/atom/ns#' term='3.5 C#)'/><title type='text'>How to Get the Selected Item in a ListBox Control(ASP.NET 2.0,3.5 C#)</title><content type='html'>Many People who start developing on ASP.NET C#, they usually find it difficult to bind and get the selected item in the listbox and Dropdownlist control. This is how simple it is&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;String myselecteditem = listBox1.SelectedItems;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;And you can do the same thing with a Dropdownlist&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;String mydropdownlist = dropdownlist1.SelectedItems;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Now all this will return what a user see on the List box, if it’s a list of numbers like {1,2,3,4,5} then the value that will be contained in there is that.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Thanks&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6552951103434810852-7973412422983975131?l=vuyiswamaseko.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vuyiswamaseko.blogspot.com/feeds/7973412422983975131/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vuyiswamaseko.blogspot.com/2009/03/how-to-get-selected-item-in-listbox.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6552951103434810852/posts/default/7973412422983975131'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6552951103434810852/posts/default/7973412422983975131'/><link rel='alternate' type='text/html' href='http://vuyiswamaseko.blogspot.com/2009/03/how-to-get-selected-item-in-listbox.html' title='How to Get the Selected Item in a ListBox Control(ASP.NET 2.0,3.5 C#)'/><author><name>Vuyiswa Maseko</name><uri>http://www.blogger.com/profile/15443586948205234373</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/_uktx2Awu4nQ/SbpBWvn91uI/AAAAAAAAAAM/FzJmFZBWFLg/S220/me.office5.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6552951103434810852.post-8989013178012531316</id><published>2009-03-13T04:59:00.001-07:00</published><updated>2009-04-29T00:28:50.720-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Vuyiswa Maseko-0Buiding N-Tier VS NON N-Tier Applications'/><title type='text'>Buiding N-Tier VS NON N-Tier Applications</title><content type='html'>&lt;p&gt;There different ways to do things, I don’t expect a programmer before me to do things the way I do them or the programmer after me to do the things the way I do them. But I believe companies should enforce a law on the approach of application development. If programmers were arrested for doing certain things in an application, I think a lot would have been arrested and that includes me.&lt;br /&gt;&lt;br /&gt;I came to learn from my first article i wrote for &lt;a href="http://www.codeproject.com/script/Articles/MemberArticles.aspx?amid=3942021"&gt;codeproject&lt;/a&gt; . That application should be tired. No matter how small the application can be they should be tired. I came across applications that were poorly tired, at least they tried and I can across the applications that were not tired at all. Coming from an n-tier background has become worse part of my career finding that an enterprise application has not been tired. In some instances you will find form with sql inside, in others you will find pages with sql inside them. Microsoft has made programmers of today more productive and programmers abused their powers, today data layers are not created anymore, not to mention business logic layer. People write code that is a victim to &lt;a href="http://en.wikipedia.org/wiki/SQL_injection"&gt;sql injection&lt;/a&gt; . I have just enjoyed the benefits of writing applications in an n-tier style.&lt;br /&gt;&lt;br /&gt;ü It’s easy to maintain the application. If there is an exception, you know which part to check.&lt;br /&gt;ü It has resilience to change, if a new functionality is requested, you will not touch other part of the code, you will just add in 3 places your DAL (Data Access Layer) àBLL (Business Logic Layer) àPL (Presentation Layer).&lt;br /&gt;ü Your layer can be access by any type of Client WEB ,Windows or Mobile&lt;br /&gt;ü A Programmer After you will follow the same Rules and he will understand the System very easily.&lt;br /&gt;ü The SQL side is done only on the SQL server and the StoredProcedure are called from one layer (DAL).&lt;br /&gt;ü Errors are handled in one place, which mean in a DAL errors are not handled, but instead they are passed to the calling function or method.&lt;br /&gt;ü Business Rules are not handled in the Pages or Forms; they are handled in the BLL layer.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Microsoft has done a very good job on its technologies like ado.net and more… When Linq was introduced, it did not fit into my plans; I kept my sql in the Server and continued to call my sp’s from the data access layer. Now Linq to dying see below links&lt;/p&gt;&lt;p&gt;&lt;a href="http://ayende.com/Blog/archive/2008/10/31/microsoft-kills-linq-to-sql.aspx"&gt;http://ayende.com/Blog/archive/2008/10/31/microsoft-kills-linq-to-sql.aspx&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;a href="http://quintesvanaswegen.com/2009/01/15/on-net-microsoft-kills-linq-to-sql/"&gt;http://quintesvanaswegen.com/2009/01/15/on-net-microsoft-kills-linq-to-sql/&lt;/a&gt;&lt;/p&gt;&lt;p&gt;, I don’t know what is going to happen to those who implemented it. This proved that it is not a good idea to write your sql with your C# or vb.net code. In this Blog I welcome critics and good comments. Tell me what you think about this subject.&lt;br /&gt;&lt;br /&gt;Thank you,&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6552951103434810852-8989013178012531316?l=vuyiswamaseko.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vuyiswamaseko.blogspot.com/feeds/8989013178012531316/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vuyiswamaseko.blogspot.com/2009/03/buiding-n-tier-vs-non-n-tier.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6552951103434810852/posts/default/8989013178012531316'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6552951103434810852/posts/default/8989013178012531316'/><link rel='alternate' type='text/html' href='http://vuyiswamaseko.blogspot.com/2009/03/buiding-n-tier-vs-non-n-tier.html' title='Buiding N-Tier VS NON N-Tier Applications'/><author><name>Vuyiswa Maseko</name><uri>http://www.blogger.com/profile/15443586948205234373</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/_uktx2Awu4nQ/SbpBWvn91uI/AAAAAAAAAAM/FzJmFZBWFLg/S220/me.office5.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6552951103434810852.post-6242647241524580058</id><published>2009-03-13T04:41:00.000-07:00</published><updated>2009-03-13T04:54:36.427-07:00</updated><title type='text'></title><content type='html'>I recently inherited a Project that was stored in Visual Source Safe, i made a copy of the Project to my local machine and tried to work on it, and when i open my main project from the VSS, i found that the changes reflected on themain project. That was a Dangerous thing to have. So i decided to find the way to remove the binding from my project. i did the Following&lt;br /&gt;&lt;br /&gt;Solution:&lt;br /&gt;1 - Go to the folder containing the solution files and delete the following:          mssccprj.scc&lt;br /&gt;MyProject.vssscc&lt;br /&gt;vssver.scc&lt;br /&gt;&lt;br /&gt;2 - Open MyProject.sln in your favorite text editor and remove the following section:&lt;br /&gt;GlobalSection(SourceCodeControl) = preSolution                     ...          EndGlobalSection&lt;br /&gt;3 - Go to the folder containing the project files and delete the following:          MyProject.vbproj.vspscc&lt;br /&gt;mssccprj.scc&lt;br /&gt;vssver.scc&lt;br /&gt;4 - Open MyProject.vbproj in your text editor and remove the following lines: &lt;br /&gt;SccProjectName = "SAK"&lt;br /&gt;SccLocalPath = "SAK"&lt;br /&gt;SccAuxPath = "SAK"&lt;br /&gt;SccProvider = "SAK"&lt;br /&gt;&lt;br /&gt;Now you can open the solution/project with no source control errors.&lt;br /&gt;&lt;br /&gt;Thank you&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6552951103434810852-6242647241524580058?l=vuyiswamaseko.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vuyiswamaseko.blogspot.com/feeds/6242647241524580058/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vuyiswamaseko.blogspot.com/2009/03/i-recently-inherited-project-that-was.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6552951103434810852/posts/default/6242647241524580058'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6552951103434810852/posts/default/6242647241524580058'/><link rel='alternate' type='text/html' href='http://vuyiswamaseko.blogspot.com/2009/03/i-recently-inherited-project-that-was.html' title=''/><author><name>Vuyiswa Maseko</name><uri>http://www.blogger.com/profile/15443586948205234373</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/_uktx2Awu4nQ/SbpBWvn91uI/AAAAAAAAAAM/FzJmFZBWFLg/S220/me.office5.jpg'/></author><thr:total>0</thr:total></entry></feed>
