.Text's blog program tested Hanhua experience (http:webuc.netdotey)

xiaoxiao2021-03-06  115

I downloaded the latest 95.2004.102 belt source code, there are several ways configuration, basically almost, I will simply say my own installation process:

1. Unzip the source program to the hard disk a directory, then point the IIS default site to the Code / DottextWeb Directory 2. Create a new database dottextdb, open the SQL query analyzer, run data / dottext_095_fulldb.sql, create data

The library and stored procedures. 3, according to your needs to select a configuration file in the configs directory, I chose the first multiple1_web.config, will

The content replaces the content inside the web.congfig below Code / DottextWeb, simultaneous changes:

Connectionstring = "edit" /> change to

Connectionstring = "server = localhost; data = dottextdb; uid = sa; pwd =; app = blog" /> -5 change to 8

If this is changed to the local, it is changed to the

If it is transmitted to the server, such as my www.webuc.net The above content is displayed on the personal blog home, so it is necessary to happen Basically this is like this

4, create a new blog, starting I use DottextHelper.exe (in the dottexthelper directory, remember to modify before use

DottextHelper.exe.config Connect the database string) to add, then discover that as long as you manually

[blog_config] is added in the table. Add it in the database, then according to the name of the Application field, for example, I am

Dotey, then create a new Dotey directory in the Code / DottextWeb directory, newly built a blank default.aspx file

5. If you don't accidentally, your blog is built, you can pass http: // localhost / dotey, or if you are in service

On the instructor, if you can access my blog by http://www.webuc.net/dotey, you can manage your own

Blog.

6, the above steps are followed by step, but this will soon find problems: blog is clear, why not

display? Why can't Blog can't open? Why does the blog list appear an XML error? Or is the English interface is too uncomfortable! At least this is

I just installed the confusion. 7, first is the issue of blog, this is the [blog_config] table in the [blog_config] table is incremented by dottextHelper.exe

The value of the bloggroup item is NULL in the record, and the homepage access [blog_config] only reads the record of bloggroup = 1 by default, so you need

To change the BLOGGROUP default value in the database to 1, and change the value of all BlogGroup items to 1. Suggestion

[Language] field defaults to zH-CHS. [Timezone] field default to 8.

8. According to the link address of Blog, the blog cannot be opened, the link address is generally:

http://www.Webuc.Net/dotey/archive/2004-04-04/156.aspx, open an error, in the source code, in

DEFAULT.ASPX.CN I found the corresponding code: protected host, string app, string entryname, datetime dt) {return string.format ("{0} Archive / {1} / {2} .aspx ", GetFullurl (Host, App), DT.TOString

("YYYY / MM / DD"), EntryName);} It is clearly dt.toString ("YYYY / MM / DD"), why will the date format becomes YYYY-MM-DD? It turned out to be a server

The Chinese date format is made, and the code will be changed as follows: DT.Tostring ("YYYY / MM / DD", New CultureInfo ("En-US")) and puts all DT.Tostring ("YYYY" / Mm / dd ") and DT.Tostring (" YYYY / mm ") code is all like new New NEW

CultureInfo ("en-us") is fine.

9, XML error is mainly because the default code is UTF-16, I have explained how to solve it in the previous essay.

10, .Text's Chinese is a very troublesome thing that requires Chinese content to be distributed in each .aspx, .aspx.cs, .config text

Under this, on this point, aspnetforums2.0 is dealt with very well, put the text displayed on all interfaces in. XML, so Han

It is very convenient to get to the ASPNETforumS2.0, which is also helping me, and there are still many translation, content.

Too much, and my English is not very good, huh, I hope that someone should not yell, this time, the source of Chinese .Text, Bo Guotang

The code (on the basis of .text 0.94) helped me, basically referring to his translation, thank you Happy Bozang Source Code

download.

This is a little experience in the debugging process. I will share it with everyone, and I will pack the source code on the Internet tomorrow.

Download (home kittens dial, network speed is too slow), for everyone to learn research, say. TEXT source code has always been not studying,

But I prefer ASPNETforums 2.0's architecture, and some time must be tied, and they will share it together.

Published on April 4, 2004 22:38

转载请注明原文地址:https://www.9cbs.com/read-125782.html

New Post(0)