开发者

How to make Web Application project a standalone with IIS Express and SQL Server Express?

开发者 https://www.devze.com 2023-03-20 05:14 出处:网络
How can I make Web Application project a standalone desktop application with IIS Express and SQL Server Express?

How can I make Web Application project a standalone desktop application with IIS Express and SQL Server Express?

With "standalone" I mean clicking on an exe-file start my application (e.g. start.aspx in my browser). The whole application consists of lots of aspx-files which run in a browser.

NOW: I have my Web Application 开发者_StackOverflow中文版project running fine when pressing F5 in Visual Studio 2010.

MY AIM: I want to start this project on a local machine just as easy as it is in Visual Studio, but how could I do so?


You're misunderstanding what happens when you press F5 in Visual Studio.

When you press F5, and if you're using the Visual Studio Development Server instead of IIS, that server is started up, and can serve requests for your application that come in on localhost. In any case, Visual Studio next starts your default browser and tells it to browse to your web application. The only application being launched on the desktop is your browser.

When your application is ready for other users to use, you will need to deploy it to a web server. Once it is deployed to the web server, users will be able to open their browser and browse to your application.

There is no simple way to package up a web server, database server, and your web application into a single .exe that a user can double-click.


i recommend you look into this product

http://ultidev.com/products/UWS-Cassini-Pro/Default.aspx


You'll need to use SQL CE, which has a number of limitations, such as the inability to auto-increment identity type columns.


Why would you use IIS for a stand-alone desktop application? A web application is for the web. If you want desktop that look into WinForms of WPF. I doubt you will find any tools to do the conversion for you so you will have to make it a manual process. Just hope you have a well structured web app.

Unless of course, you mean to just access a local web application from your local machine IIS installation? If so, then just set up IIS like you would do on a server, assign yourself a port to the localhost to access the web application and then create a nice desktop shortcut that links to the correct URL

0

精彩评论

暂无评论...
验证码 换一张
取 消