try to change userName to "SYSTEM" in <processModel> in machine.config
解决方案 »
- 请高手指教,怎样把数据源绑定到gridview的某一行呢?
- C# winform 安装部署的相关问题
- 如何截取当前网页body之间的文本内容
- VS2003 C/S开发时资源文件相关问题
- 想请教一下,有什么功能只能由C#实现而VB实现不了?
- 紧急求助
- 求WEB多视频源码或思路
- 用于 Microsoft Office 系统的 Microsoft Visual Studio 工具,哪里有?
- 请问如何利用TcpClient提高网络访问的执行效率。
- 求助:关于网络文件传输的问题,200分,假设A是一台服务器,位于公网,有固定IP,B、C是两台位于不同局域网的客户端机器
- 静态变量static和非静态变量的区别,请指教.
- 图标提取的问题? 急!
我在web.congig文件中把
<sessionState
mode="InProc"
stateConnectionString="tcpip=127.0.0.1:42424"
sqlConnectionString="data source=(TULIP);user id=sa;password="
cookieless="false"
timeout="20"
/>data source=(TULIP),TULIP是
SQL服务器名名称,结果又出错了
An unexpected error has occurred on this page. The system administrators have been notified. Please feel free to contact us with the information surrounding this error.
The error occurred in: http://localhost/ThePhile/Default.aspx
Error Message: SQL Server 不存在或访问被拒绝。
完全可以先不改这个
把其它地方的问题找出来
mode="SQLServer"
.......
The error occurred in: http://localhost/ThePhile/Default.aspx
Error Message: SQL Server 不存在或访问被拒绝。
还是不行啊,是不是Default.aspx文件中的SQL Server中的连接有问题啊,可是看了看也没有这方面的内容
<%@ Register TagPrefix="WroxUser" TagName="SiteHeader" Src="Controls/SiteHeader.ascx" %>
<%@ Register TagPrefix="WroxUser" TagName="SiteFooter" Src="Controls/SiteFooter.ascx" %>
<%@ Register TagPrefix="Wrox" Namespace="Wrox.ThePhile.Web.Controls.Server" Assembly="ThePhile" %>
<%@ Register TagPrefix="uc1" TagName="Poll" Src="Modules/Polls2/Poll.ascx" %>
<%@ Page language="c#" Codebehind="Default.aspx.cs" AutoEventWireup="false" Inherits="Wrox.ThePhile.Web._Default" %>
<%@ Register TagPrefix="uc1" TagName="Headlines" Src="Modules/NewsManager/Headlines.ascx" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
<HEAD>
<title>Welcome to ThePhile.COM!</title>
<meta content="Microsoft Visual Studio 7.0" name="GENERATOR">
<meta content="C#" name="CODE_LANGUAGE">
<meta content="JavaScript" name="vs_defaultClientScript">
<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
<LINK href="Styles/Navigator.css" rel="stylesheet">
<LINK href="Styles/ThePhile.css" rel="stylesheet">
</HEAD>
<body>
<form id="Default" method="post" runat="server">
<WROXUSER:SITEHEADER id="Header" runat="server"></WROXUSER:SITEHEADER><br>
<table cellSpacing="4" cellPadding="2" width="100%" border="0">
<tr>
<td vAlign="top" width="100%">Greetings,<br>
<b>ThePhile.COM</b> is an example website written by Wrox
authors to illustrate the principals of design, specification, and
implementation of a content-based website in ASP.NET. This website is the
example that is built progressively in the <a href="http://www.wrox.com">Wrox Press</a>
book, <i>Professional ASP.NET Website Programming</i>.
<br>
<br>
<table style="BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-BOTTOM: #000000 1px solid" width="100%" border="0">
<tr>
<td>
<p>To get access to the admin features of this site, log in as "[email protected]"
with the password "admin".</p>
<h3>Access the modules:</h3>
<P><A href="Modules/FileManager/BrowseFiles.aspx">File Manager</A></P>
<P>Users - <A href="Modules/Users/Admin/Default.aspx">Admin</A></P>
<P>News - <A href="http://localhost/ThePhile/Modules/NewsManager/ShowHeadlines.aspx">View
Headlines</A> - <A href="http://localhost/ThePhile/Modules/NewsManager/Admin/Categories.aspx">
Admin</A></P>
<P>Advertising - <A href="Modules/AdsManager/Admin.aspx">Admin</FONT></A> - advert
displayed in the footer of this page</P>
<P>Polls - <A HREF="http://localhost/ThePhile/Modules/Polls2/Admin/Questions.aspx">Admin</A>
- current poll to the left of this page</P>
<P>Mailing Lists - <A href="http://localhost/ThePhile/Modules/Lists/Admin/Lists.aspx">Admin</A></P>
<P>Forums - <A HREF="http://localhost/ThePhile/Modules/Forums/Default.aspx">Forums</A></P>
</td>
</tr>
</table>
</td>
<td align="right">
<P>
<Wrox:Navigator id="MenuNav" SourceFile="Config/NavMenu.xml" TransformFile="Transforms/NavMenu.xslt" runat="server" /></P>
<P> </P>
<P><STRONG>Current Poll:</STRONG></P>
<P>
<uc1:Poll id="Poll1" runat="server"></uc1:Poll></P>
</td>
</tr>
</table>
<WroxUser:SiteFooter id="Footer" runat="server" /></form>
</body>
</HTML>我还把所有的.config文件中的server=CHARUL\NetSDK 改成了server=(local)\NetSDK,不知道有没有必要阿
web.congig文件里面的sqlConnectionString="data source=TULIP;
和config文件夹中的所有的config文件里面的<ConnectionString>server=(local)\NetSDK;
value="e:/wrox/ThePhile/Config/NewsManager.Config" /么
哎,实在不行是不是可以把源代码发给你看看啊
编译都没什么问题,一运行就出错
Error Message: MapPath“e:/wrox/ThePhile/Config/Polls.Config”的路径无效。应为虚拟路径。