如何在USB闪存驱动器上运行使用visual studio 2013构建的Web应用程序(ASP.NET)? [英] How to run a web application(ASP.NET) built using visual studio 2013 on a usb flash drive?
问题描述
我使用visual studio 2013创建了一个基于asp.net的网站,并希望在usb闪存驱动器中运行该网站,
是否有任何应用程序可以帮助我解决这个问题?
我尝试了什么:
当我使用开发的工具时对于像cassini dev这样的工作,我得到了:
配置错误
描述:发生错误处理为此请求提供服务所需的配置文件。请查看下面的具体错误详细信息并相应地修改配置文件。
分析器错误消息:无法识别的属性'targetFramework'。请注意,属性名称区分大小写。
来源错误:
第16行:
第17行:< system.web>
第18行:< compilation debug =truetargetFramework =4.5/>
第19行:< httpRuntime targetFramework =4.5/>
第20行:< pages>
源文件:D:\deploy \Debug \web.config行:18
i made an asp.net based web site using visual studio 2013 ,and want to run that web site in usb flash drive ,
is there any application which might help me regarding this problem?
What I have tried:
when i used tools which are developed for this job like cassini dev etc i got :
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: Unrecognized attribute 'targetFramework'. Note that attribute names are case-sensitive.
Source Error:
Line 16:
Line 17: <system.web>
Line 18: <compilation debug="true" targetFramework="4.5" />
Line 19: <httpRuntime targetFramework="4.5" />
Line 20: <pages>
Source File: D:\deploy\Debug\web.config Line: 18
推荐答案
我会说这是一个坏主意,因为你' '不是只运行你的代码。您还需要从USB驱动器运行的Web服务器。其中大部分都需要在机器上安装才能开始运行。
您将需要一个门户网站服务器。看看这个 [ ^ ]举例说明。
I would say that this is a bad idea because you''re not running just your code. You need a web server running from the USB drive too. Most of those are going to require installation on the machine in order to even start running.
You're going to need a "portal web server". Take a look at this[^] for some examples.
这篇关于如何在USB闪存驱动器上运行使用visual studio 2013构建的Web应用程序(ASP.NET)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!