我创build了一个小型.Net 4.0网站,并将其作为IIS v7中的单独网站(现在使用端口8008)安装在我的SharePoint服务器上。 我不得不安装.Net 4框架,build立数据库等,这一切顺利,我的应用程序作为一个独立的网站。
现在我试图从我的网站页面显示在SharePoint 2007中。由于各种原因(SharePoint网站正在使用SSL,安全等),我现在需要移动我的.Net应用程序在SharePoint 2007网站下运行IIS。 我已经将它添加为“应用程序”,并将其设置为与作为独立站点设置的相同的.Net v4应用程序池和设置。
现在,当我尝试访问应用程序时,我得到了这个描述结尾处的错误。 任何帮助将不胜感激。 我已经试过按照这个post的说明:
http://blogs.msdn.com/sgoodyear/archive/2007/05/07/custom-web-applications-coexisting-with-sharepoint-2007.aspx
但是这并没有帮助。
这里是错误的详细信息:
Log Name: Application Source: ASP.NET 4.0.30319.0 Date: 11/05/2010 11:49:31 AM Event ID: 1310 Task Category: Web Event Level: Warning Keywords: Classic User: N/A Computer: GGI-SP1.ggi.ca Description: Event code: 3008 Event message: A configuration error has occurred. Event time: 11/05/2010 11:49:31 AM Event time (UTC): 11/05/2010 3:49:31 PM Event ID: 559d7ac619344f3499a4a31c6c9e58cd Event sequence: 1 Event occurrence: 1 Event detail code: 0 Application information: Application domain: /LM/W3SVC/1653978112/ROOT/bidmonitor-1-129180665715766107 Trust level: Application Virtual Path: /bidmonitor Application Path: C:\inetpub\wwwroot\bidmonitor\ Machine name: GGI-SP1 Process information: Process ID: 5272 Process name: w3wp.exe Account name: NT AUTHORITY\NETWORK SERVICE Exception information: Exception type: ConfigurationErrorsException Exception message: Could not find permission set named 'ASP.Net'. at System.Web.Hosting.ApplicationManager.CreateAppDomainWithHostingEnvironment(String appId, IApplicationHost appHost, HostingEnvironmentParameters hostingParameters) at System.Web.HttpRuntime.HostingInit(HostingEnvironmentFlags hostingFlags, PolicyLevel policyLevel, Exception appDomainCreationException) Request information: Request URL: gginet.ggi.ca/bidmonitor Request path: /bidmonitor User host address: 10.10.1.33 User: Is authenticated: False Authentication Type: Thread account name: NT AUTHORITY\NETWORK SERVICE Thread information: Thread ID: 3 Thread account name: NT AUTHORITY\NETWORK SERVICE Is impersonating: False Stack trace: at System.Web.HttpRuntime.HostingInit(HostingEnvironmentFlags hostingFlags, PolicyLevel policyLevel, Exception appDomainCreationException)
正式的,我不认为这个configuration是受支持的。 请参阅ASP.Net 4中断更改白皮书。
非正式的,你应该能够通过改变web.config文件中的信任级别从WSS_Minimal到Full来解决这个问题。 不过这不推荐 。