发生意外错误

发布于 2024-08-16 07:53:51 字数 713 浏览 5 评论 0原文

我已经在本地计算机上创建了一个 asp.net Web 应用程序,并将其部署到 sharepoint。为此,我参考了以下

在 Windows SharePoint Services 3.0 _layouts 文件夹中部署 ASP.NET Web 应用程序 [http://msdn.microsoft.com/en-us/library/ cc297200.aspx]

它在我的本地计算机上运行完美,但是当我尝试在客户端计算机上部署相同的内容时,它给了我“发生了意外错误。”错误。

情况是,我的客户端计算机上没有安装 Visual Studio,所以我所做的只是将我的解决方案文件夹与 bin 文件夹一起复制到 12'hives LAYOUT 文件夹中。然后,当我尝试通过点击 URL

http://[machineName]/ 来访问它时_layouts/[MyCustomFolder]/default.aspx 它给了我上面提到的错误。

谁能帮我解决这个问题..? 预先感谢..

萨钦

I have created an asp.net web application on my local machine and I am deploying it to sharepoint. For that I am refereing the following

Deploying ASP.NET Web Applications in the Windows SharePoint Services 3.0 _layouts Folder
[http://msdn.microsoft.com/en-us/library/cc297200.aspx]

Its works perfect on my local machine but when I was trying to deploy the same on clients machine it was giving me the "An unexpected error has occurred." Error.

The scenario is, There is not visual studio install on my clients machine so what I was doing is I simply copying my solution folder in 12'hives LAYOUT folder along with the bin folder. Then when I was try to access it by hitting the URL

http://[machineName]/_layouts/[MyCustomFolder]/default.aspx it was giving me the error mention above.

Can anyone help me to solve this issue..?
Thanks in advance..

Sachin

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

东北女汉子 2024-08-23 07:53:51

意外错误可能是什么,您需要查看错误的根本原因是什么,

  1. 打开 IIS SharePoint 网站的 Web.Config 文件
  2. 搜索 CallStack 并将其更改为 CallStack="true"
  3. 搜索 CustomError 并将其更改到 CustomError="Off"
  4. 浏览该页面您将了解导致错误的实际问题
  5. 您自己可以纠正它,它可能就像缺少 dll 一样简单

Unexpected error might be anything, You need to see what is the root cause of the Error,

  1. Open the Web.Config file of the IIS SharePoint WebSite
  2. Search for the CallStack and change it to CallStack="true"
  3. Search for the CustomError and change it to CustomError="Off"
  4. Browse the page you will get to know the actual issue that causes the error
  5. You yourself can rectify it , it might be as simple as missing dll
贱贱哒 2024-08-23 07:53:51

尝试查看日志文件,将日志记录级别设置为最大,以确保您看到共享点对您的页面的说明。

为此,如果您有权访问服务器:

  • 打开 SharePoint Central Admin
  • ,转到“操作”选项卡,选择“诊断日志记录”,
  • 选择类别“全部”并将跟踪日志级别更改为“详细”,保存更改
  • 重置 IIS 服务器(对于干净实验的目的)
  • 打开 \\server\c$\Program Files\Common Files\Microsoft Shared\web server extensions\12
    日志
    并按修改日期排序
  • 尝试在/_layouts文件夹中加载您的网页,再次看到错误
  • 打开您可以看到的最新日志文件并搜索[MyCustomFolder]名称

然后发布错误消息这里。

Try to watch the logfiles, set logging level to maximum to be sure you see what sharepoint says about your page.

To do that, if you have access to the server:

  • open SharePoint Central Admin
  • go to Operations tab, select "Diagnostic logging"
  • select category 'All' and change the trace log level to 'Verbose', save changes
  • reset IIS server (for the purpose of a clean experiment)
  • open \\server\c$\Program Files\Common Files\Microsoft Shared\web server extensions\12
    logs
    and order by modification date
  • try to load your webpage in /_layouts folder, see the error again
  • open the newest logfile you can see and search for [MyCustomFolder] name

Then post the error message here.

哭泣的笑容 2024-08-23 07:53:51

意外错误可能有多种原因。

转到 C:\inetpub\wwwroot\wss\VirtualDirectories\80

打开 Web.Config

更改

<SafeMode MaxControls=”200″ CallStack=”false”

<SafeMode MaxControls=”200″ CallStack=”true”

关闭自定义错误

<customErrors mode=”Off”/>

An unexpected error can have multiple reasons.

Go to C:\inetpub\wwwroot\wss\VirtualDirectories\80

Open Web.Config

Change

<SafeMode MaxControls=”200″ CallStack=”false”

to

<SafeMode MaxControls=”200″ CallStack=”true”

Turn off custom errors

<customErrors mode=”Off”/>
絕版丫頭 2024-08-23 07:53:51

我知道这是一个老问题,但对我来说,解决方法是从 IIS 停止并重新启动 SharePoint Web 应用程序。

I know that is an old question but for me the fix was to stop and start again the SharePoint Web Application from IIS.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文