服务器上找不到iis,.net C#应用程序找不到本地IIS服务器

I have client-server .net application, WCF communication with IIS.

During development I encountered a strange phenomenon:

Once in a while, when I run my application without debug and press a button - it seems like the server doesn't respond to the action.

Then I turn to check the same action on debug mode, and when I try to attach the service to process in oder to debug it - I can't find the w3wp.exe process, which is surely active !

But when I open the inetmgr (IIS Manager) and press Browse to the service site - suddenly the service is found in the Attach to process list on VS, and everything continues to work - with or without debug mode - as if nothing had happened.......

Does anyone experienced something similar, or have any assumption why is this happening?

I am concerned that similar incidents can affect the stability of my system.

Note: Perhaps the phenomenon above occurs after I update the client service reference, but I'm not pretty sure.

Thanks!

Solutions1

I'm not exactly if I will answer your question since it's not clear but let me put answer anyway:

I sometimes get an error in running WCF on my machine and this because I have my host running Local IIS then when I change it to IISExpress it runs without issues.

To change this, right click the project -> properties-> open web tab, locate servers and select IIS Express in dropdown. See image54149854a5131382f7a0740031f2273f.gif

To understand the difference between the two you can check: http://weblogs.asp.net/scottgu/introducing-iis-express

Talk1:

Hi. Thanks for you response. Would you be able to tell me what's the meaning of changing my server from Local IIS to IIS Express? Does it make any substantial difference? @Bayeni

Talk2:

I've added a link that will explain the difference, please check the edit

Talk3:

Well I tryed it, and it didn't work. I was have to Browse the server from IIS to make the service work. Worse, after few clicks of the GUI button it loose the server again. I wonder, maybe this is a problem of permissions?

Talk4:

That also possible, that was my 2 cent :)

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值