(Spring Edition) process and key points for deploying mvc + silverlight on virtual hosts (I)

Source: Internet
Author: User
Tags compact silverlight
Preface

This article describes how to build an mvc (mvc2, 3, 4) + silverlight application on a VM and the key points worth attention. The purpose is to allow smooth deployment by friends who have never been familiar with virtual host deployment. The configuration includes the basic Membership permission verification.

Previously stated: mvc3 requires. net framework 4.0. This article is not a God post. It uses code to control virtual host providers. Not too high-tech, the predecessors carefully read. This article is not very serious, and friends with adverse reactions control your mouse!

That had to be mentioned (below ):

After learning about the web from asp.net, I always wanted to build a website of my own. Even if there was no technology at that time, there was no content. However, I am still happy. Install iis on your xp host, get a virtual directory, get a peanut shell, and find free space and domain names. I wrote several code to process strings. Send your second-level domain name and computer IP address in front of your friends.

Domain names do not need to be filed for record in those years, but in the end, they are reluctant to pay dozens of dollars without buying one and thus stop moving forward. Continue to take the test, and then go to work until now! I still remember that the web course test turned out to be a free Domain Name and space on the Internet. I smiled, but it was no longer fresh!

(Online image: The old brother of the second generation has many sources but is unknown)

Now, let's get started.

Prepare a VM:

You have to be able to afford this question!

Requirements and instructions:
Mvc1 and 2 must support. net framework 3.5 virtual hosts,
Mvc3 and 4 require virtual hosts that support. net framework 4.0.

Applications developed by both Webform.net and mvc.net are the same. All belong to asp.net, and different development modes are implemented.

Short answer
It is enough to be close to the meaning of the question, and no full score can be given for the answer;
The correct answer should be copied or reproduced, and 0 points should be given;
A single answer is scrawled directly to avoid future disputes;

. Net 4.0 virtual machines are hard to find. What should I do?

Although this is not the requirement of this "outline", the phenomenon of exceeding the outline is still severe. So in case the teacher forgets the syllabus.

A: Although my IQ is not high, I may find that I have already completed the search service. I don't know what the search service is. You Baidu, baidu has arrived at souche ++ 1.
Although many IDCs (value-added services provided on the Internet) have doubled the price of virtual hosts to support. net 4.0 silverlight. In my struggle to sacrifice my emotional intelligence, I also found the virtual host with the price = the maximum RMB nominal value and 50 MB of mysql. The link is not sent. Otherwise, the blog master will treat me as a scam and kick out the homepage. The score is 0!

How can I identify which. net version an application requires?

A: Yes. You must have thought of it! For more information, see the comparison photo:


(The figure below is not displayed because I have not installed mvc2. mvc2 and 3.5 will be installed)

Digress: I would like to mention that there is no. net 3.5 version in IIS. Set the. net version for iis. 3.0 or 3.5 is just a legend. Later I read some articles and mentioned that the entire core architecture of 3.5 is still built on. NET 2.0, and the API of. NET Framework has not changed. Therefore, when you set iis to 2.0, 3.5 is supported. We can see that. net 2.0 supports. net 3.5 for virtual machines. But my personal experience tells me that 2.0 is useless to support 4.0! (I was taken to the topic again, ah... Vince is getting stuck)

Website application:

Requirements and instructions:

Do I doubt that the article is about cainiao that can't be found in low-level new projects ?!

Of course not! What is the difference between creating a project and a website ??

WebApplication only generates one dll for the entire application

The WebSite generates a random dll for each page.

Mvc can only be created through projects. I once installed mvc3 and found it for a while in the new website, and uninstalled and installed mvc3!

1000 + words will be omitted in the middle of the Project creation process... Stop !...


Screenshot

Multiple choice questions
Select only the correct ones;
But not necessarily the longest;
Not necessarily the shortest;

Why are there three website templates. Mvc3: I have installed a Chinese patch. Why do I still use English! Forget it. The English is not good. Let's take a look.

The first red box
A: Empty is Empty: nothing will happen after it is set up!
No, I have created a bunch of folders and files, such as Jquery and MicrosoftAjax... . Js. Is a false proposition. Division is gone. However, the view and Controller of the error view do not exist except the template. Select this option for a new project. But today we are not a permission project.

B: Internet Application. A default ASP. net mvc 3 project with an account controller that uses forms authentication.

C: Internet Application. A default ASP. net mvc 3 project that uses Windows authentication.

Report to the instructor. B and C have the same answer. Copy the chalk directly. The length is different. How can the answer be the same!
No matter which one you choose, a Web application with a basic css style navigation page will be created. It integrates simple permission authentication.
The former is a network application based on role permission authentication, and the latter is based on Windows permission authentication. The differences between the two are described below.
Generally, we select role-based authentication. Select a database as the persistence layer to store user-related information, such as the user name and password. Mvc3 uses SQL Server Compact-based database files by default. In general, we do not use database files in practical applications. The cost of sql2000 on small websites is also high. Piracy is no different from cheating in exams. However, if you want to pay for the service provider, the price is usually twice the price of mysql. Doubled ** 2, students!

We will use the webconfig configuration file to replace mysql with the SQL Server Compact file.

This article explains how to deploy a specific application.

Process and key points for building mvc + silverlight on a virtual host (II)

Below:
If you have purchased a. net 4.0 Vm, you can successfully deploy mvc3 and 4 applications?
How does Silverlight be placed on mvc and virtual hosts?
...
Bad comments. The bell rings. We are leaving class! I have always been a good teacher who does not drag lessons (there is no word in the input method. (In fact, it is the fourth class of the evening study. The students go back very late, and then ride home with a long street lamp, the cold winter ...)

Ps: many of them are just jokes. They are not intended for teachers. I have never performed well before the university. I'm sorry for my previous teacher.

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.