我得到这种错误像::
指定的参数超出了有效值的范围.参数名称:site
调试我的任何项目时.
我在重新安装My Visual Studio 2012之后也尝试过.但是在调试时我又遇到了同样的问题.
我的系统配置是:
显示Web Page Like时抛出异常,
[ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
Parameter name: site]
System.Web.HttpRuntime.HostingInit(HostingEnvironmentFlags hostingFlags, PolicyLevel policyLevel, Exception appDomainCreationException) +298
[HttpException (0x80004005): Specified argument was out of the range of valid values.
Parameter name: site]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +9873912
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +101
System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +254
Run Code Online (Sandbox Code Playgroud) 请帮帮我!我找不到任何解决这个问题的方法
'/'应用程序中的服务器错误.
编译错误
说明:在编译服务此请求所需的资源期间发生错误.请查看以下特定错误详细信息并相应地修改源代码.
编译器错误消息:
编译器失败,错误代码为-2146232576.
显示详细的编译器输出:
c:\ windows\system32\inetsrv> C:\ Workpaces\sagote.com\Wedding\3\bin\roslyn\csc.exe/t:library/utf8output/nostdlib +/R:"C:\ Windows\Microsoft.NET\Framework64\v4.0.30319\mscorlib.dll"/ R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Runtime\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Runtime.dll"/ R:"C :\ Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\5f9ae3e7\fb951622\assembly\dl3\47011476\00fbf29a_4bc5d201\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.dll"/ R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll"/ R:"C:\Windows\Microsoft.Net/assembly\GAC_MSIL\System\v4. 0_4.0.0.0__b77a5c561934e089\System.dll"/ R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.CSharp\v4.0_4.0.0.0__b03f5f7f11d50a3a\Microsoft.CSharp.dll"/ R:"C :\ Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\5f9ae3e7\fb951622\assembly\dl3\3e4699ee\00d223f3_984fd201\Microsoft.AI.ServerTelemetryChann el.dll"/ R:"C:\Windows\Microsoft.Net\assembly\GAC_64\System.EnterpriseServices\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.dll"/ R:"C:\ Windows\Microsoft. NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\5f9ae3e7\fb951622\assembly\dl3\e44922d6\00ae0f0a_9e10ce01\Antlr3.Runtime.dll"/ R:"C:\Windows\Microsoft.NET\Framework64\v4 .0.30319 \临时ASP.NET文件\ ROOT\5f9ae3e7\fb951622 \装配\ DL3\3e9cfada\000ff382_10aece01\WebGrease.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.IdentityModel\v4. 0_4.0.0.0__b77a5c561934e089\System.IdentityModel.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.Services\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.Services.dll "/ R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\5f9ae3e7\fb951622\assembly\dl3\a72ce407\005b39b8_5fcbcc01\Microsoft.Web.Infrastructure.dll"/ R :"C:\ Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\5f9ae3e7\fb951622\assembly\dl3\2d479306\00e7 c43f_4550d201\Microsoft.AI.Web.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET文件\ ROOT\5f9ae3e7\fb951622 \装配\ DL3\eeb7a29f\004382d7_743ad001\SYSTEM .Web.Helpers.dll"/ R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\5f9ae3e7\fb951622\assembly\dl3\74e8ab62\0088f21e_984fd201\Microsoft.ApplicationInsights. dll"/R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Activities\v4.0_4.0.0.0__31bf3856ad364e35\System.Activities.dll"/ R:"C:\ Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel.Activities\v4.0_4.0.0.0__31bf3856ad364e35\System.ServiceModel.Activities.dll"/ R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\5f9ae3e7\fb951622\assembly\dl3\aeb27190\0003c034_e94ad201\Microsoft.AI.Agent.Intercept.dll"/ R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.DynamicData\v4. 0_4.0.0.0__31bf3856ad364e35\System.Web.DynamicData.dll"/ R:"C:\Windows\Microsoft.Net/assembly\GAC_MSIL\System.Runtime .Serialization\v4.0_4.0.0.0__b77a5c561934e089\System.Runtime.Serialization.dll"/ R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\5f9ae3e7\fb951622 \装配\ DL3\fdddc2aa\00363de7_0227cf01\System.Web.Optimization.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel\v4.0_4.0.0.0__b77a5c561934e089\System.ServiceModel.dll "/ …
我一直在关注这个关于如何使用 asp.net 构建网站以及如何在 MSSQL 中连接的旧 Youtube 视频。由于我还不知道如何创建后端的东西,我认为有一个可以遵循的格式是个好主意。我复制了所有代码,结果出现了几个错误。我只是单击了显示潜在修复并选择了第一个可用选项。所有错误都消失了,我能够运行网站的主页。但是当我浏览评论和咖啡时。我在“/”应用程序中遇到服务器错误。尽管我想自己解决这个问题,但我真的不知道要改变什么。希望大家帮帮忙。
这是 Masterpage.Master:
<%@ Master Language="C#" AutoEventWireup="true" CodeBehind="Masterpage.master.cs" Inherits="WebApplication1.Masterpage" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>My Website</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script type="text/javascript">
function mainmenu() {
$(" #nav ul ").css({ display: "none" });
$(" #nav li ").hover(function() {
$(this).find('ul:first').css({ visibility: "visible", display: "none" }).show(400);
}
, function() {
$(this).find('ul:first').css({ visibility: "hidden" });
});
}
$(document).ready(function () {
mainmenu();
});
</script>
<link rel="stylesheet" type="text/css" href="~/Styles/Stylesheet.css" />
</head>
<body>
<form id="form1" runat="server">
<div id="wrapper">
<div id="banner">
</div> …Run Code Online (Sandbox Code Playgroud)