I. Development Environment Installation
1. Install iis5.0 or above for Windows
2. Install Asp.net Framework 2.0 again.
3. Download (http://www.asp.net/iewebcontrols/download.aspx), install ie web control,
Decompress the package and run C:/program files/ie Web controls/build. bat.
Create C:/program files/ie Web controls/build
Copy all files in C:/program files/ie Web controls/build/runtime/*. * to the IIS working directory.
The default value is C:/inetpub/wwwroot.
The copied doscommand is as follows:
Xcopy/S/I./build/runtime C:/inetpub/wwwroot/webctrl_client/defaults 0/y
(Note: You can also manually create and copy the webctrl_client/defaults 0 directory)
4. Install Ajax
5. Download pb11(powerbuilder110.zip,commoninstaller.zip) and install pb11
After Uncompressing the file, use setup.exe in the commoninstallerfolder to install the file. When the installation is completed,
Select the folder to which powerbuilder110.zip is extracted to install the package correctly.
2. The pb program for converting C/S to B/S
1. First Port your program to pb11 and use pb11 to open the workspace and target. pb11 is automatically transplanted and debugging can run normally under C/SX.
2. The conversion starts. Choose File> new in the menu operation. Open [new] and select [target]-. NET web forms application.
Follow the wizard,
Step 1 Introduction to the wizard
Step 2 select use an existing library and Application Object
Step 3. Find your application object
Step 4 Add the PBL file you are using
Step 5 name the PBT file name. You can also go directly to the next step [next>].
Step 6 name the project object, or directly go to [next>]
Step 7 enter your virtual directory in IIS, or directly go to [next>]
Step 8 Add the resource file you are using
Step 9 if you use a third-party dynamic library DLL, add it here. If not, [next>]
Step 10 if you want to use JavaScript, add it here. I don't have it.
Step 11: The Web server you want to publish
Step 12 summarize your selection, [finish>]. The Great. NET web forms is created.
Release Step 13, deploy project. You just need to click a button. You just need to smoke, pour tea, and wait.
The release process is as follows:
Check whether your IIS service is available.
Generate the. NET Assembly File
Generate a PBD File
Copy files to the IIS server
Release completed.
Step 14 use IE to open your program (view your specific IP address and virtual directory) http: // GST-susue/oands
After a long wait, Asp.net needs to compile the program for the first time, and it will be faster next time. (If you want to run aspnet_regiis-I, you may need to restart it)
Port 80 must be enabled when step 15 is released
Step 14 use IE to open your program (depending on your specific IP address and virtual directory) on another machine. After a long wait, the first time Asp.net runs, you need to compile it first and then hurry up next time.
Note: The final step is to put the files under C:/program files/Sybase/PowerBuilder 11.0/DOTNET/bin /.
(1) Sybase. PowerBuilder. Ado. dll
(2) Sybase. PowerBuilder. Common. dll
(3) Sybase. PowerBuilder. Core. dll
(4) Sybase. PowerBuilder. datawindow. InterOP. dll
(5) Sybase. PowerBuilder. datawindow. Web. dll
(6) Sybase. PowerBuilder. datawindow. Win. dll
(7) Sybase. PowerBuilder. DB. dll
(8) Sybase. PowerBuilder. dbext. dll
(9) Sybase. PowerBuilder. editmask. InterOP. dll
(10) Sybase. PowerBuilder. editmask. Win. dll
(11) Sybase. PowerBuilder. graph. Core. dll
(12) Sybase. PowerBuilder. graph. InterOP. dll
(13) Sybase. PowerBuilder. graph. Web. dll
(14) Sybase. PowerBuilder. graph. Web. dll
(15) Sybase. PowerBuilder. InterOP. dll
(16) Sybase. PowerBuilder. RTC. InterOP. dll
(17) Sybase. PowerBuilder. RTC. Win. dll
(18) Sybase. PowerBuilder. Web. dll
(19) Sybase. PowerBuilder. WebService. runtime. dll
(20) Sybase. PowerBuilder. WebService. runtimeremoteloader. dll
(21) Sybase. PowerBuilder. WebService. WSDL. dll
(22) Sybase. PowerBuilder. WebService. wsdlremoteloader. dll
(23) Sybase. PowerBuilder. Win. dll
Copy these files to the bin directory under the B/S program directory you are converting. (After successful conversion, the main file directory is C:/inetpub/wwwroot/baoming/bin)
Error:
1. generate C # syntax failure error when compiling generated C # code:
Download and install aspajaxextsetup. MSI
2. The name must start with an invalid character. An error occurred while processing the resource 'HTTP: // localhost. Row 1st, Location: 2
Solution:
1. In the XP system:
Open "start-Run" and enter (in blue) in the command line ):
C:/winnt/Microsoft. NET/framework/v2.0.50727/aspnet_regiis.exe-I
2. In the 2000 system:
Open "start-Run" and enter (in blue) in the command line ):
C:/Windows/Microsoft. NET/framework/v2.0.50727/aspnet_regiis.exe-I
3. [Microsoft] [ODBC driver manager] No data source name found and default driver not specified
In "ODBC data source Manager", there are three DSN types used to connect to the database: User DSN, system DSN, and file DSN.
Because the Tomcat service started by monitor Tomcat runs as a system-level NT Service Routine (IIS should be the same), the "user data source" created by "User DSN" cannot be accessed ".
Change the data source to "system DSN"