I'm trying to get started on WCF using VS Studio 2012 Express for Web 32bit on a Win7 x64 machine. THe debugger is supposed to launch wcfsvchost.exe to test out my WCF service, but this file is nowhere on my machine. I have tried re-installing VS 2012 and updating to Update 3 but still no sign of this exe on my machine. I cannot find any info on the net indicating this utility is not provided with the Express version of VS.
Any help on what I am missing greatly appreciated.
You need to set few things in the WCF project Properties in order to open the WCFService test Client.
Project-> Right Click -> Debug -> Chooose Start Project radio Button.
and set the following parameter in commandlike argument.
/client:"WcfTestClient.exe"
Related
We are attempting to upgrade our rather old TFS environment from TFS2008 to TFS2015. The upgrade of the server and database is not a problem and is fine.
The issue is our build machine. This is still a Windows 2003 Server that is running Visual Studio 2010 and VB6. We still have a need to use this build machine to build legacy VB6 projects. We have installed the TFS2010 XAML build controller on this server and successfully connected it to our test TFS2015 server. However when we try to run a Xaml build, (any Xaml build regardless of whether it builds VB6 or .NET) we get the following error message almost straight away.
TF900560: Could not start build: Cannot set unknown member 'Microsoft.TeamFoundation.Build.Workflow.Activities.TfsBuild.TargetsNotLogged'.
The XAML build are using the 'UpgradeTemplate.xaml' template and using the TFSBuild.proj we used under Visual Studio 2010.
We have a also set up a TFS2015 build controller on another (Server 2012) machine and that successfully starts the build process. However, our VB6 projects use a lot of third party components that will not install on Server 2012 so we can't use that.
Has anyone ever set up this kind of arrangement before? Is there anything we are missing or are doomed in this scenario? Obviously, we'd like to move away from VB6 apps, but that is not possible in the medium term.
Pieces of the puzzle:
Windows 7
.NET Framework 4.5 (installed)
IIS 7(Version 7.5.7600.16385)
Visual Studio (Ultimate 2013)
MVC4 (multiple projects in the solution)
The solution I'm running in Visual Studio works and runs as expected with IISExpress.
To set up my site to use IIS, I tried the following steps:
Right-click the projects in the solution that are currently being hosted by IISExpress.
Click Properties.
Toggle the Servers drop-down from IISExpress to Local IIS
Try to build/run the application
At this point, I get an HTTP 500.21 error.
I have also tried to run aspnet_regiis.exe -i using Visual Studio's command prompt (as an Administrator), but each time I run the command, I receive the following error:
Command 'aspnet_regiis.exe' is not valid.
I also confirmed that I do have the right aspnet_regiis.exe installed (by checking here) (.NET Framework version 4 (64-bit systems)).
What do I need to do to register .NET Framework 4.5 in IIS 7.5?
You can find the aspnet_regiis in the following directory:
C:\Windows\Microsoft.NET\Framework64\v4.0.30319
Go to the directory and run the command form there. I guess the path is missing in your PATH variable.
Hosting asp.net 4.5/4.5.1 Web application on Local IIS
1)Be Sure
IIS Installation before Visual Installation Installataion then aspnet_regiis will already registerd with IIS
If Not Install IIS and then Register aspnet_regiis with IIS by cmd Editor
For VS2012 and 32 bit OS Run Below code on command editor :
1)Install IIS First & then
2)
cd C:\Windows\Microsoft.NET\Framework\v4.0.30319
C:\Windows\Microsoft.NET\Framework\v4.0.30319> aspnet_regiis -i
For VS2012 and 64 bit OS Below code on command editor:
1)Install IIS First & then
2)
cd C:\Windows\Microsoft.NET\Framework64\v4.0.30319
C:\Windows\Microsoft.NET\Framework64\v4.0.30319> aspnet_regiis -i
BY Following Above Steps Current Version of VS2012 registered with IIS
Hosting (VS2012 Web APP)
Create VS2012 Web Application(WebForm/MVC) then Build Application
Right Click On WebApplication(WebForm/MVC) go to 'Properties'
Click On 'Web' Tab on then 'Use Local IIS Web Server'
Then Uncheck 'Use IIS Express'
(If Visul Studio 2013 Select 'Local IIS' from Dropdown)
Provide Project Url like "http://localhost/MvcDemoApp"
Then Click On 'Create Virtual Directory' Button
Then Open IIS by Prssing 'Window + R' Run Command and type 'inetmgr' and 'Enter' (or 'OK' Button)
Then Expand 'Sites->Default Web Site' you Hosted Successfully.
If Still Gets any Server Error
like 'The resource cannot be found.'
Then Include following code in web.config
<configuration>
<system.webServer>
<modules runAllManagedModulesForAllRequests="true"></modules>
And Run Application
If still problem occurs
Check application pool by : In iis Right click on application->Manage Application->Advanced setting->General. you see the application pool.
then close advance setting window.
click on 'Application Pools' you will see the all application pools in middle window.
Right click on application pool in which application hosted(DefaultAppPool).
click 'Basic Setting' -> Change .Net FrameWork Version to->.Net FrameWork v4.0.30349
For Windows 8 and Windows Server 2012 use dism /online /enable-feature /featurename:IIS-ASPNET45
As administrative command prompt.
I got into this mess twice and after searching long and hard and following what others did absolutely nothing worked for me but to uninstall and install IIS back once on Windows 7 machine and then on Windows server 2012 R2.
use .NET3.5 it worked for me for similar issue.
Please pardon a newbie's question about MS TFS and Visual Studio 2012, I hope I'm using the correct vocabulary.
Our shop has recently moved to MS TFS and Visual Studio 2012 to build internal web services for integration. Currently we have a TFS 2010 Server running on Server2008R2 and a Build server on a Windows 7 box, our dev application server is also running Server2008R2. I have been given the job of getting a nightly build and deployment running. I have the build definition working but the deployment portion is not functioning. I have installed Web Deploy on both the dev application server and the build server as per these articles:
http://www.kevingao.net/version-control/how-to-auto-deploy-web-application-with-tfs-build-server.html
and
http://www.iis.net/learn/install/installing-publishing-technologies/installing-and-configuring-web-deploy
We have configured an user, web_deploy_dev in active director and that user is a local admin on the dev app server.
The parameters added to the build definition are:
/p:DeployOnBuild=True
/p:DeployTarget=MsDeployPublish
/p:MSDeployServiceURL="https://PA-APPSRV1-DEV:8172/msdeploy.axd" /* double quotes not in original code */
/p:DeployIISAppPath="DW/DWServices" /* E:\Webroot\DW\DWServices */
/p:CreatePackageOnPublish=True
/p:MsDeployPublishMethod=WMSVC
/p:AllowUntrustedCertificate=True
/p:UserName=migp\web_deploy_dev
/p:Password=******
I suspect that MSBUILD is not even calling msdeploy.exe as I see no errors in the windows event and application logs, but I do not know all the places to look. I can use a web browser and connect to the service on the dev app server as the web_deploy_dev user from the build server, I receive a web page not found error after inputting user name and PW, but I assume that is to be expected.
I am at a loss as to where to look next, I've tried searching the web but nothing I try seems to work.
Thank you in advance for your help and input.
Roy
It sounds like you are experiencing a problem where your build completes and claims success, but you aren't getting any error and nothing is actually deployed. When I've experienced this with my TeamCity build server, the problem was that MSBuild was not set up on the machine that would do the building and deploying. These are my steps to resolve the problem I think you might be having:
Make sure that at least Visual Studio Express is installed. you can tell if a full enough version of Visual Studio is installed by navigating to the
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\ directory. If you see folders like 10.0, 11.0, or '12.0', look inside them and verify that there is a Microsoft.WebApplications.targets file. Note the versions that pass that check.
In your Build Configuration, add a /p:VisualStudioVersion=12.0 or whatever version of Visual Studio is appropriate.
Let me know if this gets you anywhere or not. I'm really curious to hear if you are finding any errors or logs anywhere. Basically, in my experience using Web Deploy and MSBuild with TeamCity, if the machine that is building and deploying doesn't have the MSBuild installed with the Microsoft.WebApplication.targets file, it silently fails.
Over a year ago I wrote a WCF service, which runs on a Windows 2003 Server, under the auspices of a Windows Service (which I also wrote). (I wrote it using VS 2008.) I've not had a chance to continue working with it for a long time, but would now like to pick up where I left off back then. However, now I'm trying to use VS 2010, and see if I can interact with it.
The first thing I did was run SvcUtil from the command line, to get the information I would need to put into my App.Config file. However, it gave me an error (#415) saying that the server had rejected the network request. I've been asking around as to how I can fix this problem, and was told that I should run SvcConfigEditor.exe on the server in order to get better logging information. So I RDP onto the server and tried running it. Only, it isn't installed on the server. The .NET Framework 2 and 3.5 are installed, but I wouldn't think it would matter if .NET 4 was installed on the server, if I'm trying to run SvcConfigEditor.exe from .NET 3.5.
Bottom line: how do I get SvcConfigEditor.exe onto the server?
It installs it with WindowsSDK for Windows Server.
If you don't see it available in Start > All Programs > Windows SDK > Tool > Service Configuation Editor OR can't find the file "SvcConfigEditor.exe" you haven't to added the feature.
To add...
Control Panel > Programs and Feature > (Right-click) Microsoft Windows SDK for Server > Change
Check on Developer Tools> Windows Development Tools > .NET Development Tools
After the install of the feature, you should see it now.
You can just copy your config from the server to you workstation and then run svcconfigeditor then copy it back to the server. Your config is just a text file so treat it as such.
Get it from your local development machine where Visual Studio is installed:
Microsoft Service Configuration Editor
C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin\NETFX 4.0 Tools\SvcConfigEditor.exe
You might want to get the following tools as well:
Service Trace Viewer (Of you have WCF tracing enabled)
C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin\NETFX 4.0 Tools\SvcTraceViewer.exe
WCF Test Client
C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\WcfTestClient.exe
I went to create a SP2010 Workflow project in VS2010, and it complained that I did not have SP Server installed on my machine.
Well, I do not want to install SP2010 on my dev machine. I have a perfectly good dev instance installed onto a VM.
Is it possible at all to design SP 2010 workflow projects in VS2010 without having a local instance of Sharepoint?
Cheers,
Daniel
Well, it looks like the answer is "No, you must have SP2010 installed locally"
Will VS let you continue after receiving that message?
Microsoft recommendation is to install Visual Studio on the your DEV VM (running Windows Server 2008 R2) that has SharePoint running. You'll also get additional debug features by doing this, like F5 debugging/breakpoints, and auto deploy/retract of your solutions.