I was converting a program to Windows 10 and went to add the 'Service Reference' and then goto Advanced and then select ASMX but that option no longer exists.
Is there some easy way to get around this restriction ?
Related
I'm trying to create a Portable Class Library. It will support .Net 4.51 & Windows Store apps.
For some reason the option to Generate Task-Based Operations is disabled. Yet both .Net 4.51 & WIndows Store apps support this.
There is a connect issue open as will not resolve and the work around doesn't work or isn't something we would want if it did.
Questions
1) Is there a svcutil for Windows Store Apps? (Add Service Reference from a Windows STore app and trying to shoehorn it into a PCL isn't what we're looking for.)
2) Is there a way to prevent svcutil from implementing IExtensibleDataObject?
Thanks
I opened C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE
I added http://localhost:44652/MyService.svc
It says added successfully but I see absolutely nothing in the test client, it looks the same as if I first opened it.
Not sure why it would do that. Here's my PC setup:
Windows 7 64 bit
VS 2012
WCF 4
I am using WebGet and WebInvoke for the REST portion but we want to also support wsdl
Web endpoints (aka REST) do not expose metadata that the WCF Test Client can understand. There's a similar issue discussed here.
1) Please go to your browser and go to
http://localhost:44652/MyService.svc
You should see a web page that says "There is a service here."
2) Then you can use advanced rest service client by google chrome to test your service
Maybe a version thing, but I got this to work in VS 2017 as follows:
Highlight the appropriate svc.cs for the REST service in Solution Explorer.
Start debugging (F5).
When WCF Test Client pops up, if you still don't see methods listed there, remove (temporarily) any REST <service> elements from web.config and then try again. Reportedly, WCF Test Client does not work with the webHttpBinding that might be present in the <service> element. Removal is not really a solution, but perhaps a good workaround for some scenarios where a quick test is needed.
I have created an application which has a client (WPF) and the Server (WCF), the service is IIS hosted, currently I am having to have 2 versions of vs 2010. One loads the wcf service in IIS and the other in my windows application.
The problem with this is it takes so much resources.
It appears if the wcf service is "NOT" hosted in IIS then I can start two projects at the same time according to this http://msdn.microsoft.com/en-us/library/bb157685.aspx
But what are my other options?
I need to find the best way of being able to compile / run the 2 projects and able STEP INTO each when when in debug, without using too many resources or having more than one vs 2010 open at the same time.
You should be able to debug both from the same instance of Visual Studio if they are in the same solution. When you run your application from Visual Studio, open the Debug menu and choose Attach To Process, you need to attach the debugger to the ASP.NET worker process (aspnet_wp.exe), it should automatically attach to your client.
Open service and client code in VS. Open Debug menu. Attach to process. Hold the Ctrl key and select as many processes as you want to debug using Mouse click.
In your case, you can select the ASP NET worker process depending on the version of IIS and the client process.
The easiest way to debug your WCF service is to:
Right click on project containing svc file.
Select Set as Startup project.
Put a breakpoint on the methods you want to debug.
Breakpoint should be Red.
Make sure your app config file is pointing to the debug WCF service version that's currently running, ex:
http://localhost:12345/MyService.svc
Run your app.
When the app calls that WCF method, it should stop on breakpoint.
I have an ASP.net web service sitting on a server, and I have verified that it works properly via a small test client app in VS.
I went to add it in MonoDevelop to my MT application, (Trying both the ASP.net 2.0 and WCF declarations). Inside the "Add Web Reference" wizard, it finds the web service fine. But when I go to reference it, the app doesn't know it exists.
I went to look at it, and it seems when adding it, the namespace it's assigning to it is the title of my solution (which has spaces in it), but the namespace for each of my .cs files within my app contains no spaces.
Web Service Namespace (that it wont let me change): Ultimate GameDay 2011
MT Application Namespace: UltimateGameday2011.
So I manually went into the reference.cs file and took out the spaces. The app classes then saw my web reference object, but it still won't allow me to access any of its members.
Any help would be greatly appreciated.
Check out the following link http://merbla.blogspot.com/2011/03/monotouch-with-json-using-aspnet-mvc.html
Its not a fix to your problem rather a method of creating web services that MonoTouch more easily works with. In my experience ASMX and WCF services have been problematic when consuming in a Monotouch app.
If all else fails, try using the Silverlight service utility located in your programs folder
e.g. C:\Program Files (x86)\Microsoft SDKs\Silverlight\v4.0\Tools\SlSvcUtil.exe
Currently I'm running several websites that have several (branded) duplicates each, in the same IIS.
I wanted to have an easy overview of all the website groups so I used a naming convention like [siteName].[brandCode].
But lo and behold, IIS has its very own (seemingly random) way of ordering the entries in the "Web Sites" folder.
Any suggestions
(and yes, I use different application pools, but that's not what I'm aiming for)
You'll need to edit the IIS Metabase to reorder those. I can't remember if theres a tool to do it in IIS6 but you can use MetaEdit for IIS7 so that might be backwards compatible.
If not, the metabase is just an XML file so you can hand edit it (take a backup first) in notepad.
as you are running IIS6, Install IIS6 Resource Toolkit and run Metabase Explorer, did the trick for me
I always click on the "Web Sites" folder in IIS Manager and sort the list in the right panel by description.
I think there is no other option.