使LightSwitch Web服务器服务HTML页面 [英] Getting LightSwitch Web Server to Serve HTML pages

查看:69
本文介绍了使LightSwitch Web服务器服务HTML页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨.我试图将HTML页面添加到Server项目中,该页面将显示在LightSwitch应用程序的Silverlight WebBrowser控件中.

Hi. I'm trying to add an HTML page to the Server project that I will show in a Silverlight WebBrowser control in the LightSwitch application.

但是,当我将页面放入服务器项目中,编译并运行该项目时,出现404错误.我将它放在Server项目的根目录还是Web文件夹中都没关系.

However, when I put the page in the server project, compile, and run the project, I get a 404 error. It doesn't matter if I put it in the root of the Server project or in the Web folder.

这似乎是IIS Express的专用LightSwitch版本仅设置为用于某些文件类型的服务器.有谁知道如何使它能够提供普通的旧HTML页面?

This seems like the specialized LightSwitch version of IIS express is only set to server up certain file types. Does anyone know how to enable it to serve up a plain old HTML page?

谢谢!

-杰森

推荐答案

根据我的测试,开发服务器应正确提供HTML内容.

Based on my test the development server should serve HTML content correctly.

您可以在Bin \ Debug文件夹中看到该html页面吗? (假设您没有更改默认设置,并且正在调试Debug build).如果可以,请确保您使用的URL是正确的.请检查URL并确保其正确.

Can you see that html page in the Bin\Debug folder? (Assume you don't change default settings and are debugging Debug build) If you can please make sure the URL you use is right. Please check the URL and make sure it's right.

如果仍然无法正常运行,请发布您使用的绝对URL以及获取方式.

If it still doesn't work please post the absolute URL you used and how you get it.


这篇关于使LightSwitch Web服务器服务HTML页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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