如果我想在我的家用计算机上托管一个 LightSwitch 应用程序,我需要做什么?我的家用电脑有一个 Verizon FIOS 连接。我需要什么软件、配置等?
3 回答
我假设您的意思是 3 层 web/silverlight LightSwitch 应用程序。这就像任何其他 Silverlight 应用程序一样 - 您在家用计算机上只需要 IIS(托管网站和服务)和您的数据源(例如 SQL Server)。查看“发布应用程序向导”。
Take a look at How to: Deploy a LightSwitch Application for details.
From the article -
Once published, a .zip file that contains the package is placed in the directory that you specified for the publish output. Once this package has been created, a server administrator can use the MSDeploy tool to deploy the application to Internet Information Services (IIS) and SQL servers. The administrator can open inetmgr, and move to the location where the application will be deployed. The administrator can then right-click the location and select Deploy: Import Application. The result is a wizard which the administrator can run to deploy the application.
如果您将 LS 应用程序发布为“桌面”应用程序,那么您只需要一个SQL Server 实例。
这可以是 SQL Express,也可以是您的机器上可能已经拥有的其他 SQL Server 风格。
如果您想这样做,您还可以使用您所连接的网络上可用的 SQL 服务器实例。
你甚至可以使用 LS 为你安装的 SQL Express 实例(它必须在那里,你不能卸载它,否则调试体验将不再起作用)。
您不需要其他任何东西,仍然会有三个“层”,但所有三个都可以在您的计算机上。您的机器上不需要IIS,发布向导将为您创建一个本地 Web 服务器。
这是一个链接,它将为您提供部署桌面应用程序的“官方”步骤。
如何:部署 2 层应用程序 - http://msdn.microsoft.com/en-us/library/ff852056.aspx
扬