Friday, 2 April 2010

Problem creating ER diagrams

Question: Database diagram support objects cannot be installed because this database does not have a valid owner. To continue, first use the Files page of the Database Properties dialog box or the ALTER AUTHORIZATION statement to set the database owner to a valid login, then add the database diagram support objects.

Answer:

When the database does not have a valid owner, the database dialog displays the owner as the logged in user. (This issue will be fixed in SP1.)

The "no valid owner" issue usually comes up when databases are owned by SQL-authentication logins and are upgraded, detached/attached to another server, or restored from backup to another server. The SID (a large number) doesn't match any existing login on the new server, so the owner name remains whatever it was on the old server, but it is marked invalid. Explicitly setting the owner to a valid principal on the server solves the problem.

There is also a known issue when the UI tries to install the database support objects on databases where the compatibility level is set to 80 (SQL Server 2000). The installation fails and the UI incorrectly reports that the database has no valid owner. Setting compatibility level to 90 (SQL Server 2005) before installing the diagram support objects solves this problem. (This issue will also be fixed in SP1.)

Thursday, 7 January 2010

Padding issue in firefox

Problem : There is a problem the way the div elements with padding displayed in firefox and IE.

Solution :

Mozilla supports its own variation of this declaration:

-moz-box-sizing: border-box;
-moz-box-sizing: content-box;
-moz-box-sizing: padding-box;

IE8 uses a similar variation:

-ms-box-sizing: border-box
-ms-box-sizing: content-box;

.panel {
-moz-box-sizing:border-box;
box-sizing:border-box;
width:153px !important; /*moz width*/
width:151px; /*IE width*/
}

Monday, 30 November 2009

This collection already contains an address with scheme http. There can be at most one address per scheme in this collection. Parameter name: item

Problem : This is the problem occures when the bindings are many for your application and the web.config was unable to find the exact binding.

Solution: Here is the Web Config Lines without the escape sequences.







replace http://www.MyDomainName.com with your website name...if it is localhost give the exact binding.

It will work definately.

Sunday, 22 November 2009

Compiler Error Message: CS0016: Could not write to output file 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\xxxxxx\xxxx

Description:

This is the error related to folder permissions issue.

Solution :

Go to C:\Windows

check weather Temp folder exists or not. If there add user Nerwork Services to the users group and give full permissions. This will solves the problem.