简体   繁体   English

从CD运行ASP.NET应用

[英]ASP.NET app running from CD

I've developed a very simple ASP.NET (jQuery) application. 我已经开发了一个非常简单的ASP.NET(jQuery)应用程序。
The RDBMS is MS Sql Server but I could easily convert it in MS Access. RDBMS是MS Sql Server,但我可以轻松地在MS Access中将其转换。
My client would like to have it available on a CD, ready to run. 我的客户希望将其放在CD上并准备运行。

I was thinking to convert it in a WinForm app but, still, I have to install the framework on the client. 我当时正在考虑在WinForm应用程序中对其进行转换,但是仍然必须在客户端上安装该框架。 Is there any other "possible" solution? 还有其他“可能的”解决方案吗?

If your users are running versions of XP, Vista, or Windows 7 that include IIS, you could conceivably install the application into a virtual directory. 如果您的用户运行的是包含IIS的XP,Vista或Windows 7版本,则可以想象将应用程序安装到虚拟目录中。 That's a lot to ask from end-users, though. 但是,最终用户有很多要问的问题。 Most users won't have IIS installed even if they are running a version of Windows that offers it. 大多数用户即使正在运行提供该版本的Windows版本,也不会安装IIS。

You're going to have more trouble trying to run a web app on a client machine than you will a desktop application. 与台式机应用程序相比,尝试在客户端计算机上运行Web应用程序会遇到更多麻烦。

A web app requires some sort of web server running, but a desktop app just needs the framework. Web应用程序需要某种Web服务器运行,而桌面应用程序只需要框架。

You're going to be better off converting it to a desktop app. 将其转换为桌面应用程序会更好。

I haven't tried this, but I just found it by searching for "portable asp.net web server" 我没有尝试过,但是我只是通过搜索“便携式asp.net Web服务器”找到它的

http://www.codeproject.com/KB/aspnet/TinyWebServer.aspx http://www.codeproject.com/KB/aspnet/TinyWebServer.aspx

Introduction 介绍

Have you ever wanted to show up an ASP.NET project where IIS was not accessible? 您是否曾经想过显示无法访问IIS的ASP.NET项目? Have you ever thought of if there can be a way to carry your web server wherever you go, ie, on a USB flash stick or even a CD? 您是否曾经想过,无论您身在何处,都可以通过USB闪存盘甚至CD携带Web服务器?

If so, then this cool TinyWebServer is for you! 如果是这样,那么这个很酷的TinyWebServer适合您! This tiny portable web server can be used for testing and developing ASP.NET projects, wherever IIS is not available. 在没有IIS的任何地方,都可以使用这种小型便携式Web服务器来测试和开发ASP.NET项目。

You maybe able to do this by using something like cassini http://www.asp.net/downloads/archived/cassini/ . 您也许可以使用cassini之类的http://www.asp.net/downloads/archived/cassini/来完成此操作。 This is a simplified version of the visual studio web server that you see when you run from visual studio. 这是从Visual Studio运行时看到的Visual Studio Web服务器的简化版本。

In my team we have used this and wrapped it in a exe that allows us to start the cassini server and start a browser to the cassini server address. 在我的团队中,我们使用了此文件并将其包装在一个exe文件中,该文件允许我们启动卡西尼服务器并启动浏览器到卡西尼服务器地址。

This still relies on the right version of .NET Framework being installed. 这仍然依赖于所安装的.NET Framework的正确版本。

EDIT: Some more recent links http://ultidev.com/Products/Cassini/ and http://blogs.msdn.com/dmitryr/archive/2008/10/03/cassini-for-framework-3-5.aspx 编辑:最近的一些链接http://ultidev.com/Products/Cassini/http://blogs.msdn.com/dmitryr/archive/2008/10/03/cassini-for-framework-3-5.aspx

Should be simple if you convert it to HTML & jquery script. 如果将其转换为HTML和jquery脚本,则应该很简单。 As HTML doesn't require any seperate runtime & also worth considering asp.net runtime also does the same thing when the response is sent to the client. 由于HTML不需要任何单独的运行时,并且也值得考虑,asp.net运行时在将响应发送到客户端时也做同样的事情。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM