Documents Product Categories ASP.NET infrastructure on Windows powered by Websoft9

ASP.NET infrastructure on Windows powered by Websoft9

Jun 28, 2024
 ASP.NET Image Guide Version NET4.6.1 Websoft9 ASP.NET Stack is a pre-configured, ready to run image for running SQLServer Express on Alibaba Cloud. ASP.NET is an open source web framework for building modern web apps and services with .NET. ASP.NET creates websites based on HTML5, CSS, and JavaScript that are simple, fast, and can scale to millions of users. .NET Stack Components These components are included in .NET Stack of Image: Site Directory Defaut root directory: C:\inetpub\wwwroot Note:this directory can be changed from IIS by yourself Infrastructure(.NET4.6.1,IIS7.0) .NET directory: C:\Windows\Microsoft.NET Database(SQLServer Express) Componets: SQL Server Express Edition,SQL Server Management Studio Installation directory: C:\Program Files\Microsoft SQL Server Database Engine: C:\Program Files (x86)\Microsoft SQL Server\MSSQL12.MSSQLSERVER\MSSQL\DATA   Verify the Image After the installation of Image,please verify it Login on Alibaba Cloud console,get you Internet IP Address Use the Remote Desktop Connection on your local PC to connect the Server,if there no response from browser,please check the Security Group settings (https://www.alibabacloud.com/help/doc-detail/25471.htm) to ensure that port RDP:3398 is been allowed Will be used Usernames and Passwords Two usernames and passwords are required for application installation, application using, and application maintenance: 1、SQLServer Express:Default username and password is sa/websoft9! Using the Microsoft Terminal Services Client (MSTSC)  on you local PC 2、Windows Server:Username is administrator,Password is set by youself when buying. Please Using the Microsoft Terminal Services Client (MSTSC)  on you local PC Note:You can reset the password of OS through Cloud Console if you have forgotten itHow to connect Server?  You should known that for Windows OS, use Management Terminal or Microsoft Terminal Services Client (MSTSC). Connect to a Windows instance using Windows OS Using a local Windows OS, connect to a Windows instance using one of the following: Microsoft Terminal Services Client (MSTSC) This method is available only if you purchased bandwidth when creating your instance. Prior to using this method, ensure the instance can be accessed through the Internet. Management Terminal (VNC) Connection through the Management Terminal can be completed disregarding whether bandwidth has been purchased. Use MSTSC 1. Perform one of the following to start Remote Desktop Connection: Click Start > Remote Desktop Connection. Click the Start icon and enter mstsc in the search box. Press the shortcut key Windows Logo + R to open the Run window, enter mstsc, and then press the Enter key. 2. In the Remote Desktop Connection dialog box, enter the public IP address of the instance. Click Show Options. 3. Enter the user name. The default value is Administrator. Check Allow me to save credentials. In this way, you do not need to manually enter the password again when you log on later. 4. (Optional) If you want to copy text or files from your computer to the instance, click the Local Resources tab to see options for sharing local computer resources. If you need to copy text only, check Clipboard. If you need to copy files from your computer as well, click More > Drives, and select drives where you want to copy files to your instance. 5. (Optional) Open the Display tab to resize the remote desktop window. Full Screen is recommended. 6. Click the Connect button to complete connection to the instance. When you connect your computer to the Windows instance successfully, you can operate the instance from your computer. Use Management Terminal to connect to an ECS instance Refer to Use Management Terminal (VNC) to connect to an ECS instance (https://www.alibabacloud.com/help/doc-detail/25433.htm). How to connect the SQLServer? Using the Remote Desktop Connection of your local PC to connect the Server,you can see the desktop of Server below:1. Open “SQL Server Management Studio Express” on the desktop  2. Please input the login information,then click the “Connect” button Server name: (local) Authentication: SQL Server Authentication login/password: sa/websoft9! 3. If you login successful,you can see the interface below How to connect SQLServer on your PC?SQLServer Express support the third database tools,below is the example  for using Navicat: 1. Download (http://www.navicat.com.cn/download) and intall the Navicat 2. Open the Windows Firewalls setting:Control panel->System and safe- >Windows Firewall 3. Then open the Navicat and add new SQLServer connection,input the parameter of connection(usename:sa,password:websoft9!,port:1433,please make sure the TCP:1433 is allowed on your  Security Group settings (https://www.alibabacloud.com/help/doc-detail/25471.htm) ).Click the“Connection test”.  4. Click Sure to enter the management interface of database. How to start or stop the Services? SQLServer Services Use the CMD,input the services.msc,you can enter the interface of system services.Then you can set the startup type for SQLServerYou can use the command always:  start database:net start mssqlserver stop database:net stop mssqlserver Open the SQLServer Studio:ssms IIS Services IIS->sites->Default Web Site,you can see Restart/start/stop opration links on the right of IIS panel How to change the root directory? If you want to use D: disk or other directory to instead the default root directory,then you should change it according the following steps:IIS->Default Web Site(right click)->Manage Web Site->Advanced Settings  Modify a new the Physical path Restart the IIS,then it’s OK Deploy application on IIS There five steps for deploy application on IIS: ① upload site source code->② Cofigue Domain Name(not nessesary)- >③ add database for application(not nessesary)->⑤ start the installation of your application Note:one application or multiple applications on IIS?use domain or not use domain?Please select the corresponding deployment solution below Solution1: only one application deployment If you just want to only one application deployment on Server,following are the steps: 1. User Desktop Remote tools to connect to Windows Server,copy the source code to Root directory 2. If you dont’s have domain for this application,please use browser to visit: http://Internet IP to start the installation 3. If you have domain,please complete the domain setting first  (refer to How to set Domain Name?),then use browser tovisit: http://domain to start the installation  4. Some time you application need to create database and account setting before installation,you should log in to SQLServer to do that(refer to How to connect SQLServer?) The default Root directory is: C:\inetpub\wwwroot Solution2: multiple applications deployment(no domain) No domain and need install more than one application,following are the steps: 1. User Desktop Remote tools to connect to Windows Server,copy the source code to Root directory and create a new directory on Root directory for this application,e.g “mysite1” 2. Add application or Add Virtual Directory for this application 3. please use browser to visit: http://Internet IP/mysite1 to start the installation 4. Some time you application need to create database and account setting before installation,you should log in to SQLServer to do that(refer to How to connect SQLServer?) Deploy the second application mysite2,then same steps The default Root directory is: C:\inetpub\wwwroot Solution3: multiple applications deployment(one domain) No domain and need install more than one application,following are the steps: 1. User Desktop Remote tools to connect to Windows Server,copy the source code to Root directory and create a new directory on Root directory for this application,e.g “mysite1” 2. Complete the domain setting first  (refer to How to set Domain Name?) 3. Add application or Add Virtual Directory for this application 4. please use browser to visit: http://domain/mysite1 to start the installation 5. Some time you application need to create database and account setting before installation,you should log in to SQLServer to do that(refer to How to connect SQLServer?) Deploy the second application mysite2,then same steps The default Root directory is: C:\inetpub\wwwroot Solution4: multiple applications deployment(multiple domain) Muliple domain it mean each one application need one domain.e.g your domain is www.websoft9.com,following are the steps: 1. User Desktop Remote tools to connect to Windows Server,copy the source code to Root directory and create a new directory on Root directory for this application,e.g “mysite1”2. Add new website  3. Complete the domain setting first  (refer to How to set Domain Name?) 4. please use browser to visit: http://www.websoft9.com/ to start the installation 5. Some time you application need to create database and account setting before installation,you should log in to SQLServer to do that(refer to How to connect SQLServer?) Deploy the second application mysite2,then same steps The default Root directory is: C:\inetpub\wwwroot How to set Domain Name? You need do complete two steps on this ASP.NET Stack for using Domain Name to visit your site: Step1: Domain Name Resolution Domain Name Resolution indicates the way your domain names are resolved to their mapped IP address. The majority of resolutions from domain names to IP addresses are done through a procedure called DNS. After the resolution, the domain name can be used to access Internet in a much more convenient way.You can use Alibaba Cloud DNS in sync with the Domain service. Alibaba  Cloud DNS provides authoritative DNS servers and DNS management services. 1. Login Cloud Console->DNS Settings->Add Record,set Domain Resolution: 2. The type is A record,host is your sub domain,value is your Internet IP Address.Confirm it Host use @ to exactly match the original domain name (for example, yourdomain.tld). 3. After the Domain Name Resolution please waite for some time until it’s useful(This time is different for different provider of Domain,from 1 minute to 24h) Note:Please clear the browser cache when Domain Name Resolution is useful but you browser seem is also feedback the old contents of your site Step1: Binding Domain on IIS Remote to Windows Server,modify the Site Bindings on IIS,you can see the detail steps below: 1. IIS->Sites->Default Website(right click)->Edit Binding,then pop up the setting windows,select one host which is null,then Edit it 2. Fill in your domain name in Host Name,then click “OK” button 3. Fir you want to add more domain name to this site,please select the “Add” button on the step 1 Note:If you want to deloy more than one site on IIS,this step is neccesary Backup & Restore Routine backup (archives) of the database and application setup is essential to ensure failover is smooth. Backup is based on the server snapshot automatic backup,manual local backup,using plugin to backup in three ways, three of which have their own advantages and disadvantages, it is recommended to use together Automatic Backup by Snapshot of Server IaaS provider have the “snapshot” function for Server, the snapshot is for the server disk. Snapshot tool can record the specified point in time the hard disk data, all backed up, and can achieve a key recovery. If you have an automatic snapshot of the disk settings, the following scenes you can be more calm face:Work a few days of the results, was mistakenly deleted  Hackers damage your site The content has been messed up Done a snapshot backup, a key to restore to the backup point of time state. That is, on-site reduction, very good function. Different cloud vendor snapshot settings slightly different, specific reference: How to use Alicloud snapshot?  (https://www.alibabacloud.com/help/doc-detail/25455.htm) Restore If you have Snapshot of Server,you can restore all the data by click on button Upgrade The SQLServer Express is stable edition,you need not upgrade for it. IIS Official documents IIS of Microsoft:https://www.iis.net (https://www.iis.net/) Websoft9
To view the full page, please visit: ASP.NET infrastructure on Windows powered by Websoft9 Product Userguide

ASP.NET infrastructure on Windows powered by Websoft9

Websoft9 ASP.NET stack is a pre-configured, ready to run image for running ASP.NET application on Alibaba Cloud.
Buy now