Wednesday, March 13, 2013

How to host asp.net web application over iis server with mmc error, asp.ner registering handling

Error Handling: [1] if you are not able to see ASP.NET under IIS web extensions list then:
you have to register ASP.NET using:
 IIS Registration Tools that ship with the .NET Framework under C:\WINDOWS\Microsoft.NET\Framework64\v2.0.50727 would contain the IIS Registration Tool.
Just go to under this directory using command prompt and enter command:
aspnet_regiis -i
you may put this command under visual studio tool-> command prompt


this command Installs the version of ASP.NET that is associated with Aspnet_regiis.exe and updates the script maps at the IIS metabase root and below.Only the script maps for applications that use an earlier version of ASP.NET are updated. Applications that use a later version are not affected.

[2] If you are getting Error: MMC can not create snap shot in IIS or SQL Server 2005 or any then it is error on registering two DLLs. So, either you shoukd re-install software  or use following command:
Under system32> regsvr32 mmcndmgr.dll
           system32> regsvr32 inetmgr.dll
in details:

MMC could not create the Snap-In

Then execute the steps given below to fix this issue.
1. Register the .dll files “mmcndmgr.dll” and “inetmgr.dll”
a) Start | Run | cd %SystemRoot%\system32Here, ‘SystemRoot’ refers ‘C:\Windows’.
b) regsvr32 mmcndmgr.dll
c) regsvr32 inetmgr.dll
(regsrv32′ is a command line tool to register the .dll in the registry.)

2. Uninstall and Re-install IIS

To uninstall, Start | Control Panel | Add/Remove Windows Components | Check ‘Application Server’, click ‘Details’ | Uncheck ‘Internet Information Services’ | Click ‘OK’

To install, Start | Control Panel | Add/Remove Windows Components | Check ‘Application Server’, click ‘Details’ | check ‘Internet Information Services’ | Click ‘OK’

[3] if you are not getting FTP site then :
      just check ftp box while adding/installing Application server->details->Internet information services->Details-> FTP









Hosting Steps for ASP.Net web application over IIS server, Win Server 2003 32 bit, Sql server 2005

[A] Database attachment in SQL Server 2005 :




[B] Open Web solution from visual studio 2005 as open-> Project-> select   .sln    file from solution location and click login.aspx page from solution explorer window at right side according to screen as below:

[C] Create user login according to your application user need level wise as below :



 [D] while running you might get one error that : unable to bind, binding handlor is invalid then just
       go to administrative tool from control panel-> services-> enable and start two terminal services and also do in visual studio project start page mentioning like:


also do some released configuration like:

 
[E] now run/debug/build web application using green play/run button on window after successfully viewing the contents just publish same after building new folder under c:/inetpub/wwwroot folder by your desire application name like:

[ F] if you are getting virtual directory error while accessing your web application over intranet then do:
 



 

[G] if you are not able to enter any data then it mean you did not assign login permission for database user, just do this like:





now all over bye.