<?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-742064686433692851</id><updated>2012-02-15T22:18:33.409-08:00</updated><category term='C#'/><category term='Community Server'/><category term='Visual Studio'/><category term='XML'/><category term='Asp.net'/><category term='Text Wrap'/><category term='Sitemap'/><category term='Membership Provider'/><category term='GridView'/><category term='Sql Server'/><title type='text'>Developmentorium</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://developmentorium.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/742064686433692851/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://developmentorium.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Paul Sohal</name><uri>http://www.blogger.com/profile/09692034307282892081</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>11</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-742064686433692851.post-6612991315465527127</id><published>2011-10-27T10:58:00.000-07:00</published><updated>2011-10-27T11:04:07.010-07:00</updated><title type='text'>Cannot implicitly convert type 'System.Data.Objects.ObjectResult' to 'int?'</title><content type='html'>When you're executing a Save on your DataContext using EF, and get this error:&lt;br /&gt;&lt;br /&gt;Cannot implicitly convert type 'System.Data.Objects.ObjectResult&lt;int?&gt;' to 'int?'&lt;br /&gt;&lt;br /&gt;You may want to try adding a SingleOrDefault or FirstOrDefault to the end of your SPROC call to close the transaction before you save.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;BAD&lt;/b&gt;&lt;br /&gt;&lt;pre style="font-size: 13px; line-height: 18px; text-align: -webkit-auto; background-color: rgb(247, 247, 247); background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; font-family: Consolas; "&gt;&lt;span style="color: blue; "&gt;int&lt;/span&gt;? rc = myContext.myProc(myParameter);&lt;/pre&gt;&lt;pre style="font-size: 13px; line-height: 18px; text-align: -webkit-auto; background-color: rgb(247, 247, 247); background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; font-family: Consolas; "&gt;myContext.Save();&lt;/pre&gt;&lt;/int?&gt;&lt;div&gt;&lt;int?&gt;&lt;br /&gt;&lt;/int?&gt;&lt;/div&gt;&lt;div&gt;&lt;int?&gt;&lt;b&gt;GOOD&lt;/b&gt;&lt;/int?&gt;&lt;/div&gt;&lt;div&gt;&lt;int?&gt;&lt;pre style="font-size: 13px; line-height: 18px; text-align: -webkit-auto; background-color: rgb(247, 247, 247); background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; font-family: Consolas; "&gt;&lt;span style="color: blue; "&gt;int&lt;/span&gt;? rc = myContext.myProc(myParameter)&lt;span class="Apple-style-span" style="background-color: rgb(255, 255, 255); "&gt;&lt;span class="Apple-style-span" &gt;.FirstOrDefault();&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style="font-size: 13px; line-height: 18px; text-align: -webkit-auto; background-color: rgb(247, 247, 247); background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; font-family: Consolas; "&gt;myContext.Save();&lt;/pre&gt;&lt;/int?&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/742064686433692851-6612991315465527127?l=developmentorium.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://developmentorium.blogspot.com/feeds/6612991315465527127/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://developmentorium.blogspot.com/2011/10/cannot-implicitly-convert-type.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/742064686433692851/posts/default/6612991315465527127'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/742064686433692851/posts/default/6612991315465527127'/><link rel='alternate' type='text/html' href='http://developmentorium.blogspot.com/2011/10/cannot-implicitly-convert-type.html' title='Cannot implicitly convert type &apos;System.Data.Objects.ObjectResult&apos; to &apos;int?&apos;'/><author><name>Paul Sohal</name><uri>http://www.blogger.com/profile/09692034307282892081</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-742064686433692851.post-7443533221951837485</id><published>2009-11-15T10:40:00.000-08:00</published><updated>2009-12-02T07:22:43.541-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='GridView'/><category scheme='http://www.blogger.com/atom/ns#' term='C#'/><category scheme='http://www.blogger.com/atom/ns#' term='Asp.net'/><category scheme='http://www.blogger.com/atom/ns#' term='Text Wrap'/><title type='text'>Text Wrap in GridViews</title><content type='html'>If you want to make your text wrap in a GridView control, just add the style WORD-BREAK:BREAK-ALL. &lt;br /&gt;        protected void gridViewCustomer_RowDataBound(object sender, GridViewRowEventArgs e)&lt;br /&gt;        {&lt;br /&gt;            if (e.Row.RowType == DataControlRowType.DataRow)&lt;br /&gt;            {&lt;br /&gt;e.Row.Attributes.Add("style", "WORD-BREAK:BREAK-ALL");&lt;br /&gt;}&lt;br /&gt;{&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/742064686433692851-7443533221951837485?l=developmentorium.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://developmentorium.blogspot.com/feeds/7443533221951837485/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://developmentorium.blogspot.com/2009/11/text-wrap-in-gridviews.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/742064686433692851/posts/default/7443533221951837485'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/742064686433692851/posts/default/7443533221951837485'/><link rel='alternate' type='text/html' href='http://developmentorium.blogspot.com/2009/11/text-wrap-in-gridviews.html' title='Text Wrap in GridViews'/><author><name>Paul Sohal</name><uri>http://www.blogger.com/profile/09692034307282892081</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-742064686433692851.post-961993312473730061</id><published>2009-11-13T14:11:00.000-08:00</published><updated>2009-12-02T07:22:18.283-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='XML'/><category scheme='http://www.blogger.com/atom/ns#' term='C#'/><category scheme='http://www.blogger.com/atom/ns#' term='Asp.net'/><title type='text'>Read XML doc with xmlns using XDocument</title><content type='html'>Sample Xml File County.xml&lt;br /&gt;&lt;div style="font-color:red"&gt;&lt;br /&gt;&amp;#60;root xmlns="nameSpace"&amp;#62;&lt;br /&gt;  &amp;#60;county&amp;#62;&lt;br /&gt;          &amp;#60;group name="Sutter"&amp;#62;&lt;br /&gt;          &amp;#60;group name="Yuba"&amp;#62;&lt;br /&gt;          &amp;#60;group name="Placer"&amp;#62;&lt;br /&gt;  &amp;#60;/group&amp;#62;&lt;br /&gt;&amp;#60;/group&amp;#62;&lt;br /&gt;&amp;#60;root&amp;#62; &lt;br /&gt;&lt;/div&gt;&lt;br /&gt;-----------------------------------------------------------&lt;br /&gt;&lt;br /&gt;//C#&lt;br /&gt;XDocument xDoc = XDocument.Load("Country.xml");&lt;br /&gt;XNamespace ns = xDoc.Root.Name.Namespace;&lt;br /&gt;&lt;br /&gt;//adding the namespace infront of the XName will allow you to access the node.&lt;br /&gt;var elements = xDoc..Element(ns+"root").Element(ns+"County").Descendants(ns+"Group");&lt;br /&gt;&lt;br /&gt;foreach (var element in elements)&lt;br /&gt;{&lt;br /&gt;    Console.Write(element.Attribute("name").ToString());&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/root&gt;&lt;/group&gt;&lt;/county&gt;&lt;/root&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/742064686433692851-961993312473730061?l=developmentorium.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://developmentorium.blogspot.com/feeds/961993312473730061/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://developmentorium.blogspot.com/2009/11/read-xml-doc-with-xmlns-using-xdocument.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/742064686433692851/posts/default/961993312473730061'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/742064686433692851/posts/default/961993312473730061'/><link rel='alternate' type='text/html' href='http://developmentorium.blogspot.com/2009/11/read-xml-doc-with-xmlns-using-xdocument.html' title='Read XML doc with xmlns using XDocument'/><author><name>Paul Sohal</name><uri>http://www.blogger.com/profile/09692034307282892081</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-742064686433692851.post-3509670365549964760</id><published>2009-09-22T08:59:00.000-07:00</published><updated>2009-12-02T07:21:56.808-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Asp.net'/><category scheme='http://www.blogger.com/atom/ns#' term='Sitemap'/><title type='text'>siteMapNode target="_blank"</title><content type='html'>Don't waste your time adding a target="_blank" attribute in your sitemapNode, IT DOESN'T WORK.  There is a work around though.   Add JavaScript to open your link in a new page.&lt;br /&gt;&lt;br /&gt;Example:&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;(Will not work)&amp;lt;sitemapnode url="http://www.google.com" title="Google" target="_blank"&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;(WORKS!)&amp;lt;sitemapnode href="javascript:var w=window.open('http://www.google.com','google');" title="Google" /&amp;gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/742064686433692851-3509670365549964760?l=developmentorium.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://developmentorium.blogspot.com/feeds/3509670365549964760/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://developmentorium.blogspot.com/2009/09/sitemapnode-targetblank.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/742064686433692851/posts/default/3509670365549964760'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/742064686433692851/posts/default/3509670365549964760'/><link rel='alternate' type='text/html' href='http://developmentorium.blogspot.com/2009/09/sitemapnode-targetblank.html' title='siteMapNode target=&quot;_blank&quot;'/><author><name>Paul Sohal</name><uri>http://www.blogger.com/profile/09692034307282892081</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-742064686433692851.post-5185879776718776195</id><published>2009-07-20T20:33:00.000-07:00</published><updated>2009-12-11T18:02:42.690-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Sql Server'/><title type='text'>Great Sql Server Plugin</title><content type='html'>&lt;h2&gt;T-Sql CRUD Code Generator&lt;/h2&gt;&lt;br /&gt;If you're like me, you want save time when coding.  If there is a mundane task that you can teach a monkey to do, why wast time and do it your self.  I found a great plug-in for Sql Server Management Studio that lets you generate CRUD statements for your tables.  Just right click on your table in Object Explorer and choose create CRUD.&lt;br /&gt;&lt;br /&gt;A big thank you to &lt;strong&gt;Mladen Prajdić,&lt;/strong&gt; the developer who created this useful tool.  Go to his website, download his tool, and click on some ads.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.ssmstoolspack.com/Main.aspx"&gt;http://www.ssmstoolspack.com/Main.aspx&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/742064686433692851-5185879776718776195?l=developmentorium.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://developmentorium.blogspot.com/feeds/5185879776718776195/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://developmentorium.blogspot.com/2009/07/great-sql-server-plugin.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/742064686433692851/posts/default/5185879776718776195'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/742064686433692851/posts/default/5185879776718776195'/><link rel='alternate' type='text/html' href='http://developmentorium.blogspot.com/2009/07/great-sql-server-plugin.html' title='Great Sql Server Plugin'/><author><name>Paul Sohal</name><uri>http://www.blogger.com/profile/09692034307282892081</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-742064686433692851.post-3969952088508187469</id><published>2009-06-02T09:53:00.000-07:00</published><updated>2009-12-02T07:21:14.065-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Visual Studio'/><title type='text'>Installing Visual Studio 2008 SP1</title><content type='html'>&lt;span style="font-weight: bold;font-size:130%;" &gt;Be Patient!  Installation takes a long time!&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;I made the mistake of canceling installing several times because I thought it was hanging.  Nope, this install just takes a very long time.  Just wanted to warn everyone that you need to be patient.  The installer progress screen will be on "Installing VS90sp1-KB945140-X86-ENU" for a while.  Just wait it out.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/742064686433692851-3969952088508187469?l=developmentorium.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://developmentorium.blogspot.com/feeds/3969952088508187469/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://developmentorium.blogspot.com/2009/06/installing-visual-studio-2008-sp1.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/742064686433692851/posts/default/3969952088508187469'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/742064686433692851/posts/default/3969952088508187469'/><link rel='alternate' type='text/html' href='http://developmentorium.blogspot.com/2009/06/installing-visual-studio-2008-sp1.html' title='Installing Visual Studio 2008 SP1'/><author><name>Paul Sohal</name><uri>http://www.blogger.com/profile/09692034307282892081</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-742064686433692851.post-4463649618217201920</id><published>2009-04-25T17:49:00.000-07:00</published><updated>2009-12-02T07:21:05.016-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Sql Server'/><category scheme='http://www.blogger.com/atom/ns#' term='Membership Provider'/><title type='text'>The 'System.Web.Security.SqlMembershipProvider' requires a database schema compatible with schema version '1'.  However, the current database schema i</title><content type='html'>&lt;i&gt;&lt;/i&gt;If you are migrating your site to a new server and generated a create table script of all the asp.net membership tables, It's most likely that your aspnet_SchemaVersions table is empty.  If you populate aspnet_SchemaVersions table with the following values, you should be good to go.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Feature    CompatibleSchemaVersion    IsCurrentVersion&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;common    1    1&lt;br /&gt;health monitoring    1    1&lt;br /&gt;membership    1    1&lt;br /&gt;personalization    1    1&lt;br /&gt;profile    1    1&lt;br /&gt;role manager    1    1&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/742064686433692851-4463649618217201920?l=developmentorium.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://developmentorium.blogspot.com/feeds/4463649618217201920/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://developmentorium.blogspot.com/2009/04/systemwebsecuritysqlmembershipprovider.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/742064686433692851/posts/default/4463649618217201920'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/742064686433692851/posts/default/4463649618217201920'/><link rel='alternate' type='text/html' href='http://developmentorium.blogspot.com/2009/04/systemwebsecuritysqlmembershipprovider.html' title='The &apos;System.Web.Security.SqlMembershipProvider&apos; requires a database schema compatible with schema version &apos;1&apos;.  However, the current database schema i'/><author><name>Paul Sohal</name><uri>http://www.blogger.com/profile/09692034307282892081</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-742064686433692851.post-8402156731706751318</id><published>2009-02-23T18:07:00.000-08:00</published><updated>2009-12-02T07:20:35.847-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Community Server'/><title type='text'>Community Server shared membership</title><content type='html'>Step to configure Community Server with an existing membership database.&lt;br /&gt;&lt;br /&gt;Create Community Server Database manually&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Step 1.) Add a new connection string&lt;/strong&gt; in CS web.config that points to your sites membership database.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Step 2.)Update your providers&lt;br /&gt;&lt;/strong&gt;(Membership, Profile, and/or Role) to use the new connection string&lt;br /&gt;&lt;br /&gt;&lt;font style="font-weight: bold;"&gt;Step 3.)&lt;/font&gt; &lt;font style="font-weight: bold;"&gt;Change the CS application name to your sites application name.&lt;/font&gt;&lt;br /&gt;The applicationName property exists in Membership, Profile and Role Provider tags.&lt;br /&gt;AND in the database cs_SiteSettings.ApplicationName.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Step 3.)Add CS stored procs to you mainsites database.&lt;/strong&gt;&lt;br /&gt;* cs_Membership_GetUsersByName&lt;br /&gt;* cs_Membership_IsUserNameTaken&lt;br /&gt;* cs_Membership_RenameUser&lt;br /&gt;* cs_Membership_ChangePasswordAnswer&lt;br /&gt;* cs_Membership_ValidatePasswordAnswer&lt;br /&gt;* cs_Profile_GetPropertiesForUsers&lt;br /&gt;* cs_Role_Get&lt;br /&gt;* cs_Roles_CreateRole&lt;br /&gt;* cs_Roles_UpdateRole&lt;br /&gt;* cs_Roles_GetRoleIdsForUsers&lt;br /&gt;* cs_Roles_Get&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Step 4.)Copy CS roles to you mainsites aspnet_Roles table.&lt;/strong&gt;&lt;br /&gt;make sure to enable identity insert&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Step 5.)Copy CS Users to you mainsites aspnet_Users table.&lt;br /&gt;&lt;/strong&gt;make sure to enable identity insert&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Step 6.)Copy CS User to Roles mapping to you mainsites aspnet_UsersInRoles table. &lt;/strong&gt;&lt;br /&gt;make sure to enable identity insert&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/742064686433692851-8402156731706751318?l=developmentorium.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://developmentorium.blogspot.com/feeds/8402156731706751318/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://developmentorium.blogspot.com/2009/02/community-server-shared-membership.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/742064686433692851/posts/default/8402156731706751318'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/742064686433692851/posts/default/8402156731706751318'/><link rel='alternate' type='text/html' href='http://developmentorium.blogspot.com/2009/02/community-server-shared-membership.html' title='Community Server shared membership'/><author><name>Paul Sohal</name><uri>http://www.blogger.com/profile/09692034307282892081</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-742064686433692851.post-1981613413313191982</id><published>2009-02-23T18:06:00.001-08:00</published><updated>2009-12-02T07:20:08.695-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Visual Studio'/><title type='text'>System.Runtime.InteropServices.COMException</title><content type='html'>I received a pop up error with the message &lt;strong&gt;System.Runtime.InteropServices.COMException. This happened when I was trying to reload a project that somehow got unloaded.&lt;br /&gt;&lt;br /&gt;Resolution:&lt;br /&gt;&lt;/strong&gt;&lt;ol&gt;&lt;li&gt;Once the solution opens, right-click on the &lt;em&gt;unavailable&lt;/em&gt; project and select &lt;em&gt;Edit project_file_name.vbproj&lt;/em&gt;. &lt;/li&gt;&lt;li&gt;Scroll to the bottom of the page, and delete the &lt;span style="font-size:85%;color:#a31515;"&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;ProjectExtensions&lt;/span&gt;&lt;/span&gt; section. &lt;/li&gt;&lt;li&gt;Save the page.&lt;/li&gt;&lt;li&gt;Right-click again on the &lt;em&gt;unavailable&lt;/em&gt; project, and select &lt;em&gt;Reload Project.&lt;/em&gt; &lt;/li&gt;&lt;li&gt;Your project should now be available and you should be able to see all your project files. &lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/742064686433692851-1981613413313191982?l=developmentorium.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://developmentorium.blogspot.com/feeds/1981613413313191982/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://developmentorium.blogspot.com/2009/02/systemruntimeinteropservicescomexceptio.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/742064686433692851/posts/default/1981613413313191982'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/742064686433692851/posts/default/1981613413313191982'/><link rel='alternate' type='text/html' href='http://developmentorium.blogspot.com/2009/02/systemruntimeinteropservicescomexceptio.html' title='System.Runtime.InteropServices.COMException'/><author><name>Paul Sohal</name><uri>http://www.blogger.com/profile/09692034307282892081</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-742064686433692851.post-1318435346083580459</id><published>2009-02-23T18:05:00.000-08:00</published><updated>2009-12-02T07:19:42.317-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Sql Server'/><title type='text'>SQL Authentication login error</title><content type='html'>I was trying to connect to Sql Server Management Studio today using SQL Server Authentication and received a Microsoft SQL Server, Error: 18452. &lt;span style="font-weight: bold; color: rgb(255, 0, 0);"&gt;"The user is not associated with a trusted SQL Server connection."&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;PROBLEM: Cannot login with any account using SQL Server Authication because the Server Authentication mode does not allow it. (We need to change it so SQL Server Authentication is allowed).&lt;br /&gt;&lt;br /&gt;SOLUTION:&lt;br /&gt;Step 1.) Log into Management Studio using Windows Authentication&lt;br /&gt;Step 2.) Right Click on the Server and select Properties&lt;br /&gt;Step 3.) Select the Security page from the left side navigation.&lt;br /&gt;Step 4.) Select SQL Server and Windows Authentication mode.&lt;br /&gt;Step 5.) Press OK&lt;br /&gt;Step 6.) Right click on the Server and select Restart&lt;br /&gt;&lt;br /&gt;You should now be able to login with the account that requires SQL Server authentication.&lt;br /&gt;&lt;br /&gt;Hope this helps.&lt;br /&gt;&lt;br /&gt;Reference:&lt;br /&gt;http://chkiran.wordpress.com/2008/06/20/sql-server-authentication-not-working/&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/742064686433692851-1318435346083580459?l=developmentorium.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://developmentorium.blogspot.com/feeds/1318435346083580459/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://developmentorium.blogspot.com/2009/02/sql-authentication-login-error.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/742064686433692851/posts/default/1318435346083580459'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/742064686433692851/posts/default/1318435346083580459'/><link rel='alternate' type='text/html' href='http://developmentorium.blogspot.com/2009/02/sql-authentication-login-error.html' title='SQL Authentication login error'/><author><name>Paul Sohal</name><uri>http://www.blogger.com/profile/09692034307282892081</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-742064686433692851.post-3289943415009019406</id><published>2009-02-23T18:03:00.000-08:00</published><updated>2009-12-02T07:19:01.724-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Sql Server'/><title type='text'>Error trying to create a Database Diagram in Sql Server 2005</title><content type='html'>Today I tried to create a Database Diagram in SQL Server 2005 and received a pop up error message:&lt;br /&gt;&lt;h2&gt;&lt;a id="viewpost_ascx_TitleUrl" title="Title of this entry." href="http://geekswithblogs.net/shahed/archive/2007/11/19/116940.aspx"&gt;Sql 2005 Database diagram support objects cannot be installed because this database does not have a valid owner&lt;/a&gt;&lt;/h2&gt;SOLUTION:&lt;br /&gt;&lt;pre id="code"&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span id="code" style=";font-family:courier;font-size:85%;"  &gt;&lt;span style="font-style: italic;"&gt;EXEC sp_dbcmptlevel 'yourDB', '90';&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;go&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;ALTER AUTHORIZATION ON DATABASE::yourDB TO "yourLogin"&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;go&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;use [yourDB]&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;go&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;EXECUTE AS USER = N'dbo' REVERT&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;go&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;Thank you Shahed for posting the solution on&lt;br /&gt;http://geekswithblogs.net/shahed/archive/2007/11/19/116940.aspx&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/742064686433692851-3289943415009019406?l=developmentorium.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://developmentorium.blogspot.com/feeds/3289943415009019406/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://developmentorium.blogspot.com/2009/02/error-trying-to-create-database-diagram.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/742064686433692851/posts/default/3289943415009019406'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/742064686433692851/posts/default/3289943415009019406'/><link rel='alternate' type='text/html' href='http://developmentorium.blogspot.com/2009/02/error-trying-to-create-database-diagram.html' title='Error trying to create a Database Diagram in Sql Server 2005'/><author><name>Paul Sohal</name><uri>http://www.blogger.com/profile/09692034307282892081</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
