<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>my code trip &#187; Error Solution</title>
	<atom:link href="http://mycodetrip.com/tag/error-solution/feed/" rel="self" type="application/rss+xml" />
	<link>http://mycodetrip.com</link>
	<description>stories from the information technology highway</description>
	<lastBuildDate>Mon, 29 Nov 2010 19:58:26 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.4</generator>
		<item>
		<title>Fix for &#8216;The database principal owns a schema in the database, and cannot be dropped&#8217; Error</title>
		<link>http://mycodetrip.com/2007/03/27/15138-the-database-principal-owns-a-schema-in-the-database-and-cannot-be-dropped_34/</link>
		<comments>http://mycodetrip.com/2007/03/27/15138-the-database-principal-owns-a-schema-in-the-database-and-cannot-be-dropped_34/#comments</comments>
		<pubDate>Wed, 28 Mar 2007 01:30:27 +0000</pubDate>
		<dc:creator>Shiva Manjunath</dc:creator>
				<category><![CDATA[Tips / HowTos]]></category>
		<category><![CDATA[Bugs And Fixes]]></category>
		<category><![CDATA[Error Solution]]></category>
		<category><![CDATA[Management Studio]]></category>

		<guid isPermaLink="false">http://mycodetrip.com/?p=34</guid>
		<description><![CDATA[A Fix for SQL Server 2005 Error "15138 the database principal owns a schema in the database and cannot be dropped".]]></description>
			<content:encoded><![CDATA[<p>In <strong>SQL Server 2005</strong>, if you try to drop a database user by right-clicking the user name and clicking <strong>Delete</strong>, you   may encounter an error as follows.</p>
<p><span style="font-family: Courier New;">&#8220;The database principal owns a schema in the database, and cannot be dropped. (Microsoft SQL Server, Error: 15138)&#8221; </span></p>
<p><img src="http://img148.imageshack.us/img148/6200/sqlserver2005deleteuserol0.jpg" alt="sql-server-2005-user-cannot-be-dropped-error-image-1" /></p>
<p>The reason for this is that in <strong>SQL Server 2005</strong>, if a user is associated with a Schema, then that user has to be first   replaced by another user in the schema before you can drop the user from the database.</p>
<h2>Fix the Error</h2>
<p>In <strong>SQL Server 2005 Management Studio</strong>, expand the node</p>
<p><strong>Database &gt; <em>yourdatabasename</em> &gt; Security</strong> and then click   <strong>Schemas</strong>. On the right pane, you will see a name value pairs list of the schemas and the corresponding owners.</p>
<p><a title="sql-server-2005-user-cannot-be-dropped-error-image-2" rel="lightbox" href="http://img201.imageshack.us/img201/5012/sqlserver2005deleteuserhw8.jpg"> <img class="left" src="http://img201.imageshack.us/img201/5012/sqlserver2005deleteuserhw8.th.jpg" alt="sql-server-2005-user-cannot-be-dropped-error-image-2" /></a></p>
<p>For one or more of the schemas, you should see the user you are trying to drop listed as the owner.  For each of these schemas, do the following.</p>
<ul>
<li>Right click the schema, and click <strong>Properties</strong>. In the schema owner box, type the name of the schema, ex. in the following, I would type <strong>db_admin</strong> over the   <strong>mynewcommunity_admin.</strong></li>
<li>Click <strong>OK</strong>.</li>
<li>After you do this for all schemas that the user you are trying to drop is the owner of, you should see something like this.     <a title="sql-server-2005-user-cannot-be-dropped-error-image-3" rel="lightbox" href="http://img155.imageshack.us/img155/2284/sqlserver2005deleteuserrz4.jpg"> <img class="right" src="http://img155.imageshack.us/img155/2284/sqlserver2005deleteuserrz4.th.jpg" alt="sql-server-2005-user-cannot-be-dropped-error-image-3" /></a></li>
</ul>
<ul>
<li>Now, if you right click the user and click <strong>Delete</strong>, you should be able to successfully drop the user from the database.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://mycodetrip.com/2007/03/27/15138-the-database-principal-owns-a-schema-in-the-database-and-cannot-be-dropped_34/feed/</wfw:commentRss>
		<slash:comments>17</slash:comments>
		</item>
		<item>
		<title>Fix for &#8216;XML Parsing Error: not well-formed Line Number 1, Column 2&#8242; Error</title>
		<link>http://mycodetrip.com/2007/03/26/fix-for-xml-parsing-error-not-well-formed-line-number-1-column-2-error_36/</link>
		<comments>http://mycodetrip.com/2007/03/26/fix-for-xml-parsing-error-not-well-formed-line-number-1-column-2-error_36/#comments</comments>
		<pubDate>Tue, 27 Mar 2007 01:33:41 +0000</pubDate>
		<dc:creator>Shiva Manjunath</dc:creator>
				<category><![CDATA[Tips / HowTos]]></category>
		<category><![CDATA[ASP.Net]]></category>
		<category><![CDATA[Bugs And Fixes]]></category>
		<category><![CDATA[Error Solution]]></category>

		<guid isPermaLink="false">http://mycodetrip.com/?p=36</guid>
		<description><![CDATA[Fix for ASP.Net Error - 'XML Parsing Error: not well-formed Line Number 1, Column 2']]></description>
			<content:encoded><![CDATA[<p>When you access an <strong>ASP.NET</strong> page in your browser, you may get an <strong>XML Parsing Error</strong> that says that the XML is not well formed. The error message also displays the page directive statement present in the 1st line of the <strong>.aspx</strong> file. First we will fix this error, then we will look at one possible reason why you may be getting this error in <strong>ASP.NET</strong>.</p>
<p><img src="http://img412.imageshack.us/img412/3250/aspnetxmlparsingerrornona9.jpg" alt="asp-net-xml-parsing-error-not-well-formed" /></p>
<h2>Fix the &#8216;XML Parsing Error&#8217;</h2>
<p>Click <strong>Start &gt; Run</strong>, and type the following command depending on which ASP.NET framework is in use by the default web site in your <strong>IIS</strong>.</p>
<h3>ASP.NET 2.0 Framework</h3>
<p><span style="font-family: Courier New;"> %Windir%\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe -i</span></p>
<h3>ASP.NET 1.1 Framework</h3>
<p><span style="font-family: Courier New;"> %Windir%\Microsoft.NET\Framework\v1.1.4322\aspnet_regiis.exe -i</span></p>
<p>You should see a command window that is displayed briefly, that shows that <span style="font-weight: bold;">ASP.NET</span> is being installed. After the registration is successful, the window will be closed. <img src="http://img178.imageshack.us/img178/9021/aspnetxmlparsingerrornoye5.jpg" alt="register-asp-net-framework-with-iis" /></p>
<p>Now refresh the <strong>.aspx</strong> page that you got the XML Parser error for in the browser and your page should be rendered correctly.</p>
<h2>Why did you get this error ?</h2>
<p>I have seen this error happen to me in situations where I had installed IIS <em>after</em> the installing the .Net Framework. This make sense. If you install IIS after you install the <strong>.Net Framework</strong>, then the framework is not registered with IIS. So when a   request for a <strong>.aspx</strong> page comes to <strong>IIS</strong>, it simply passes on the contents of the page as-is without processing it. So in effect, the browser receives the entire <strong>.aspx</strong> page&#8217;s code, tried to parse it as an XML file, encounters the parsing error at the second character in the page directive and stops.</p>
<p><strong>Related:</strong> <a title="ASP.NET Registration Tool" rel="nofollow" href="http://msdn2.microsoft.com/en-us/library/k6h9cz8h(VS.80).aspx" target="_blank">ASP.NET IIS Registration Tool</a></p>
]]></content:encoded>
			<wfw:commentRss>http://mycodetrip.com/2007/03/26/fix-for-xml-parsing-error-not-well-formed-line-number-1-column-2-error_36/feed/</wfw:commentRss>
		<slash:comments>90</slash:comments>
		</item>
	</channel>
</rss>

