How to install the ImageCutout web application in the laptop.

Starting with ImgCutoutFiles.zip

1 - Unzip the file and extract all files to ImgCutoutFiles.

2 - From Visual Studio, create the project ImgCutout 
(be sure your World Wide Web Publishing Service is started)
	
	2.1 File -> New Project

	2.2 Select ASP.NET Web Application 
	
		location://localhost/ImgCutout

	by default it will locate the project in  c:\inetpub\wwwroot\ImgCutout

	2.3 Select and delete WebForm1.aspx (you don't need it)

3 - Create the ImgCutout WebService

	3.1 Right button selection on top of project name.
	3.2 Select Add Web Service.
	3.3 Call the service ImgCutout.asmx
	3.4 Close the window  ImgCutout.asmx.cs [Design]

4 - Go to the directory ImgCutoutFiles, Select all the files, copy and paste 
them into the project solution explorer area. It works great!

	4.1 It will tell you that ImgCutout.asmx.cs already exists. 

	 - Click YES. Replace it.

	4.2 It will tell you that GetJpeg.aspx doesn't have a class file associated.

	 - Click NO. You don't need to create one.

	4.3 If you didn't close the design view of ImgCutout, then you probably will 
	    have another message with something about some file has been loaded outside 
	    the editor.

	 - Click YES.

5 - Select the file default.asp, click the right button and select "Set as start Page".

6 - Build your application. (Build in top menu) 
	When building it will say the code is unsafe when building the first time.

To change this:

	6.1 Right button on top of project name.
	6.2 Select Properties.
	6.3 Select Configuration Properties.
	6.4 Set up "Allow Unsafe Code Blocks" to TRUE.

7 - Open the Web.config file and add below </system.web>:

<appSettings>
	<add key="SkyServer" value="Initial Catalog=PersonalSkyServerV4;Data Source=(local);User ID=test;Password=ruizg54; Connect Timeout=180"/>	
</appSettings>

The usual password for the test user is ruizg54. You will need to write here your own test 
user's password if it is different

8 - The application should be ready to run. Be sure your SQLSERVERAGENT service is started.


