was

BadImageFormatException encountered with WcfSvcHost and IIS WCF host

白昼怎懂夜的黑 提交于 2019-12-01 20:49:37
Creating a WCF Service Library in Visual Studio 2008 on Vista x64 is troublesome when referencing an x86 DLL. A service that calls a 32-bit DLL is required to have a platform target of x86 to run on a 64-bit OS. When you do this, the WcfSvcHost throws a BadImageFormatException when you attempt to debug the service. There is a bug report on MS connect. The workaround I used was to coreflag WcfSvcHost as 32-bit . Manifest Problem The main issue I've run in to is this third-party native 32-bit DLL fails to load using certain WCF hosts. I receive the following error when a service operation is

Getting “Unrecognized error 109 (0x6d)” which can be “fixed” by changing web.config

五迷三道 提交于 2019-12-01 04:23:43
I have a WCF service hosted in IIS using WAS. When I try to access this service using a net.tcp binding I get the following error: There was an error reading from the pipe: Unrecognized error 109 (0x6d). When using basicHttp I do not encounter the problem. The strange thing is that I can "fix" the problem by randomly changing the web.config and saving it. The problem just vanishes until I do an IISReset or an Application Pool Recycle. It is then broken again until I change (or just save) the web.config again... I have enabled tracing but that just gives the unrecognize error. Rebooting doesn't

Getting “Unrecognized error 109 (0x6d)” which can be “fixed” by changing web.config

邮差的信 提交于 2019-12-01 01:59:02
问题 I have a WCF service hosted in IIS using WAS. When I try to access this service using a net.tcp binding I get the following error: There was an error reading from the pipe: Unrecognized error 109 (0x6d). When using basicHttp I do not encounter the problem. The strange thing is that I can "fix" the problem by randomly changing the web.config and saving it. The problem just vanishes until I do an IISReset or an Application Pool Recycle. It is then broken again until I change (or just save) the

what is the global.asax Application_Start equivalent when using WAS in IIS7

放肆的年华 提交于 2019-11-27 12:20:52
I'd like to use the netTcpBinding for my WCF application which is currently hosted in IIS7, which means configuring it to use WAS instead. This is fairly straight forward however, my application previously made use of the Application_Start event in the global.asax file. I do not require access to the httpContext(which I understand access has been removed in IIS7), however I would still like to hook into the start or init methods? Does an equivalent exist when hosting an application in WAS as apposed to IIS7? Using classic mode is not an option(again I'm not interested in the httpcontext and

IIS WCF service hosting vs Windows Service

限于喜欢 提交于 2019-11-26 19:42:33
We developed a WCF service and we're looking to deploy it. Our clients will be using it with basicHttpBinding but our internal team will be using it with namedPipesBinding . We are wondering if is it better to host it in IIS 7 or with a Windows Service. We ran some tests and we found out that when we're adding bindings in IIS, it doesn't update config file of our service. That means that we would need to maintain the configuration in two different places. It's not logical, right? We also read on StackOverflow that the base address is ignored when a WCF service is host in IIS (see WCF service

IIS WCF service hosting vs Windows Service

守給你的承諾、 提交于 2019-11-26 07:23:40
问题 We developed a WCF service and we\'re looking to deploy it. Our clients will be using it with basicHttpBinding but our internal team will be using it with namedPipesBinding . We are wondering if is it better to host it in IIS 7 or with a Windows Service. We ran some tests and we found out that when we\'re adding bindings in IIS, it doesn\'t update config file of our service. That means that we would need to maintain the configuration in two different places. It\'s not logical, right? We also