Hyappframe (WinForm framework Source) Installation Deployment Guide

Source: Internet
Author: User

Hyappframe is a win form-based application framework that includes server Web Service, main program framework, organizational structure, rights control, menu navigation, basic data, system parameters, log management, scheduled tasks, and more.

Project Address: http://sourceforge.net/u/chinahysoft/profile/


0 getting the installation package

The contents of the compressed package are shown in 1-1. Unzip the Hyappframe.zip, for example, to C:\HYAppFrame.


Figure 1-1

1 Installing Database Scripts 1.1 creating a new database

Open SQL Server Managementstudio, as shown in new database 1-2.


Figure 1-2

Name the database "Hyappframe", which you can name, as shown in 1-3.


Figure 1-3

1.2 Installing SQL Scripts

As shown in 1-4, open hyappframe.sql, select Target database as "Hyappframe" and execute.


Figure 1-4

1.3 Verifying that the database script installation is successful

As shown in 1-5, execute a SQL in the query form, "SELECT * from Core_user" If there is a return value indicating that the database installation was successful.


Figure 1-5

2 Configuring IIS

Please install IIS from the Add Remove Windows feature.

2.1 Installing ASP.

Run the naming prompt as an administrator, and enter the following command to register the installation of ASP:

C:\Windows\Microsoft.NET\Framework\v4.0.30319\ Aspnet_regiis.exe–i

Note: The path of the aspnet_regiis.exe is dependent on the installation environment.

2.2 Creating a Asp.netweb service website

As shown in 1-6, open the Internat Information Services (IIS) Manager.


Figure 1-6

1-7, add a Web site named "Hyws", and the physical path points to the directory where "Hyappframews" is located, with the port set to 1818. Note: In the WindowsServer server, make sure that port 1818 is joined to the firewall trusted port.


Figure 1-7

2.3 Editing an application pool

Modify the. NETFramework version number of the HYWS application pool as shown in 4.0, 1-8.


Figure 1-8

2.4 Configuring the Web. config

Set the database connection string and the configuration parameter AppPath as the Web service absolute path address, as shown in code snippet 1-1.

Code Snippet 1-1

<configuration>  <connectionStrings>    <add name= "dbName"      connectionstring= "Data source= Dai-pc\sqlexpress;initial catalog=hyappframe;integrated Security=false; User Id=sa; Password=yourpassword; " />  </connectionStrings>  <appSettings>    <add key= "AppName" value= "Mycrm"/>    <add key= "AppPath" value= "C:\HYAppFrame\HYAppFrameWS\"/>    <add key= "Passwordkey" value= "axs1|-_x"/>    <add key= "sn" value= "gryy0osm3hkkrgnqtb68pdldtkjeeyvm+c58gcesi4ne33sk7nqn1uszimqnqkdjkjnseh8wkhi="/>  </appSettings>  <system.web>    <compilation debug= "true" targetframework= "4.0"/>  </system.web></configuration>


Restart the site Hyws

2.5 Testing whether the WebService is available

Enter the URL in the browser address bar Http://localhost:1818/master.asmx

, if the following Web page appears, 1-9 shows that the Asp.netweb service is installed correctly.

Figure 1-9

3 Client Development 3.1 update WebService reference URLs

Open Solution hyappframe.sln,1-10, locate WebService in the solution, right-select Properties

Figure 1-10

Modify the Web reference URL to "Http://localhost:1818/master.asmx?WSDL", and note the suffix must be added "? WSDL, and then right-select Update Web Reference, as shown in 1-11.

Figure 1-11

3.2 Modifying Client configuration files

Modify the client configuration file Hyappframe\bin\debug\profile.xml, as shown in code snippet 1-2.

Code Snippet 1-2

<param name= "Ws.url" >    <value> http://localhost:1818/master.asmx? Wsdl</value></param><param name= "ws.url.external" >    <value> http://localhost:1818/ Master.asmx? Wsdl</value></param>
3.3 Account Password

Run the client program Hyappframe\bin\debug\hyappframe.exe, the login screen appears, the default account admin, password 123456.

3.4 Modifying global parameters

After logging into the system to open the system management à parameter definition, modify the following parameters, 1-12, the modified file upload download can be used.

Figure 1-12

Finish

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

Hyappframe (WinForm framework Source) Installation Deployment Guide

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.