WCF Publishing Wizard Beta 2 - Metadata only exception

In BizTalk R2 Beta 2, is it possible to publish to IIS using the metadata only option for a receive location which is is set up for a WCF- NetTcp binding?

Tried it a few times and get the following error:

If it is not ready yet than I won't persue but if it is something small I need to do I'd be graetful of a pointer...

This occurs browsing to the generated .svc file.

Thanks

[XmlException: Root element is missing.]
System.Xml.XmlTextReaderImpl.Throw(Exception e) +87
System.Xml.XmlTextReaderImpl.ThrowWithoutLineInfo(String res) +109
System.Xml.XmlTextReaderImpl.ParseDocumentContent() +1904085
System.Xml.XmlTextReaderImpl.Read() +38
System.Xml.XmlReader.MoveToContent() +70
System.Xml.XmlReader.ReadStartElement(String name) +22
Microsoft.BizTalk.Adapter.Wcf.Metadata.ReceiveLocationProxy.ExtractProperties(String customCfg) +124
Microsoft.BizTalk.Adapter.Wcf.Metadata.ReceiveLocationProxy.CreateRLConfig() +29
Microsoft.BizTalk.Adapter.Wcf.Metadata.MexServiceHostFactory.CreateServiceHost(String constructorString, Uri[] baseAddresses) +325
System.ServiceModel.HostingManager.CreateService(String normalizedVirtualPath) +698
System.ServiceModel.HostingManager.ActivateService(String normalizedVirtualPath) +31
System.ServiceModel.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath) +445

[ServiceActivationException: The service '/BizTalkWcfServiceABC/Service1.svc' cannot be activated due to an exception during compilation. The exception message is: Root element is missing..]
System.ServiceModel.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath) +962
System.ServiceModel.ServiceHostingEnvironment.EnsureServiceAvailableFast(String relativeVirtualPath) +419
System.ServiceModel.Activation.HostedHttpRequestAsyncResult.HandleRequest() +264
System.ServiceModel.Activation.HostedHttpRequestAsyncResult.BeginRequest() +760
System.ServiceModel.Activation.HostedHttpModuleRequestAsyncResult.BeginRequest() +178
System.ServiceModel.Activation.HttpModule.StartBeginProcessRequest(Object sender, EventArgs e, AsyncCallback cb, Object extraData) +70
System.ServiceModel.Activation.HttpModule.ProcessRequest(Object sender, EventArgs e) +195
System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +92
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +64

[2521 byte] By [BenECM] at [2008-2-26]
# 1

Yes, it is possible to publish to IIS using the metadata option, the metadata of an inproc RL (like WcfNetTcp).

Do you see any other errors in the eventlog? Are you able to view any other (external, IIS hosted) .svc successfully?

-Hanu

HanuAwasthy-Microsoft at 2007-10-2 > top of Msdn Tech,BizTalk Server,BizTalk R2 Adapters and Adapter Pack...
# 2

Thanks Hanu,

Had a look in the event log and there were some security related entries.

In the Wizard there is an option to allow anonymous access, which is off by default.

When this checked I do not get the error. Not sure why and why that error message, something to come back to perhaps.

I now get the BizTalkServiceInstance Service page with the path to WSDL. Browsing to the WSDL generates a WSDL too.

Ta.

On last related point is when I go into VS and create try to add a Service Reference to this WSDL I get an error message:

"This operation is not supported for a releative URI". However using svcutil generates the proxy and suitable .config entries. Have not investigated the VS issue further but if you know why it may be helpful.

Thanks

BenECM at 2007-10-2 > top of Msdn Tech,BizTalk Server,BizTalk R2 Adapters and Adapter Pack...
# 3

This releates to the permision level of ASPNET to handle the request.

Looking in the event log provided information and a solution.

Error (Exception displayed)

WebHost failed to process a request.

Sender Information: System.ServiceModel.ServiceHostingEnvironment+HostingManager/11809597

Exception: System.ServiceModel.ServiceActivationException: The service '/BizTalkWcfServiceABC/Service1.svc' cannot be activated due to an exception during compilation. The exception message is: Root element is missing.. > System.Xml.XmlException: Root element is missing.

Prior Warning

Access denied. The client user must be a member of one of the following accounts to perform this function.

SSO Administrators: SSO Administrators

SSO Affiliate Administrators: SSO Affiliate Administrators

Application Administrators: BizTalk Server Administrators

Application Users: -

Additional Data: MACHINEA\ASPNET {B7B461CA-A6C1-4F26-9541-4EA06F064519} WCF-NetTcp_RL_BizTalkServerApplication_{B7B461CA-A6C1-4F26-9541-4EA06F064519}

The anonymous option in the publication Wizrad above was a red-herring.

BenECM at 2007-10-2 > top of Msdn Tech,BizTalk Server,BizTalk R2 Adapters and Adapter Pack...