service-reference

VS2010 Updating Service Reference *crazy* Slow (like 5 minutes)

回眸只為那壹抹淺笑 提交于 2019-12-01 02:31:27
问题 our team is starting to dread updating the service references in our solution because it's a 5+ minute investment. Everything is localhost inside Visual Studio's web server. My question is - how can I debug what this problem is? It works fine once it is over, but the long delay is crazy. If I had a clue where to look, perhaps I could resolve this. 回答1: With VS2012, I ran into the same issue: it took me almost 10 minutes just to update one service reference. I just managed to fix this by re

Including a service reference from a class library

不想你离开。 提交于 2019-11-30 22:28:22
问题 I have a C# class library and a startup project (a console app). The class library includes a service reference to a web service. When I try to run the project, I get an InvalidOperationException because the startup project isn't reading the class library's app.config, and it's ignoring the service reference. To get it working, I'm forced to add the same service reference to the startup project. Is there any way I can avoid this? Can I make the startup project recognize the class library's

WCF common types not reused

青春壹個敷衍的年華 提交于 2019-11-28 21:25:42
Hint: This questions has many duplicates, but none of the solutions works for me. What I have is a web service and a client, both having references to a shared assembly "DataModel". I'm creating the service proxy using the "Add service reference..." dialog and select "Reuse types in all referenced assemblies", but still it creates new types instead of reusing mine. It used to work, but now suddenly it's not reusing types anymore Referencing the shared assembly before adding the service reference does not work Restarting VS2010 does not help (I have all updates) I tried with a simple POCO class

Version-control: svcmap, disco, xsd, wsdl, svcinfo and datasource files

旧巷老猫 提交于 2019-11-28 08:59:30
We have a webservice named, let's say Foo. So there is a Foo.svc file and a code behind Foo.svc.cs. We add a silverlight project and wish to use the Foo.svc services so we add a Service Reference and call it's namespace FooBar. This creates the following files : Reference.cs Reference.svcmap Foo.xsd Foo.disco configuration.svcinfo Foo.wsdl Also various *.datasource files. Over time we update the Foo.svc and add more Web Services (methods and interfaces) and the number of files in the FooBar directory is growing. I have 26 Foo(nn).xsd files in this directory - where nn = 1 to 26. My

What are the WCF Service Reference .datasource files?

懵懂的女人 提交于 2019-11-27 12:57:54
What are the .datasource files that are automatically generated by "Create Service Reference" in Visual Studio? The comment in the file is this: This file is automatically generated by Visual Studio .Net. It is used to store generic object data source configuration information. Renaming the file extension or editing the content of this file may cause the file to be unrecognizable by the program. However, it sounds like these files are optional, so I'm wondering what they are used for. I'm also wondering if it is truly safe to delete them, since they often cause path length problems on XP. http

Service Reference Error: Failed to generate code for the service reference

被刻印的时光 ゝ 提交于 2019-11-27 06:09:15
I have a Windows Service Solution and am trying to add a service reference to a Hermes(Opensource ebms message server) Web Service in VS2010. I can find the Web Service using it's URL, but when I try and populate the Service reference I get the following errors in Visual Studio: Error 8 Custom tool error: Failed to generate code for the service reference 'testService'. Please check other error and warning messages for details. C:\Users\Admin\documents\visual studio 2010\Projects\MyProject\MyProject.MessageHandler\Service References\testService\Reference.svcmap 1 1 MyProject.MessageHandler

How to generate service reference with only physical wsdl file

对着背影说爱祢 提交于 2019-11-27 03:24:44
I have been creating and consuming web services for years and always have been able to use Visual Studio to create a service reference from the client. I have a third party service I need to work with and they refuse to open their security so I can see the wsdl and make the service reference. It's a public facing service so I don't see the need for that level of security but it is what it is. I know this is a n00b question and I'm ashamed to be asking it, but how do I do create the equivalent Service Reference information in my client when all I have available to me is a physical copy of the

How to generate service reference with only physical wsdl file

余生长醉 提交于 2019-11-26 12:23:37
问题 I have been creating and consuming web services for years and always have been able to use Visual Studio to create a service reference from the client. I have a third party service I need to work with and they refuse to open their security so I can see the wsdl and make the service reference. It\'s a public facing service so I don\'t see the need for that level of security but it is what it is. I know this is a n00b question and I\'m ashamed to be asking it, but how do I do create the

Service Reference Error: Failed to generate code for the service reference

懵懂的女人 提交于 2019-11-26 11:53:38
问题 I have a Windows Service Solution and am trying to add a service reference to a Hermes(Opensource ebms message server) Web Service in VS2010. I can find the Web Service using it\'s URL, but when I try and populate the Service reference I get the following errors in Visual Studio: Error 8 Custom tool error: Failed to generate code for the service reference \'testService\'. Please check other error and warning messages for details. C:\\Users\\Admin\\documents\\visual studio 2010\\Projects\

What does this WCF error mean: “Custom tool warning: Cannot import wsdl:portType”

三世轮回 提交于 2019-11-26 10:16:48
问题 I created a WCF service library project in my solution, and have service references to this. I use the services from a class library, so I have references from my WPF application project in addition to the class library. Services are set up straight forward - only changed to get async service functions. Everything was working fine - until I wanted to update my service references. It failed, so I eventually rolled back and retried, but it failed even then! So - updating the service references