使用机器名可以正常访问,但使用IP地址就不行了!解决方法
发布时间:2011-06-23 14:39:37 文章来源:www.iduyao.cn 采编人员:星星草
使用机器名可以正常访问,但使用IP地址就不行了!
奇怪了,使用机器名可以正常访问,但使用IP地址就不行了!
在Web项目中,用到了InfoPath,用了Microsoft SharePoint,ASP.NET的State Menagement中,Session state mode使用是SQLServer
使用机器名可以正常访问,但是使用IP地址就出现以下错误信息
Server Error in '/ ' Application.
--------------------------------------------
Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[NullReferenceException: Object reference not set to an instance of an object.]
Microsoft.Office.Server.Administration.SqlSessionStateResolver.System.Web.IPartitionResolver.ResolvePartition(Object key) +77
System.Web.PartitionManager.GetPartition(IPartitionResolver partitionResolver, String id) +244
System.Web.SessionState.SqlSessionStateStore.GetConnection(String id, Boolean& usePooling) +52
System.Web.SessionState.SqlSessionStateStore.SetAndReleaseItemExclusive(HttpContext context, String id, SessionStateStoreData item, Object lockId, Boolean newItem) +178
System.Web.SessionState.SessionStateModule.OnReleaseState(Object source, EventArgs eventArgs) +355
System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +92
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +64
--------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42
请高手给予指点啊!谢谢了!
------解决方案--------------------
如果可以使用机器名或者localhost可以访问,例如:http://localhost/...
想改为IP访问。
1.打开IIS,找到文件目录,右键-> 所有任务-> 权限向导-> 下一步....都点Yes;
2.防火墙-> 高级--> 本地连接--> 设置--> web服务器(http),打勾,即可!
------解决方案--------------------
SharePoint网站可以在外网访问,通过备用访问映射就可以做到。
如果能PING通IP却PING不通机器名,那就是DNS域名解析的问题,
可以通过修改etc\hosts文件解决。
------解决方案--------------------
楼主,按下面的做法试试
1.打开IIS,找到文件目录,右键-> 所有任务-> 权限向导-> 下一步....都点Yes;
友情提示:
信息收集于互联网,如果您发现错误或造成侵权,请及时通知本站更正或删除,具体联系方式见页面底部联系我们,谢谢。
其他相似内容:
-
c# 类库打包成COM类型库时在vs命令行怎么写
类库打包成COM类型库(在vs命令行中怎么写啊)
路径和格式怎么写?
假如路径是:F:\netTest...
-
int
c#里的int是多少位???????
------解决方案--------------------
int 的值用 31 位来表示,第三十二位为符号位。,其范围从负 2,147,483...
-
求各位大侠帮个忙
做的是一个项目经理评分系统
如何把第一个窗体点击的人的信息显示到第二个窗体里面
------解决方案---------...
-
【asp.net三层怎样入手学习开发?】
我现在搞asp.net都是面向过程的.没有分层
请问怎样做到 mvc ??真正的面向对象的开发??
请问...
-
.net framework 2.0 service pack 1 无法卸载,怎么办
总是提示说安装是发生严重错误,并且说it will affect other application that...
-
Message.Show()的窗体美化
每次弹出的窗口都是那么的单调有没有什么方法能换一下弹出窗体的颜色或者是插一张图片
------解决方...
-
安装vs2010出错,求老师解答!!!
rt
安装vs2010是出错
C:\Users\Administrator\AppData\Local\Temp\SIT32027.tmp\deffactory...
-
怎么做一个转盘出来啊,请教各位大虾
在ASP.NET的页面中怎么弄一个转盘出来啊?
------解决方案--------------------
什么转盘
---...
-
jquery each遍历赋值不上呢
<ul id="myul">
<li><a id="2258">第一个</a></li>
<li><a id="2258">第二个</a></li>
<li>...
-
C#发布问题
这个是怎么回事啊
我在那个debug下面有那个DevExpress.XtraLayout.v9.1.dll这个了 为什么还是报这个错
------解决...