Development of Flex Blogging system from zero based on FLEX4 technology: 6 Using FluorineFX

Source: Internet
Author: User
Tags config php and management studio microsoft sql server management studio sql server management sql server management studio sql server express visual studio

Google app Engine, which supports both Python and Java, may also support the future. Net,php and other languages. But I dare not put the treasure all on Gae, if which day appspot.com was screen, I wait for development also to rest vegetables. To this end, I plan to have my flexblog support. NET and PHP. Let's take a look at how to build a remoting server with. NET today.

One,. NET+FLUORINEFX Development Environment Build

I used Weborb for Java in Gae for the remoting framework, but for. NET, I'm not going to use weborb for. NET to build Remoting server. Compared with Weborb for. NET, the popularity and fame of Fluofinefx are much greater. I tend to use the latter.

1, download the Microsoft. NET Framework, Installation: http://www.asp.net/downloads/essential/

2, download the visual Web Developer 2008 Express Edition, installation: http://www.microsoft.com/express/vwd/

3, download Fluofinefx, installation: http://www.fluorinefx.net/download.html

4, download SQL Server Express Edition (http://www.microsoft.com/Sqlserver/2005/en/us/express.aspx) and Microsoft SQL Server Management Studio Express (http://www.microsoft.com/downloads/details.aspx?) familyid=c243a5ae-4bd1-4e3d-94b8-5a0f62bf7796&displaylang=en), installing

The above 4 steps are based on the Net+fluorinefx Flex server-side development environment in the local area, and the installation steps are simpler and no more than one by one narratives. Of course, if you already have visual Studio, you don't have to install the VWD Express version, and if you already have SQL Server Standard Edition or Enterprise Edition, you don't have to install SQL Server Expres. The database version has no special requirements, sql2000 should also be possible. I chose the express version because they were all free.

Open vWD and create a FluorineFX asp.net Web site, as shown in the following illustration:

Configure IIS so that http://localhost/points to the war directory of the Gapp_flexblog project, and http://localhost/dotnet/to the Web site root directory that was created. Open the browser, access the http://localhost/dotnet/Gateway.aspx, verify that the configuration is successful, bad, burst the following error:

Parser Error Message: Could not load file or assembly ‘FluorineFx’ or one of its dependencies. 系统找不到指定的文件。 (D:\flex4-lessons\dotnet_web\web.config line 180)
Source Error:
Line 178:
Line 179:     Line 180:      <add name="FluorineGateway" type="FluorineFx.FluorineGateway, FluorineFx" />

This is caused by a Web site project that failed to add the FluorineFx.dll reference correctly. Cut to vWD, right click on item, select Add Reference:

Select Fluorinefx.dll (this file can be found under the FluorineFX installation directory), Add. Visit http://localhost/dotnet/Gateway.aspx again, the page is blank, this is normal. At this point, the. NET+FLUORINEFX development environment configuration was successful.

Modify the Web-inf/flex/remoting-config.xml destination to Genericdestination.

Second, the creation of database and data table

Open SQL Server Management Studio and add a new database named Flexblog. Add a new table, named greeting, with the following table structure:

The SQL statement that creates the greeting is:

USE [flexblog]
GO
/****** Object:  Table [dbo].[Greeting]    Script Date: 05/01/2009 00:21:47 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[Greeting](
        [id] [bigint] IDENTITY(1,1) NOT NULL,
        [user] [nvarchar](50) COLLATE Chinese_PRC_CI_AS NOT NULL,
        [greetingContent] [nvarchar](200) COLLATE Chinese_PRC_CI_AS NOT NULL,
        [date] [datetime] NOT NULL CONSTRAINT [DF_Greeting_date]  DEFAULT (getdate()),
 CONSTRAINT [PK_Greeting] PRIMARY KEY CLUSTERED 
(
        [id] ASC
)WITH (PAD_INDEX  = OFF, IGNORE_DUP_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]

The database is not intended to be used only for. NET, and is used by the PHP program to avoid duplication of effort.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.