• Uncategorized

    ASP.NET Membership Provider with custom schema

    PROBLEM DESCRIPTION===================Asp.net Membership control issue: when I create users and roles by wizard the default database is sql server express and the file is aspnet.mdf, but in my case I have my own database which store the users detail. I want to use the membership control functionality but don’t want to deal with 2 databases; also, I want to add my table to the default database thus changing the schema.I expect the Asp.net Membership provider to support that change and want to know what should I change in the application code SUMMARY of TROUBLESHOOTING==========================“How to: Use membership in ASP.NET 2.0” at http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnpag2/html/paght000022.asp, in particular the section “Using the SQLMemberShipProvider”; basically you need to configure Forms authentication, install the membership database and configure the SqlMembershipProvider. Step 2. Install the Membership DatabaseBefore you can use the SqlMembershipProvider, you must install the SQL Server membership database.To install the membership database, log on to your server with an account that has authority to administrate SQL Server (such as the Administrator account). Open the Visual Studio 2005 command prompt, and run the following command: aspnet_regsql.exe -E -S localhost -A m Where: -E indicates authenticate using the Windows credentials of the currently logged on user-S (server) indicates…

  • Uncategorized

    Missing ASP.NET Tab in IIS Management Console

    PROBLEM DESCRIPTION =================== On a Windows 2003 64bit machine with both .NET Framework 1.1 and 2.0 installed, you are tying to configure a website on IIS, but you are unable to find the tab to specify ASP.NET settings. SUMMARY of TROUBLESHOOTING ========================== Researched turned out this being a bug that is closed as "won’t fix". If you are gong to run IIS 32-bits on WOW64, MMC Support for ASP.Net snap-in is currently not allowed. We are in the process of writing a KB article to document this. In general the ASP.net tab is giving you the UI to configure the application to run different versions. You could use the specific version of aspnet_regiis.exe utility to configure this. The utility is aspnet_regiis -i under C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727, if you want your application to run under 2.0. There are several command switches to configure specific sites or directory only. If you see these problems on 32-bit OS there’s a known workaround: Manually run the install for ASP.NET: ASPNET_regiis -i Register the dll for the MMC: regsvr32.exe "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\mmcaspext.dll" "rundll32.exe" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\webengine.dll",RegisterAspNetMMC From a command prompt run: C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\regasm.exe C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\AspNetMmcExt.dll /tlb:AspNetMMCExt.tlb Change the About value in "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MMC\SnapIns\{fedb2179-2335-48f1-aa28-5cda35a2 b36d}" from {7D23CCC6-A390-406F-AB67-2F8B7558F6F7} to {7D23CCC6-A390-406F-AB67-2F8B7558F6F6}   UPDATE (5th November, 2006) Just…

  • Uncategorized

    Http compression and WinForm controls as legacy ActiveX

    The following is the summary of a couple of cases I worked on a while ago, there are some details which I’ll need to investigate thoroughly… anyway those are the facts so far. PROBLEM DESCRIPTION===================I have a rich WinForms UserControl which is embedded into a web page. Since installing .NET 2.0 on the clients, the control stopped loading completely. – I disabled security completely using caspol -s off => no effect – I enabled fusion logging => no single entry generated – I enabled the IEHost log => nothing created – Changed to another client machine => same issues, same results – I started writing a new UserControl from scratch and deployed it to the same server. The control could also not be loaded. I deployed the same test project to another 2003 server in the same domain, with equal patch levels (SP1 and latest patches installed) and it worked. Perhaps a naming issue? – I tried to change the names => no result – I compared the HTTP requests to the different server => nothing special – The issues stated above are reproducible from any client, such it should be a server or framework issue. – I even have…