Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/visual-studio-2012/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Asp.net mvc 4 本地站点未通过MVC4 VS2012的IIS8正确渲染_Asp.net Mvc 4_Visual Studio 2012_Iis 8 - Fatal编程技术网

Asp.net mvc 4 本地站点未通过MVC4 VS2012的IIS8正确渲染

Asp.net mvc 4 本地站点未通过MVC4 VS2012的IIS8正确渲染,asp.net-mvc-4,visual-studio-2012,iis-8,Asp.net Mvc 4,Visual Studio 2012,Iis 8,我是asp.net的新手,甚至比使用MVC4的VS2012更新。我要做的就是在Windows8中从本地IIS8运行我的项目。我在两天内尝试了这一点,我只是设法在IIS中运行Windows MVC项目,但现在它只是显示索引页内容,如下所示: 为什么会这样 我耽误了时间。请帮帮我。真令人沮丧 意思是,虽然它应该是这样的: 此视图来自.net调试器。当我按f5时:( 这是我在选中查看页面源代码时得到的页面源代码 <h3>We suggest the following:</h3&

我是asp.net的新手,甚至比使用MVC4的VS2012更新。我要做的就是在Windows8中从本地IIS8运行我的项目。我在两天内尝试了这一点,我只是设法在IIS中运行Windows MVC项目,但现在它只是显示索引页内容,如下所示:

为什么会这样

我耽误了时间。请帮帮我。真令人沮丧

意思是,虽然它应该是这样的:

此视图来自.net调试器。当我按f5时:(

这是我在选中查看页面源代码时得到的页面源代码

<h3>We suggest the following:</h3>
<ol class="round">
    <li class="one">
        <h5>Getting Started</h5>
        ASP.NET MVC gives you a powerful, patterns-based way to build dynamic websites that
        enables a clean separation of conasdfasdf
        the latest web standards.
        <a href="http://go.microsoft.com/fwlink/?LinkId=245151">Learn more…</a>
    </li>

    <li class="two">
        <h5>Add NuGet packages and jump-start your coding</h5>
        NuGet makes it easy to install and update free libraries and tools.
        <a href="http://go.microsoft.com/fwlink/?LinkId=245153">Learn more…</a>
    </li>

    <li class="three">
        <h5>Find Web Hosting</h5>
        You can easily find a web hosting company that offers the right mix of features
        and price for your applications.
        <a href="http://go.microsoft.com/fwlink/?LinkId=245157">Learn more…</a>
    </li>
</ol>
我们建议如下:
  • 开始 ASP.NET MVC为您提供了一种强大的、基于模式的方法来构建动态网站 实现conasdfasdf的干净分离 最新的网络标准。
  • 添加NuGet软件包并跳转开始您的编码 NuGet使安装和更新免费库和工具变得容易。
  • 查找网页托管 你可以很容易地找到一家提供正确功能组合的网络托管公司 以及您的应用程序的价格。

  • 我看到您安装了firebug,请尝试使用它检查哪些文件没有使用IIS加载到站点上。视图中只有索引页内容。没有加载页眉和页脚。仅加载索引页我认为您不明白我的意思,当您启动firebug时,请检查控制台是否有错误。对不起,控制台上没有错误…:(这很奇怪。如果CSS和Jquery没有加载,应该会有。在启动firebug后尝试刷新页面,我认为您是在页面加载完成后启动的。