我的项目工作非常好,突然间我没有改变任何错误:
HTTP错误403.14 - 禁止访问 Web服务器配置为不列出此目录的内容。 详细错误信息: 模块DirectoryListingModule 通知ExecuteRequestHandler 处理程序StaticFile 错误代码0x00000000 请求的网址http://localhost:53075/ 物理路径C:\ Users \ Eyad \ Documents \ Visual Studio 2015 \ Projects \ WebMuhasebe \ WebMuhasebe 登录方法匿名 登录用户匿名 请求跟踪目录C:\ Users \ Eyad \ Documents \ IISExpress \ TraceLogFiles \ WEBMUHASEBE
我的模特是:
namespace WebMuhasebe.Models
{
using System;
using System.Collections.Generic;
public partial class HesapPlani
{
public long id { get; set; }
public string HesapKodu { get; set; }
public string HesapAdi { get; set; }
public Nullable<byte> HesapTipKodu { get; set; }
public Nullable<decimal> Borc { get; set; }
public Nullable<decimal> Alacak { get; set; }
public string HsTipAdi { get; set; }
}
}
我的控制器是:
public class HesapPlanisController : Controller
{
private UNIT_MuhasebeEntities db = new UNIT_MuhasebeEntities();
// GET: HesapPlanis
public ActionResult Index()
{
return View(db.HesapPlani.ToList());
}
// GET: HesapPlanis/Details/5
}
我的观点是:
@model IEnumerable<WebMuhasebe.Models.HesapPlani>
@{
ViewBag.Title = "Hesap Planı Kayıtları";
}
<h2>Hesap Planı Kayıtları</h2>
<table class="table">
<tr>
<th>
@Html.DisplayNameFor(model => model.HesapKodu)
</th>
<th>
@Html.DisplayNameFor(model => model.HesapAdi)
</th>
<th>
@Html.DisplayNameFor(model => model.HesapTipKodu)
</th>
<th>
@Html.DisplayNameFor(model => model.Borc)
</th>
<th>
@Html.DisplayNameFor(model => model.Alacak)
</th>
<th>
@Html.DisplayNameFor(model => model.HsTipAdi)
</th>
<th></th>
</tr>
@foreach (var item in Model) {
<tr>
<td>
@Html.DisplayFor(modelItem => item.HesapKodu)
</td>
<td>
@Html.DisplayFor(modelItem => item.HesapAdi)
</td>
<td>
@Html.DisplayFor(modelItem => item.HesapTipKodu)
</td>
<td>
@Html.DisplayFor(modelItem => item.Borc)
</td>
<td>
@Html.DisplayFor(modelItem => item.Alacak)
</td>
<td>
@Html.DisplayFor(modelItem => item.HsTipAdi)
</td>
</tr>
}
</table>
它非常简单,它正在工作,但事情发生了,它停止了,任何想法?