About two months ago, I started to learn dnn. I had an inexplicable sense of sacredness about something I never touched. Why is it so popular abroad? Why is it so small in China? What exactly is this? I started my dnn journey with strong curiosity. After a period of local installation, learning, and local re-installation, I tried to deploy a demo website on the VM.
1. purchase domain names, space, and databases. The spatial version is. NET 2.0 + MS Ajax 1. ** (not 3.5 anyway ). Space and database are not a service provider, which also brings a lot of trouble for later installation. The service provider gave you a third-level domain name, showker.ly251.cxhost.cn, for your temporary use. This third-level domain name also fainted me later.
2. Upload the entire file dotnetnuke_community_05 [1]. 01.04 _ install to the space. Then open showker.ly251.cxhost.cn and start to prompt you to install. select typical in the middle (typical installation ). Shortly after the next installation, the following JS error occurs: SYS is undefined and type is undefined. I thought Ms Ajax was not installed on the host. I asked, the other party said it was installed, I was puzzled. Then I suddenly remembered that JS references were not available when I used this service provider's third-level domain (ASP system at that time, and there was no axd reference ), is it still this old problem? after reading the JS references, all of them are src = "/***. axd "or src ="/JS/dnn. JS ", began to doubt whether it is a rare resource. axd not found? However, axd or anything was not used last time, and JS cannot be referenced. I wonder if it is a path problem. It is reasonable to say that "/" is returned to the root directory. Isn't a third-level domain name returned to the root directory? I don't understand. I asked the service provider directly. After a few minutes, the service provider said yes. Please test it. I tried it. The JS error is gone !!! Since there is no change on my side, it must have been modified on the server. I cannot understand what I have changed.
Step 2 is complete. Enter the database link, user name, password or something in the next step. Test the connection and prompt that the connection is successful. Directly start to install the database. An error will be reported in a moment, as shown in.
I searched for "thread was being aborted" in Google, and probably understood it. It may be due to the executiontimeout setting in httpruntime section in Web. config. The default value is 60.
What? Is it because the database server and space are not on the same server that causes database installation timeout? It was changed to 600 seconds. I waited for a while and did not report this error. Let's take a look at the database, tables, stored procedures, and roles, however, a failure occurs after the installation is successful. unwilling to do so, refresh the page multiple times and still cannot proceed to the next step. Alas, I'm totally disappointed.
But a living person cannot be suffocated by the urine. Since it cannot be installed online, I installed it on the local machine and uploaded all the files to the space. Isn't it the same? In this case, use iis5 to create a virtual directory on the XP server, and then browse the home page,
Start the installation, and finally the database is installed. Next, everything is OK. Haha. After the local machine is installed, it starts to pass to the space. At the same time, it changes the value of the httpalias field in the database to showker.ly251.cxhost.cn. Because it is locally installed, its value is localhost. So you need to modify it. Everything is OK. When I open the Internet Explorer traffic, I can see that the scroll bar has been increasing, that is, the page is not displayed. I am in a hurry. Use httpwatch to check the package situation and I am shocked. I 've been on Get, get homepage, all get 62 times ?!!! This is another common problem: Redirect loop (redirection loop ). Or Google, say it's system. web. for the extension version, let's take a look at the web. all the configurations are in version 3.5. I thought I 'd get a 3.5 version of system. web. extension. DLL to bin is not enough (the official bin is 1.0.6... Version), I will replace it with version 3.5, re-flow the page, and directly report an error on the page, saying that I cannot find any assebly, And I want to upload the DLL to the Web. the config is consistent. Why not? Google, find a solution, that is, either let the server install the. 3.5 framework, or change the system. Extension version in Web. config to the same version as the server. After selecting the latter solution, I want to solve it by myself. I cannot install the 3.5 framework for the service provider. (I don't know much about it yet. I don't think people will install it for you ). Okay. replace extenstion 3.5 in config with 1.0.61025.0 ., but these systems. core, system. XML. LINQ, system. data. datasetextensions, system. data. none of the above. All of them are 3.5. After the replacement, browse and report that the above several assemblies cannot be found. Hey, the server is not installed. What should I do? We had to put the DLL of the local machine into the bin through reference (remember to "Copy to local" in the property and select "true", otherwise these files will not be found in the bin generated ). Okay. After uploading these DLL files, restart the website, open the homepage, and the page will finally come out. Deployment ends here.
To sum up the installation of dnn, pay attention to the following points:
1. Third-level domain names cause JS paths such as "src =/dnn. js" to become invalid.I have encountered a similar error on Google, but I do not know why, IIS configuration, or the principle of Level 3 domain names. Please advise. Why?
2. Redirect loop ).Although it is a bug of dnn, it is still caused by unfamiliar versions of Ms Ajax. Later, ensure that the server version is consistent with that in Web. config.
Now let's think about the error "undefined success" reported when the online installation was unsuccessful. It must be a problem with this Ms Ajax version.
3. Loop undefine success error during database installation. The MS Ajax version is inconsistent.
4. errors such as assembly cannot be found. The DLL referenced by bin is not copied to the local machine. If the server does not install the framework of The namespace version, you can use GAC. You must copy it to the local machine.
It is not easy to learn dnn, and it is not easy to deploy dnn. Baidu only has to search Google for these errors. Tired, bitter .....
For dnn, there is only one sentence: Don't trust your brother. Brother is just a legend. After all, it is a Community version. Do you want to install and use it directly? Alas, we intentionally joke about free meals.
Finally, we recommend several websites that learn dnn:
Domestic: http://www.dnnmix.com/(enlightened teacher ah, thank Jhon, thank you for your Chinese)
Abroad: http://www.dnncreative.com/(there are a lot of Flash video learning materials, very comprehensive, I saw a lot, very helpful, these videos even dnn official website are not... Alas ...)
Dnn, I want to fight with you to the end ....