我们将asp.net网站部署到了sharepoint网站 [英] we deployed the asp.net website in to sharepoint site

查看:86
本文介绍了我们将asp.net网站部署到了sharepoint网站的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.


Parser Error Message: Value cannot be null.
Parameter name: key


Line 1:  <%@ Page language="C#" masterpagefile="~masterurl/default.master" autoeventwireup="true" inherits="Admin_Pages_LR_Khatouni, App_Web_5zbgwze-, Version=0.0.0.0, Culture=neutral, PublicKeyToken=5a087b147e650061" title="Untitled Page" meta:progid="SharePoint.WebPartPage.Document" %>
Line 2:  
Line 3:  <asp:Content ID="Content1" ContentPlaceHolderID="PlaceHolderMain" runat="Server">




我的网站还包含.resx文件.ascx文件BL(类文件),DAL(类文件)
请告诉我解决方法



在此先感谢:rose :: rose :: rose:




my website also contains .resx file .ascx file BL(class file), DAL(class file)
plese tell me the solution



Thanks in advance:rose::rose::rose:

推荐答案

在某个地方有一个使用键/值对的集合,并且作为键提供的值是null,它可能在您的代码后面,业务逻辑或数据访问层中.
没有更多信息,无法确定问题的确切位置.
Somewhere there is a collection that uses key/value pairs and the value supplied as the key is null, it could be in your code behind, business logic or data access layers.
Without more information determining the exact location of the problem is next to impossible.


请尝试在浏览器中右键单击鼠标,然后单击查看源代码",查看其中是否存在任何注释的堆栈跟踪消息. br/>
尝试修改共享点站点的web.config.找到节点< pageparserpath>并像这样修改它:

<PageParserPath VirtualPath="~/Pages/*" CompilationMode="Always" AllowServerSideScript="true" IncludeSubFolders="true" AllowUnsafeControls="true" />

.................................
属性"AllowUnsafeControls"必须设置为true.
try right click mouse in browser and click "view source", see if any commented stack trace message exist there.

try to modify the sharepoint site''s web.config. find the node <pageparserpath> and modify it like this:

<PageParserPath VirtualPath="~/Pages/*" CompilationMode="Always" AllowServerSideScript="true" IncludeSubFolders="true" AllowUnsafeControls="true" />

.................................
attribute "AllowUnsafeControls" must set to true.


这篇关于我们将asp.net网站部署到了sharepoint网站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆