Source codeUsage and deployment methods:
Promotion description for photoblog
Prerequisites:
You have installed the software on your computer, which should be guaranteed.
1 vs2008 SP1
2 SQL Server 2005 Express
3 Silverlight 2 SDK
4 sqlserver Express (you can download it from the URL:
Http://www.microsoft.com/downloads/details.aspx? Familyid = C243A5AE-4BD1-4E3D-94B8-5A0F62BF7796)
Install vs2008:
1. Create a database example.
Step 1: Start sqlserver management studio or sqlcmd.exe
Step 2: run the database script to generate a photoblog database.
2. Set your SQL Server 2005:
Step 1: Set the database to allow "in-service and connection"ProgramUse the"
Local and distant connections configured in the surface area ".
Step 2: Enable the Named Pipes protocol for this server instance and pipe name shoshould be \. \ PIPE \ MSSQL $ sqlexpress \ SQL \ QUERY
3. decompress the file solution to your disk, which contains photoblog. sln. Double-click chart
Open solution in Visual Studio 2008
4. The program serves as the default link to the local database. If you want to link
Database. Change the connection string in the "Web. config" file.
5. Use the network project as the default port number to enable the "30303" ASP. NET development server
. If you want to use another port number, go to the "nature" window and the Web Server
Change it.
6. Create and run the application.
The Applications created in the two modes of "yes" must be configured in the 'solution configuration' respectively'
Debug 'and 'debug-ZH-cn '.
Install IIS:
1. install it on the 'with vs2008' at work
2. Publish a network site, create a virtual directory in IIS and copy files to the virtual directory
Folder of the directory to be uploaded
3. In the 'photoblog Project', set the network service reference in the IIS installed in step 2.
Refer to the network service.
4. debug 'debug-ZH-CN separately in the two mode reconstruction solutions of yes'
'.
5. Repeat the network site and copy and publish files to a folder in the virtual directory.
6. When published on Microsoft IIS, the configuration is sent to the. xap extension to add the MIME type to the application/X-Silverlight-app
SourceCodeDownload: