应该在default.aspx的page_load事件中加载的
解决方案 »
- gridview查询出的记录如何打印?
- 怎么在asp.net的后台编写代码:获取页面CheckBox的值?
- CS1010: 常量中有换行符?? 不知道哪里错了 希望高手帮忙
- 存储过程返回值问题
- 被频繁访问的页面如何提高性能的问题?[欢迎大家探讨]
- 循环问题;
- 關於IList<t>在datalist中的分頁問題
- |M| 我想在我的网站上用XmlHttp+Ajax做像[商务通]一样的功能实现点对点聊天,大家给个编程思想; 谢谢
- [求助]在OWC11中如何自定义Y轴上的数值??在柱图表中如可改变他的百份比????
- 传递汉字的问题,怎么只能传递两个汉字呢?多了就不行了。
- 软件资格考试有用没,和微软的、思科比那个更有用点
- timeout="20" 是20分,还是20秒,还是20个小时,,
只是 一个简单加载
这个 是 调用 了
已经 做好 的用户 控件
直接放在 主页面上!
<%@ Page %>
<%@ import Namespace="ASPNET.StarterKit.Communities" %>
<html>
<head>
<title>Community Starter Kit CSSDK 1.0</title>
</head>
<body>
<form runat="server">
<div style="FONT: 12pt Arial; WIDTH: 600px">No community is configured for <%=Request.Url.Host%>.
<p>
</p>
If this is the first page that you see after installation, then installation has failed.
Here are some things to check:
<ul>
<li>
<b>The Community Starter Kit must be installed within its own virtual directory</b>
<br />
Open the Internet Services Manager from Start, Settings, Control Panel, Administrative
Tools, Internet Services Manager and confirm that there is a virtual directory configured
for <%=Request.Path%>.
<br /> <br />
</li>
<li>
<b>A community must be configured for the domain <%=Request.Url.Host %></b>
<br />
Click <a href="ISPAdmin/Default.aspx">here</a> to configure a community for <%=Request.Url.Host%> with
the ISP Admin page.
</li>
</ul>
Finally, if all else fails, rerun the Community Starter Kit Setup Wizard located at
Start, Programs, ASP.NET Starter Kits, Community Starter Kit, Community Starter Kit
Setup Wizard.
<br />
<br />
For additional help, visit the Community Starter Kit forum at <a href="http://www.ASP.net/Forums/default.aspx">www.ASP.net/Forums</a>.
</div>
</form>
</body>
</html>
先試樓上幾位的方法,
如果還不行的話你試下自已建個需目錄,
隻丟個html文件進去.
如果還出現你說的情況的話,那就是IIS設置的問題..
進IIS ---> 預設網站(右鍵-->內容)-->文件--> 最下面...
看你是不是鉤選了" 啟用文件尾"..
你把 webconfig 裡的... <pagePaths>
<add key="basePage" value="/communityDefault.aspx" />
<add key="baseService" value="/communityService.asmx" />
</pagePaths>去掉試試
IIS設置沒問題
去掉那兩行就找不到資源了。但為什么呢?
所有的源碼都有﹐但為什么就是找不到頁面在哪個cs文件﹑哪個aspx文件或是用戶自定義控件里呢???
'/communityStarterKit' 應用程式中發生伺服器錯誤。
--------------------------------------------------------------------------------剖析器錯誤
描述: 當剖析服務此要求所需的資源時發生錯誤。請檢閱下列的特定剖析錯誤詳細資訊,並且適當地修改您的原始程式檔。 剖析器錯誤訊息: 無法載入型別 'ASPNET.StarterKit.Communities.WebForm111'。原始程式錯誤:
行 1: <%@ Page language="c#" Codebehind="WebForm111.aspx.cs" AutoEventWireup="false" Inherits="ASPNET.StarterKit.Communities.WebForm111" %>
行 2: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
行 3:
但那些相關的服務器控件(.cs文件)都可以看到源碼啊