IIS
This error ("Failed to access IIS metabase") can occur when you try to access your WCF when you have added for hosting within IIS. To solve this problem do this: Reregister ASP.NET for IIS: Open an Visual Studio Command Prompt (or a regular command prompt and cd into the .Net dir - usually: C:\WINNT\Microsoft.NET\Fram... then type: aspnet_regiis -i When complete, from the same command prompt run: iisreset Verify your IIS virtual/app dir is setup correctly (uses .Net 2). If you don't...
On a fresh php installation (on WinXP using IIS 5) the mysql extension did not load. This turned out to be because php could not find the libmysql.dll library - to resolve just put the php dir (eg "c:\xampp\php) and the ext dir (c:\xampp\php\ext) into the PATH environment variable (and restart iis). To verify your php configuration, create a php file with the following content: <?php phpinfo(); ?> Save this as something like info.php into your web root dir and navigate to it with a browser...
The following error occured because a web.config file existed, in a directory beneath my main app root dir, should not have been there: It is an error to use a section registered as allowDefinition='MachineToA... beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS. C:\Dev\SVN\authenticationse... It is actually valid to have a web.config in a dir beneath your app...
To start remote debugging an ASP.NET 2.0 app (assuming the app is up and running on the remote server): On the remote server start the Visual Studio 2005 Remote Debugger. For this you need to have the VS2005 Tools installed (not necessarily the full VS2005). On your local machine, within VS2005 select Debug - Attach to Process... In the Qualifier field (in the Attach to Process screen) enter the name of the remote server and press ENTER. Select the IIS worker process (w3wp.exe) that is running your...
In some cases you may want or need to change the version of .NET that a particular web application directory uses. Normally this is done via the ASP.NET tab on the IIS properties page for the web app, however it can also be done manually at the command line... CD into the dir containing the version of .NET that you require eg: C:\WINDOWS\Microsoft.NET\Fr... Run aspnet_regiis.exe specifying the name of the dir you want this set against. eg aspnet_regiis.exe -s W3SVC/nnn/ROOT/xxx (where...
The following error may occur when trying to use a client cert for the first time (this error is from IIS 5): The page requires a valid client certificate The page you are trying to view requires the use of a valid client certificate. Your client certificate was revoked, or the revocation status could not be determined. The certificate is used for authenticating you as a valid user of the resource. HTTP 403.13 - Forbidden: Client certificate revoked The cause of this is usually "the revocation status...
This error (m_safeCertContext is an invalid handle.) occurs when you try to access a client cert (or a member of the cert) from a ASP.NET 2.0 application developed using VS2005 eg: X509Certificate cert = new X509Certificate(Request.Cli... certSerial = cert.GetSerialNumberString(); The error is thrown because no valid certificate is found. This can be caused by either: A problem with the cert. A common reason for this in a development environment is one of the cert properties...
The following error occured when trying to open a web page (ASP.NET) that was doing an HttpRequest. "The underlying connection was closed: The remote name could not be resolved." This is usually caused because the ASP.NET app is on a network that is using a proxy server - and as ASP.NET does not run as a user account, it does not have access to the proxy settings in the registry. To resolve add the following section to your web.config file. <defaultProxy> <proxy usesystemdefault = "false"...
This little gem comes to us courtesy of MS's IE, whereby it resets the connection and sets content-length to 0 (zero), even though there is data in the post request, when the keep-alive timeout expires. Fortunately this only occurs when using HTTPS, and apparently it's limited to a particular version of IE (although I'm not 100% convinced about this). This bug is documented very well here and by ibm here, and an typically difficult to understand MS solution here. Another solution I think may work...
This error occurs within IIS 6 when you try to start your web site and it has not been assigned to a valid application pool. This usually happens when the default app pool has been deleted. HTH Tim
Those of you wanting to know how to remove this annoying version on IE - click here. However, if you are as unfortunate as myself, and have had another user has install it (IE 7 beta) on your PC, then you will get this error: "Internet Explorer 7 Beta 1 cannot be uninstalled from this user account. Please log on to the same user account from which it was installed and try again." Even if you belong to the local administrators group. Brilliant! *** Update: For those of you wanting a far superior browser...