Andre Broers’ personal blog

July 17, 2008

Enable asp.net 2.0 in webservice extensions IIS6

Filed under: windows — Tags: , , — broersa @ 11:19 am

Copied from:

http://office.microsoft.com/en-us/winsharepointadmin/HA100598511033.aspx

  1. Click Start, and then click Run.
  2. In the Open box, type cmd and then click OK.
  3. Open the following directory:%drive%\WINNT\Microsoft.NET\Framework\v2.0.nnnnn

    where %drive% is the drive letter on which you installed Windows Server 2003 and nnnnn is the least significant version number of ASP.NET 2.0.

     Note   If you are running a 64-bit edition of Windows Server 2003 do not open the 64-bit directory. Windows SharePoint Services requires that IIS be run in 32-bit mode.

  4. Run the following command at the command prompt:aspnet_regiis.exe -iru -enable
  5. Close the command prompt.
  6. In Internet Information Services (IIS) Manager click Refresh from the Action menu.
  7. Verify that ASP.NET v2.0.nnnnn is listed in the Web Service Extension column and that the status is Allowed. If the status is Prohibited, you can change the status by right-clicking ASP.NET v2.0.nnnnn and then clicking Allow.
  8. After verifying that ASP.NET is allowed, the next step is to specify which virtual server or virtual servers you want to use ASP.NET 2.0. Proceed to Specifying which virtual servers use ASP.NET 2.0.

Oracle rename db_domain and GlobalName of a database

Filed under: oracle — Tags: , , — broersa @ 9:30 am

The steps I took where:

connect / as sysdba

alter database rename global_name to <sid><db_domain>;

alter system set db_domain=<db_domain> scope=spfile;

bounce the database

recreate the dbconsole repository as explained in this blogentry:

http://broersa.wordpress.com/2008/01/10/regenerate-database-console-repository/

Generate key without password for apache

Filed under: Uncategorized — Tags: , — broersa @ 7:06 am

Use the following command in openssl to get a non password protected private key:

openssl rsa -in server.key -out server.pem

I needed this for appache.

July 14, 2008

Getting the subject from a certificate in C#

Filed under: .net, windows — Tags: — broersa @ 12:58 pm

The following is a sample from MSDN:

http://msdn.microsoft.com/en-us/library/system.security.cryptography.x509certificates.x509certificate.aspx

using System;
using System.Security.Cryptography.X509Certificates;

public class X509
{

    public static void Main()
    {

        // The path to the certificate.
        string Certificate = “Certificate.cer”;

        // Load the certificate into an X509Certificate object.
        X509Certificate cert = new X509Certificate(Certificate);

        // Get the value.
        string resultsTrue = cert.ToString(true);

        // Display the value to the console.
        Console.WriteLine(resultsTrue);

        // Get the value.
        string resultsFalse = cert.ToString(false);

        // Display the value to the console.
        Console.WriteLine(resultsFalse);

    }

}

 

 

July 10, 2008

Install trusted root CA certificate in Windows Vista

Filed under: windows — Tags: , , , — broersa @ 6:53 pm

Because of the new adminstrator rights in Windows Vista installing a new Trusted Root Certificate isn’t straight forwarded.

The steps are:

Start Internet Explorer as Administrator (right click and run as administrator).

Goto Tools-Internet Options-Contents-Certificates

Goto the trusted root Certification Authorities and choose Import.

Now find your certificate and goto Place all certificates in the following store, click browse and click show physical stores. Because you started as administrator the local machine option is available under the Trusted root Certificate Authority. Select this and you are all set.

July 4, 2008

Install WCF under IIS7 in Vista

Filed under: windows — Tags: — broersa @ 12:54 pm

To create start WCf webservices in Vista under IIS7 some registration has to be done. When I publish from Vistual Studio 2008 the .svc doesn’ work. The sollution was starting “servicemodelreg -i” from

c:\Windows\Microsoft.NET\Framework\v3.0\Windows Communication Foundation

After this the .svc works.

Blog at WordPress.com.