This article mainly introduces the ASP.NET MVC5+EF6+EasyUI background management system and the resource environment preparation for WeChat public platform development. It has certain reference value. Interested friends can refer to it
Foreword:
This time we will learn to expand the function of corporate WeChat public accounts. WeChat public accounts are also the main way for corporate traffic and brand promotion. As the saying goes, if you want to do your job well, you must first sharpen your tools. , debugging WeChat must release the program to the external network environment, which makes debugging too slow and troublesome!
We need to be well prepared before we can enter development and prepare for subsequent rapid development
What is intranet penetration?
It is intended that the external network can access the local IIS site through the domain name!
Software environment:
Windows10+IIS10
(Configuring the local site to IIS10 as a backup, publishing the site is not a tutorial)
Knowledge points: Peanut shell (main) ngrok start:
First publish the site to IIS, I publish the site to the local IIS here, and bind the port to: 8081, you can use The default is 80
I think there are two relatively simple intranet penetration software: Peanut Shell and Ngrok
Peanut shell downloadNgrok download1.Peanut shell (minimum charge of 6 yuan)
Peanut shell configuration is simple, the interface operation requires spending 6 yuan, the 6 yuan range only supports telecommunications networks. I deliberately spent 6 yuan to test it. The process is roughly as follows:
1. After installing the peanut shell, open the software2. Click on the domain name list and you will see a free second-level domain name presented by him. The first time you click on the interface is to pay 6 yuan
3. Network penetration - add mapping
The configuration is simple, so that you can access the local IIS site through ymnets.imwork.net. It can be seen that the configuration is simple
2.Ngrok (free)
Ngrok, it is free and the configuration is not very complicated
Address: https: //dashboard.ngrok.com/user/login Register an account and click Download above to download the software (4MB). After decompressing the software, open: At this time you should have 2 interfaces :Software interface, website interfaceSoftware interface:Website interface:
##1. Click the tab label Auth 2.Copy Token to the software interfacengrok authtokenNL............ ................................j1KY
#successfully saved A yml file3. Enter the command again: ngrok http 8081
Note: The port configured by IIS above is 8081. You may have other ports. You need to set them according to the actual situation. 80 is supported. Port
The following interface will pop up, indicating success
4. Open: http://127.0.0.1:4040/inspect/httpYou can see that there are 2 sites. This is the address where the external network can access the local IIS site!
5. Fixed domain nameThe domain names above all change, which means that every time we run To configure a debugging site address, if a fixed domain name is required, we need to pay to obtain a fixed domain name
Address: dashboard.ngrok.com/billing/plan
Then pass the command:ngrok http -subdomain=inconshreveable 8081 Forwarding http://inconshreveable.ngrok.io -> 127.0.0.1:80 Forwarding https://inconshreveable.ngrok.io -> 127.0.0.1:80
Finally, you can access it by customizing the domain name of inconshreveable.ngrok.io
Summary:
1. Fixed domain names require payment. In comparison, peanut shells are cheaper
2. If your network allows it, then use peanut shells. I feel that domestic domain names are still faster
3. If it is free, WeChat development and debugging can also be done using ngrok
4.ngrok is not very stable, and sometimes network opening errors will occur. I don’t know if it is a problem with my personal network
5. All the follow-ups are peanuts Shell test
The above is the detailed content of ASP.NET MVC5+EF6+EasyUI WeChat background management system example analysis. For more information, please follow other related articles on the PHP Chinese website!