Asp.net website setup project


















Right-click the Solution item in the Solution Explorer. Choose Add New Project… in the context menu. In the Templates section, select Web Setup Project. Enter the required Setup project name. For instance, call it MySolution. Click OK. Specify the Setup project properties via the Properties window. Set the Author property to your name. Set the Manufacturer to your company name. Set the RemovePreviousVersions to True. Right-click the MySolution. Setup project in the Solution Explorer.

In the invoked context menu, choose View File System. Choose Add Project Output…. Check that the bin subfolder contains assemblies referenced by the application. It will be used by the installer as the default virtual directory name. If your application is localized and uses the pre-built satellite assemblies , the satellite assemblies should be deployed with the application.

Add the required satellite assemblies to this folder right-click the folder and choose Add File…. Additionally, the satellite assemblies with your custom localizations made within modules, should be added.

The Add Project Output Group dialog will be invoked. In the Project dropdown list, select the module project e. In the Configuration drop-down list, select the Release configuration. All the dependent assemblies will be added to the Setup project.

Analogously, add the required localized resources from the platform-specific module. Perform the following steps on the Web Server. Either login to the Web Server locally or via a remote desktop. Launch the setup. Specify the virtual directory name. For instance, you can set mysolution as the virtual directory name.

In this instance, the ASP. NET Web Forms application web folder exists and contains application files. Most probably, the Web Server will display an error message stating that an assembly is missing. The reason for this error is that when building the application, the reported assembly was not copied to the MySolution. To resolve this error, copy the required assembly to the Bin folder on the Web Server. You can register the required assembly in the GAC, instead of copying it to the application folder.

The assembly will be registered in GAC. Refresh the web page and see if there are other missing assemblies. Copy it from the Developer Workstation. Repeat the process until there are no errors reported on missing assemblies. Only run-time assemblies from the Developer Workstation are required.

Ensure that you do not accidentally copy design-time assemblies or XML files which are named like the run-time assemblies. If the application displays the following message, it requires a proper connection string in its configuration file, and access to its database. The Set Up the Database Connection lesson describes how to resolve this issue.

You have the capability to uninstall your ASP. Now your application needs a connection to a database to run properly. Proceed to the Set Up the Database Connection lesson to learn how to do it. To familiarize yourself with alternative deployment methods, refer to one of the following lessons.

May we contact you if we need to discuss your feedback in greater detail or update you on changes to this help topic? All docs. General Information. DevExpress Installation. DevExpress Code Examples. Common Tools Project Converter. Assembly Deployment Tool. Localization Service. Quality Assurance and Productivity. CodeRush Classic. Microsoft provides a free version of visual studio which also contains SQL Server and it can be downloaded from www. The following dialog will be displayed.

Close this dialog and restart your computer if required. It will be a while for the first time for preparation. When you start a new web site, ASP. NET provides the starting folders and files for the site, including two files for the first web form of the site. The file named Default. Other supporting windows are the Toolbox, the Solution Explorer, and the Properties window. You use the designer to design a web form, to add code to the control on the form so that the form works according to your need, you use the code editor.

To close a window, click on the close button on the upper right corner and to redisplay, select it from the View menu. To hide a window, click on its Auto Hide button. The window then changes into a tab. To display again, click the Auto Hide button again. When a new web form is created, Visual Studio automatically generates the starting HTML for the form and displays it in Source view of the web forms designer.

The Solution Explorer is used to add any other files, folders or any existing item on the web site. To add a standard folder, right-click on the project or folder under which you are going to add the folder in the Solution Explorer and choose New Folder.

To add an ASP. NET folder, right-click on the project in the Solution Explorer and select the folder from the list. To add an existing item to the site, right-click on the project or folder under which you are going to add the item in the Solution Explorer and select from the dialog box.

A typical ASP. NET application consists of many items: the web content files. All these files that make up the website are contained in a Solution. When a new website is created. VB automatically creates the solution and displays it in the solution explorer.



0コメント

  • 1000 / 1000