Archive for category ASP.NET

How to deploy .NET applications that use modules/libraries with different version than the development ones

Because with new versions of connectors or another external libraries there may be some compatibility issues, developers of .NET applications may find themselves in the next situation Read the rest of this entry »

,

2 Comments

How to connect to MySQL database from Visual Studio VS2010 – problems with NET connectors

I have developed a Windows Application in Visual Studio 2008 some years ago and now it has been updated in Visual Studio 2010.

The application connects to a MySQL database and after porting it to VS2010, the IDE does not show the connection to the MySQL in Server Explorer. Also when trying to add the data connection, in the Choose Data Source window it does not show the MySQL Database. Read the rest of this entry »

, ,

29 Comments

Solution for HTTP Error 500.21 – Internal Server Error – Bad module “ManagedPipelineHandler” on IIS 7.5

This problem has been encountered after the production server has been upgraded to Windows Sever 2008 R2 and the ASP.NET solution has been moved on the .NET 4.0 platform.

The ASP.NET application was put to run in a ASP.NET v4.0 with Integrated Managed Pipeline application pool. The application was updated using Visual Studio 2010. Read the rest of this entry »

, ,

13 Comments

How to read application settings from the Web.config file of an ASP.NET Website

There are many situations, in the development of an ASP.NET application, when particular values must be made visible from different Web Forms or code routines. These values can represent:

-    global values or keys associated with an application setting;
-    connections strings for databases
-    passwords and hash values
-    URLs for Web Services

The web.config file is an XML file that holds configuration information for the ASP.NET application. This file can be placed in the root directory of the ASP.NET site or in any other application subfolder. Among the configuration sections of the file, the application settings can be stored in the <appSettings> section using <add key=“” value=“”/> elements.
Read the rest of this entry »

No Comments

Solution for localhost problem in Firefox

If you develop Web sites on your local machine and not on a remote server then you want to test them. For that, it is used the URL of your local Web server (IIS, Apache, Tomcat) which is http://localhost.
When using Microsoft IE there is no problem but for Firefox, because some security issues, the browser requires authentication and asks for an user name and password when trying to open Web pages from localhost. Read the rest of this entry »

, ,

1 Comment

How to install IIS on Windows 7 and Vista

This solution describes installation of IIS 7 (Internet Information Services) on Windows 7 Ultimate, Vista using the Windows Features Wizard. Read the rest of this entry »

, , , ,

No Comments

How to determine the IIS version

This solution is for Windows 2K, Windows XP and Windows 2003 Server. IIS is the web server developed by Microsoft for all their OS platforms, both desktop and server. In order to determine the IIS (Internet Information Services) you must open the MMC (Microsoft Management Console) for IIS. Read the rest of this entry »

,

No Comments

Solution for “A potentially dangerous Request.Form value was detected from the client…”

This error is encountered in the case of Web applications which are developed with ASP.NET technology. When the page returns to the server to be processed it is generated an exception like this one Read the rest of this entry »

,

No Comments