如何在visual studio中为web应用程序创建exe文件 [英] how to create exe file for web application in visual studio

查看:122
本文介绍了如何在visual studio中为web应用程序创建exe文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在ASP.Net和后端Sqlserver 2000中创建了Web应用程序



我已经在公司服务器(IIS)上传了应用程序,我们将使用此应用程序

仅供内部使用。



他们需要.exe或.msi文件,以便他们可以在公司内部的任何机器上运行此应用程序连接到服务器。



我的系统详细信息是 - Visual Studio 2008,sql server 2000,Windows XP Professional SP3,IIS 5.1

< br $>


问候

Surya

I have created web application in ASP.Net and backend Sqlserver 2000

I have uploaded application on my company server(IIS) and we will use this application
For internal purpose only.

They need .exe or .msi file so that they can run this application on any machine inside the company and connect to the server.

My system details are – Visual Studio 2008, sql server 2000, Windows XP Professional SP3, IIS 5.1


regards
Surya

推荐答案

请参阅此链接:



视觉Studio创建安装项目以在IIS中部署Web应用程序 [ ^ ]



:doh:



安装ASP.NET应用程序的项目部署 [ ^ ]



问候..:笑:
Refer to this link:

Visual Studio Create Setup project to deploy web application in IIS[^]

:doh::

Setup Project Deployment of an ASP.NET Application[^]

Regards.. :laugh:


步骤:

1.打开Visual Studio New - >项目。

2.在左侧选择设置和部署,在右侧窗格中选择Web Setup Project。选择创建安装文件的位置,并为解决方案命名。

3.应用程序将在Web应用程序文件夹下有bin文件,在这里你必须将bin重命名为bin1。

4.Copy和Paste File你已经发布。

5.粘贴数据后,文件夹有bin和bin1,删除你重命名的bin1文件夹。

6.右击Web应用程序文件夹,选择属性窗口。

7.将默认文档设置为应用程序启动登录页面(Login.aspx)。

8.在解决方案资源管理器中选择用户界面编辑器。

9.在用户界面编辑器中,选择在开始时添加对话。

10.在添加对话框中选择客户信息,然后单击确定。

11 ..默认情况下,客户信息将在最后一步以上移动一步。

12.选择客户信息属性

13.Serial numb有模板,我们可以创建关键字模板的多种可能性



SerialNumberTemplate属性的有效可编辑字符是:

字符含义

#需要一个不包含在验证算法中的数字。

%需要一个将包含在验证算法中的数字。

?需要一个不包含在验证算法中的字母数字字符。

^需要大写或小写字符。数字数字在这里无效。

<对话框中将不会显示此角色左侧的任何字符。

>对话框中将不会显示此角色右侧的任何字符。如果<必需作为终止符。使用角色。



任何其他角色都被视为文字常量。





折叠|复制代码

例如,将SerialNumberTemplate属性设置为< ### - %%%%>创建两个由空格包围的短划线分隔的文本框。验证第一个框(###)只是验证用户输入了三位数。第二个框(%%%%)由一个算法验证,该算法将数字加在一起并将总和除以7.如果余数为0,则验证成功;否则,它会失败。



例子

????? - %%%%% - ????? - ????? - ?????

您仍然可以在键中使用数字和字母组合,但第二个框总是包含数字 - 即BC45T - 340707 - 1XFFE - EFT22 - 1XYZ3



14.将Show Serial Number属性设置为True。

15.建立流程

16.转到项目创建的本地文件夹并复制.msi扩展文件并安装应用程序
Steps:
1.Open Visual studio New--> project.
2.Select Setup and deployment in left side and Web Setup Project in right side pane.Select the Location where to create the setup file and give Name to solution.
3.The application will have the bin file under Web Application Folder,here you have to rename bin into bin1.
4.Copy and Paste File that you have published.
5.After data pasted the folder have bin and bin1 ,delete bin1 folder you re-named .
6.Right click the Web Application Folder select the Properties Window.
7.Set Default Document as Application starting Login page ( Login.aspx ).
8.In Solution Explorer Select User interface Editor.
9.In User Interface Editor ,Select add Dialogue in Start.
10.Select Customer information in Add Dialogue Box and click OK.
11.. By default Customer Information will be at last so move above one step.
12.Select property for Customer Information
13.Serial number template are there , we can create number of possibilities of keyword template

Valid editable characters for the SerialNumberTemplate property are:
Char Meaning
# Requires a digit that will not be included in the validation algorithm.
% Requires a digit that will be included in the validation algorithm.
? Requires an alphanumeric character that will not be included in the validation algorithm.
^ Requires an uppercase or lowercase character. Numeric digits are not valid here.
< Any characters to the left of this character will not be visible in the dialog box.
> Any characters to the right of this character will not be visible in the dialog box. Required as a terminator if the < character is used.

Any other character is treated as a literal constant.


Collapse | Copy Code
For example, setting the SerialNumberTemplate property to "<### - %%%%>" creates two text boxes separated by a dash surrounded by spaces. Validation for the first box (###) simply verifies that the user has entered three digits. The second box (%%%%) is validated by an algorithm that adds the digits together and divides the sum by 7. If the remainder is 0, validation succeeds; otherwise, it fails.

Example
????? - %%%%% - ????? - ????? - ?????
You could still use a mix of numbers and letters in your keys, but the second box would always contain numbers - i.e. "BC45T - 340707 - 1XFFE - EFT22 - 1XYZ3

14.Set Show Serial Number properties to True.
15.Build the Process
16.Go to the Local folder where the project created and copy the .msi Extension file and install the application


这篇关于如何在visual studio中为web应用程序创建exe文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆