Wednesday, November 19, 2008

Open New Landscape Crystal Report

If you cant open Crystal Report in Landscape size, It means the width of Page is High Height is less then follow the below steps

1. Open the Report and Go to the Page Setup there you can see the Orientation as Portrait and Landscape radio buttons. There you can select Landscape.

2. Some time you cant select Landscape because it will be Disable. The reason is Printer Setup. Now click Printer button, It will open Page Setup Dialog. There click properties Button Select the Orientation as Landscape and Finish it all.

Tuesday, November 18, 2008

Failed to retrieve data from the database

Error : login failed once we click OK then it's shows another one

"Failed to retrieve data from the database
Details:42502:[Microsoft][OLDB SQL Server Driver][SQL Server]Invalid object name'TableName'.[Database Vendor Code:208]"

Under Database Menu select Database Set Location.
It will open Database Set Location Property Window.

At the top you can see Current Data Source and bottom Replace with.

If you expand the table in Current Data Source you can see Properties. It shows Previous database. Select the table and replace the table by selection same table in Replace With section. Click Update button.

I hope this will help you more...

For more details Refer here

Monday, November 3, 2008

The server block is not well formed

In Dot net If you receive "The server block is not well formed" then it is meaning that your closed tag is not correct.

Eg: <%@ Register Src="WebUserControl1.ascx" TagPrefix="firstuser" TagName="mess" >
It should be <%@ Register Src="WebUserControl1.ascx" TagPrefix="firstuser" TagName="mess" %>

Wednesday, September 24, 2008

A project with an Output Type of Class Library cannot be started directly

Hi,

If you Download Paypal Sample code and try to Run it in Visual Studio 2003, You will get "A project with an Output Type of Class Library cannot be started directly" alert.

Because Your project type which created as Class Library. You can identify this by Project Icon in the Solution Explorer. Even if you want to check Right click in the "AspNetSamples_Nvp" Project go to the Properties.

In the Common Properties Tab there is Out type. There you need to Set the Startup Object. But you cant set. It is disabled.

What you need to do is Just create New Website/Project with Asp.net Web Application and add all files to your new project from paypal Downloaded folder.

Now if you run the application, It will run perfectly.Any Help contact me with comments.