Sunday, July 17, 2011

Enable .exe for IIS 6.0

There is a setting in IIS that prevents .exe files from being downloaded in browser.

To enable the download of .exe files in IIS 6.0 follow the below steps

1.Navigate to the Website in IIS
2.Right Click and Select Properties
3.Select the Home Directory
4.Look out for Execute Permissions drop down
5.Change it from "Scripts and Executables" to "Scripts Only"

Saturday, July 9, 2011

This is the Basic Concept behind the project.

The remaining Modules are 2)Antivirus 3) online storage.

There are a separate Database MqSql which will be installed into separate machine, Scan Manager , Antivirus manager and Cloud Manager can access that Database only. The Level-2 machines can not access database.

activating The IIS



The first thing to do is to add the relevant mapping of your application. To do this, one must go to Start-> Control Panel-> Administrative Tools-> Internet Information Services. Then, one should click on the Internet Information Services icon, right-click on the MVC application, and select Properties. On the Virtual Directory Tab, choose Configuration, as shown below:

After clicking on the Configuration panel, choose the Executable to be the aspnet_isapi.ll, and the extension to be ".*", make sure that the "check that file exists" is unchecked. If the OK button is disabled, you must click on the textbox for the Executable, and only then the OK button is enabled.

If You are getting "Failed to access IIS metabase" error while browsing asp.net site or aspx page in IIS server then you may have installed IIS Server after installing the .NET framework.

If that's the case, try running to repair your ASP.NET installation and set up all of the appropriate ISAPI extension mappings.


Open visual studio command prompt and type this command

aspnet_regiis -ga

if this doesn'twork than use this command

aspnet_regiis -i

alternatively you can copy and paste this command into windows command prompt

%windir%\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe -i

this will fix your problem


installation of IIS in WinXp service pack-3


Start->Control Panel->add remove program->


select -> Add/Remove windows Com

ponents













































Finish

How to Get the Ip Address of Client Ip in a WebPage

This is a Simple program in Asp.net Program to show the Detail of a Client visiting a particular site.

Response.Write("Your IP address is: " + Request.ServerVariables["REMOTE_ADDR"].ToString() + "
");
Response.Write("You are browsing this site with: " + Request.ServerVariables["http_user_agent"].ToString() + "
");
Response.Write("The method used to call the page: " + Request.ServerVariables["request_method"].ToString() + "
");
Response.Write("The server's domain name: " + Request.ServerVariables["server_name"].ToString() + "
");
Response.Write("The server's port: " + Request.ServerVariables["server_port"].ToString() + "
");
Response.Write("The server's software: " + Request.ServerVariables["server_software"].ToString() + "
");
Response.Write("The DNS lookup of the IP address is: " + Request.ServerVariables["REMOTE_HOST"].ToString());