Certain ASP.NET controls such as the label can be assigned to it colors (background colors, foreground colors, etc.) at runtime from the code-behind files. Even though the label renders into an HTML entity, you cannot directly assign a color that is in the Hex format (such as #FF00EE); if you try you will receive the […]
Error while trying to run project: Unable to start debugging on the web server
If while trying to debug your ASP.NET web application you receive the following error: Error while trying to run project: Unable to start debugging on the web server. Catastrophic failure.Would you like to disable future attempts to debug ASP.NET pages for this project? You most probably don’t have ASP.NET registered correctly on the system in […]
Open a web page in the default browser
Opening an URL in the default browser using VB.NET could not be any simpler. All you need to do is to invoke the Process.Start() method and pass the URL of the page that you wish to open:
How do I protect my source code from reverse engineering?
You can’t fully protect your code from reverse engineering, especially .NET (managed) code. However, you can make it harder to understand by using an obfuscator. An obfuscator replaces certain parts of your code (such as string literals) with an encrypted version so they don’t make sense to the person that tries to reverse engineer your […]
What is the .NET Framework composed of?
When you install the .NET Framework (be it version 1.0, 1.1 or 2.0) on a computer, you are installing a Common Language Runtime (CLR), a set of DLLs and the ASP.NET integration with IIS if your operating system has Internet Information Services installed. These are the most important three components of the .NET Framework redistributable.The […]
The operation could not be completed. Not enough storage is available to complete this operation.
When you try to execute a query on a SQL Server database, such as creating a stored procedure, a table or adding data to one, and you are receiving the error The operation could not be completed. Not enough storage is available to complete this operation. the cause may be one of the following: – The “Enable […]
The file web.sitemap required by XmlSiteMapProvider does not exist.
The most common case when the “The file web.sitemap required by XmlSiteMapProvider does not exist” error is received is when a SiteMap control was added to a WebForm, however you don’t have a mandatory Web.sitemap file in the root of your web application.To fix this error, make sure you have this file in the root directory, and that it is a […]
At compile I get error error CS0131: The left-hand side of an assignment must be a variable, property or indexer
You are trying to change the value of a constant or of a read-only property.
How to dump a MySQL database to another server in Unix
The following line will allow you to dump a MySQL database from the current machine to another machine, for as long as you have access to the dd command on the remote machine: mysqldump -u USERNAME-HERE -p’PASSWORD-HERE’ DB-NAME-HERE | ssh [email protected] “dd of=/mysql/$(date +’%d-%m-%y’)”
How do I prevent a console application from closing immediately?
You have two options.You run the application without debugging (instead of F5 pressCTRL+F5). Or, if you don’t want to run the application without the debugger, at the end of the application code add: Console.ReadLine() Then you end the program by pressing Enter.