I have created this blog to place some of important things on it for my personal use and also to help others. Now a days I am doing job as Software Engineer in a company. I have completed my graduation in Computer Science from University of Sindh, Jamshoro, Pakistan.
Saturday, July 26, 2008
FAILED TO LOAD CRYSTL32.OCX
This error is displayed when you have used reports in your projects and your reports are builds in Crystal Reports 8.5.
Reason:
Error is because of Crystal Report Viewer.
Solution:
Install Crystal Report 8.5 and problem solved
Wednesday, July 23, 2008
BC30560: 'CrystalReportViewer' is ambiguous in the namespace 'CrystalDecisions.Web'.
On the HTML Behind the Form there are duplicate declarations for the Prefix tag:
<%@ Register TagPrefix="cr" Namespace="CrystalDecisions.Web" Assembly="CrystalDecisions.Web, Version=10.0.3300.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" %>
My error was caused by having one for version 10.x and this one for version 9.x
I deleted the one for version 10.x and the error went away.
Monday, July 14, 2008
What is a favicon?
What is a favicon?
Notice the red “Y!” symbol that appears in the left-most area of the address bar in Internet Explorer graphic below. Look familiar? Yep, that’s Yahoo’s favicon. These favicons (favorites icons), sometimes called “bookmark icons,” appear after adding a website with a favicon to the favorites menu in Internet Explorer and certain other browsers.
Favicons also appear in the favorites menu after a page is added. Most anyone who’s roamed the Internet and bookmarked sites of interest has noticed favicons showing up in the favorites menu like this:
They also often appear in the Windows Start menu after installing a program as shown here:
Creating a favicon
A favicon should be 16 X 16 pixels with 16 colors and the file name should be favicon.ico. IconEdit32 is a good freeware program that allows you to create favicons as well as icons of other sizes and color depths. IrfanView is an excellent freeware image viewer that supports the icon (.ico) image format. You can use it to shrink one of your regular images to a 16 X 16 size, then decrease the colors to 16 and save as a “.ico” file. I like to use IrfanView to get an image down to specifications, then edit it with IconEdit32. Remember, if you don’t save it as “favicon.ico,” it won’t work. Also, don’t just shrink an image to icon size and rename it with a “.ico” file extension. That won’t work either because it’s not a real icon file.
Installing a favicon on your website
Simply upload the file, favicon.ico to the root web directory of your hosted website with your favorite FTP program, Microsoft FrontPage, Dreamweaver MX or whatever. Make sure your favicon file is named “favicon.ico.” When someone bookmarks your site with a browser that supports favicons, your favicon will appear. Alternatively, you can use this code between the <\head><\/head>(x)HTML tags:
<\head>
<\link rel="icon" href="favicon.ico" type="image/x-icon" >
<\link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
<\title>abc<\/title>
<\/head>
NOTE: PLEASE REMOVE FORWARD SLASHES (\) FROM HTML TAGS. IF YOU DON'T REMOVE THEM THE CODE WILL NOT WORK.
WISH YOU ALL THE BEST.
Monday, June 30, 2008
Purpose and Description of svchost.exe
File purpose and description:
svchost.exe is a program that would have arrived on your computer the day you purchased it. Always verify the exact disk location as shown below, since many spyware and virus writers attempt to fool you by using similiar or same names but locate the file in other folders. Svchost.exe is a program which is a critical windows program which monitors programs, manages dll's, and controls loading of system processes. You will find multiple occurances of this running. This will always be running and you cannot kill this task. This file is considered safe and is not spyware or virus related, however, make sure the file is not located at c:\svchost.exe, as many viruses and spyware programs have used this name to confuse you, and several viruses put this svchost name in your root directory which is not the proper location for this file. Also pay close attention that svchost is not spelled scvhost, as these are not the same but look so close its hard to notice! (See the details below for the actual location of this file.)
Actual file or task name:
svchost.exe
File type:
This is an executable program.
File or folder location:
This program is located in your Windows\system32 folder, as in %SystemRoot% \System32\ svchost.exe
General information:
Be aware that many tasks will be similiar names to existing tasks or processes. You can always view the running tasks on your computer by pressing ctrl-alt-del to view the windows "task manager", and then view the "processes" tab. This will show you all tasks running or currently active on your PC. Although this shows you all running tasks, it does not show dll file thats are loaded, as they get loaded as part of other processes. Many spyware writers attempt to hide their files on your computer, for example, svchost.exe may be intentionally misspelled to look like a similiar task, or spyware may be named very similiar to a Windows system task. The reason they do this is so you cannot easily recognize the name in your tasklist as I have mentioned above. Make sure always check the location of the file if you are concerned. You can always find the location of svchost.exe on your computer by using your Windows search options.
Wednesday, June 18, 2008
Excel in Seperate Windows
When I want to open up several excel files, they all go into the same application. Is there any way I can set my computer up so that when I click to open a file, it opens in its own window on the bottom bar. I want to be able to alt-tab between windows. Currently, I have to go to Window/then the file. any thoughts>?? Thanks. |
Solution:
In Excel, Tools, Options, View, Checkbox for Windows in Taskbar.
Friday, June 13, 2008
How to Change location of Item in VB.NET
You can change the location of an item (textbox, button, comboBox, etc) on the form by
using this command.
ItemName.location = new point(x,y)
Note: X => X-LOCATION (HORIZONTAL LOCATION)
Y => Y-LOCATION (VERTICAL LOCATION)
HTTP REQUEST TAG
<\httpRuntime> Element
Configures ASP.NET HTTP runtime settings. This section can be declared at the machine, site, application, and subdirectory levels.
<\configuration>
<\system.web>
<\httpRuntime>
maxRequestLength="size in kbytes"
executionTimeout="seconds"
minFreeThreads="number of threads"
minFreeLocalRequestFreeThreads="number of threads"
appRequestQueueLimit="number of requests"
versionHeader="version string"/>
Optional Attributes
| Attribute | Option | Description |
|---|---|---|
| appRequestQueueLimit | The maximum number of requests that ASP.NET will queue for the application. When there are not enough free threads to process a request, the requests are queued. Incoming requests will be rejected with a "503 - Server Too Busy" error when the queue exceeds the limit specified in this setting. | |
| executionTimeout | Indicates the maximum number of seconds that a request is allowed to execute before being automatically shut down by ASP.NET. | |
| enable |
| Specifies whether the App Domain is enabled. at the current node and at the child node level. The default value is true. |
| true | Specifies that the App Domain be enabled. | |
| false | Specifies that the App Domain be disabled. The application is not loaded in memory and any client request will cause a 404 error to be issued. | |
| idleTimeOut | Specifies the App Domain idle time before it is shut down. The default value is 20 minutes. | |
| enableKernelModeCache | Specifies whether output caching is enabled. At this time, this attribute is only relevant when IIS version 6.0 or later is installed. The output caching configuration and type of request determines whether content can be cached. In order to cache a response, the following criteria need to be met:
| |
| true | Specifies that caching be enabled. | |
| false | Specifies that caching be disabled. | |
| maxRequestLength | Indicates the maximum file upload size supported by ASP.NET. This limit can be used to prevent denial of service attacks caused by users posting large files to the server. The size specified is in kilobytes. The default is 4096 KB (4 MB). | |
| minFreeLocalRequestFreeThreads | The minimum number of free threads that ASP.NET keeps available to allow execution of new local requests. This number of threads is kept reserved for requests coming from the local host, in case some requests issue child requests to the local host during their processing. This avoids a possible deadlock with recursive reentry into the Web server. | |
| minFreeThreads | The minimum number of free threads to allow execution of new requests. ASP.NET keeps this many threads free for requests that require additional threads to complete their processing. | |
| useFullyQualifiedRedirectUrl | Indicates whether client-side redirects are fully qualified (in {HYPERLINK "http://server/path" } form, which is necessary for some mobile controls) or whether relative redirects are instead sent to the client. | |
| true | Specifies that client-side redirects need to be sent fully qualified. This is achieved by automatically converting all redirects that are not fully qualified to fully qualified form. | |
| false | Specifies that client-side redirects do not need to be automatically converted to the fully qualified form. false is the default. | |
| versionHeader | Specifies the value of a version header that ASP.NET sends with every response. This attribute is used by Microsoft Visual Studio .NET to determine which version of ASP.NET is in use. It is not necessary for production sites and can be disabled either by removing the attribute from Web.config or Machine.config, or setting the attribute to an empty string (versionHeader=""). |
Example
The following example specifies HTTP runtime parameters for an ASP.NET application.
<\configuration>
<\system.web>
<\httpRuntime maxRequestLength="4000"
useFullyQualifiedRedirectUrl="true"
executionTimeout="45"
versionHeader="1.1.4128"/>
<\/system.web>
<\/configuration>
Requirements
Contained Within: <system.web>
Web Platform: IIS 5.0, IIS 5.1, IIS 6.0
Note: Please remove "\" forward slash from the tags.
This article is copied from the following url: http://msdn.microsoft.com/en-us/library/e1f13641(VS.71).aspx
Docker Tutorial
I have listed all the necessary commands of Docker below. In case if any is missing or if any improvement required, please share in comment...
-
In my case, this error pertains to Oracle Merge query . After 30 minutes of time wastage and a lot of hunting on different forums, I come to...
-
Above problem occur when you have not added a group (of which User try to login) in your local policy login. To resolve the issue, follow t...
-
Dear Readers, I face this problem in a web application build in .aspx. It mainly occurs when you are performing some action with javascrip...