Cannot Access WCF members in Visual Studio 2010 -- Very Strange - visual-studio-2010

In my web application I have added WCF service which is hosted on IIS. It was all working fine until the time windows has installed the update on the my development machine, and now Visual Studio 2010 does not recognize the service reference which I have added previously.
It is giving the error as 'Type Service_Createuser is not defined'
Intellisence does not show the service reference either.
Below are the updates had installed on the machine :
KB2504637 Microsoft .Net Framework 4 Multi-Targeting Pack
Security Update for Microsoft.Net Framework 4.5.1 (KB2901126)
Security Update for Microsoft.Net Framework 4.5.1 (KB2898869)
I have removed the service reference and added again but still the same problem.
Webservice was created using .Net 3.5 and my web application is also set to .Net 3.5.
I have googled in but no luck!
Could someone please tell me what this updates has done. And how to resolve this problem.
Please let me know if you need more information. Any help will be appreciated.
Many Thanks
John

Related

Azure Service Fabric in Visual Studio - hresult : 0x80131500

I'm currently trying to work on Azure Service Fabric in Visual Studio 2015 but I have a general exception (hresult : 0x80131500) when i create a new service fabric project.
For example, I got this error when i create a stateless service project, or anything else coming from service fabric... Can't post screenshots of the process for now... Thing is that when I installed service fabric packages, there were errors (already installed package but not, couldn't access the package)...
Spent hours trying to resolve this problem, I tried to uninstall everything, to change from a version to another, I searched a lot for an answer but not found.
Maybe I didn't understand what is happening there, and maybe someone could help me !
Service Fabric Tools: 1.4
Visual Studio: 14.0.25431.01 Update 3
.NET framework: 4.6.1
UPDATE
Thank you everyone, Microsoft updated their packages, it seems that it was coming from them, i tried to reinstall packages again and it works now !
I don't know how this post can be marked as resolved, if someone could do it, it would be great !
I was able to repro this when the 3.5 .NET Framework was missing. Specifically project creation is looking for targets files under the C:\Windows\Microsoft.NET\Framework\v2.0.50727 folder triggering the exception. Need to investigate why the tooling has a dependency on the older .NEt framework.
For now to try to fix the issue, can you enable the .NET Framework 3.5 (includes .NET 2.0 and 3.0) feature in "Control-Panel->Programs and Features-> Turn Windows features on or off" and see if it also resolves the issue for you.
Microsoft updated their packages, it seems that it was coming from them, i tried to reinstall packages again and it works now !
Launch Web Platform Installer (type it in Windows run menu).
Select Microsoft Service Fabric package.
Install it, or update it.
Should work.

visual studio 2017 publish error

Using WebDeploy to publish to an Azure Web Site fails with error:
Error The target "GetCopyToPublishDirectoryItems" does not exist in the project.
Visual Studio 2017 RC - latest download
I created an empty ASP .net Core web project with 4.61 .net version
I created an empty Library with 4.61 .net version
I added the library as a dependency of the web project
I rebuilt the project
I published with web deploy - and got the error
I am using Windows 10
The same happened on a friend computer.
Any help would be greatly appreciated
Thanks
PM
Looks like this is a known issue with a fix forthcoming. The following Github issue page has several workarounds:
https://github.com/dotnet/sdk/issues/543

Strong name signature not valid for this assembly Microsoft.LightSwitch.Model.Xaml.dll

I deployed a desktop lightswitch application and my users are getting this error when they install the application:
Strong name signature not valid for this assembly Microsoft.LightSwitch.Model.Xaml.dll
This error is causing the install to fail. Does anyone know the cause of this error or where to start looking?
What happened in my case is that VS 2013 has upgraded my LightSwitch app to .net 4.5 framework. The app works ok on machines with .net 4.5 but on machines with 4.0 I get the exact same error during installation process. You can either downgrade the app to .net 4.0 or ask users to install .net 4.5.

Exception in executing publishing in VS2013

I have a asp.net web forms template with individual accounts without any modifications. When I try to publish this application to my web server I'm receiving the following error:
Exception in executing Publishing: Cannot load file or assembly 'Microsoft.VisualStudio.Web.Azure.Contracts, Version=2.0.0.0, Culture neutral, PublishKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
Has anyone else ever received this error? I'm getting the error message after I right click on my project and select 'publish'. I've done some googling but haven't found any solutions.
I'm not sure if it matters, but the version of VS I'm using is Visual Studio Professional 2013 and my webforms project is .NET 4.5
Any help or direction would be appreciated. Thanks!
You need to install Windows Azure SDK for .NET (VS 2013) by following these steps:
Go to http://www.windowsazure.com/en-us/downloads and on click the
“VS 2013 Install” link under .NET category
Download and install the Windows Azure SDK installer which uses
Microsoft’s WPI (Web Platform Installer)
http://digital.voyage/2014/03/28/exception-in-executing-publishing-error-in-vs2013/

Deploying VS2010 SP1 using .NET 4 bootstrapper

I recently updated Visual Studio 2010 to SP1 and noticed the .NET 4 framework changed from version "4.0.30319.1" to "4.0.30319.225". I was not able to locate an updated .NET 4 framework installer for "4.0.30319.225". I could only find an update exe which is used to update a particular machine. When I deploy my application now, it still uses the older pre-SP1 version of the framework.
Is there a new bootstrapper that I should be using? Are there any issues with deploying an application that is developed/tested on "4.0.30319.225" to a target machine which only has "4.0.30319.1" ?
According to a comment on Announcing Visual Studio 2010 Service Pack 1 (check page two of the comments) from Jason Zander:
There have been questions about
updates to the .NET Framework. There
is no full service pack for .NET
Framework 4. However there is an
update which you can download from
here: go.microsoft.com/fwlink. The
outline of fixes (linked from the
download page) is here:
support.microsoft.com/.../2468871.
This update is titled "Microsoft .NET
Framework 4 KB2468871". You can read
more about what is in the update on
the download page.
As I mentioned in a previous comment,
VS2010 SP1 requires this update and
will automatically install it as part
of setup.
When you build a project using VS2010
SP1, it does not force a dependency on
the update. Whether you need to
deploy the update with your client or
server application depends on your
need for the fixes in the update. You
will need to look through what it
contains to make that call.
I've personally seen no issue publishing to a server before running the update manually.
I can't speak to the bootstrapper question.

Resources