Error attaching debugger to IIS worker process - asp.net-mvc

I have a strange problem in that my MVC Azure application is running/debugging on my desktop but not my laptop. On the laptop I get an error
Error attaching debugger to IIS worker process
However I don't get the problem when running/debugging a simpler/smaller MVC Azure project on the laptop. The only difference between the laptop and desktop is that the laptop is running Windows 8. A prior version of the application did run on the laptop but has suddenly stopped working and I can't trace back why.
Has anyone got any ideas as to what the cause could be.

Can you use TcpView(http://technet.microsoft.com/en-us/sysinternals/bb897437.aspx) to see if there is a port conflict on the machine with the port used by IIS Express

Related

How to deploy rails applicaiton in windows 10/11

I have built a rails application for a friend which he doesn't have enough access to Internet, he has a PC with windows 10 installed, he wants to access his application offline, How do I deploy the application to his windows, I did searched a lot and didn't found a propper solution to it, what I want is to deploy the application and whenever he restarts the pc it automatically starts and he should be able to access it without running rails server
I tried IIS with Microsoft Web platfrom installer, which seems to be retired, and I tried to use it's offline version, and wasn't able to donwload the services, I am so fraustrated. anyone has an Idea of any web server for windows, or any other solution to this..., thanks and much appreciated it.

Getting error "Unable to attach to the process. The address is not valid for this context" while attaching process for debugging

I am trying to host my ASP.Net MVC application on my local IIS 7 and debugging it. For this I host my application on IIS 7 and run application from it. When I am accessing my application from browser I am able to access it and it's working fine. Now for debugging I started my application in browser from IIS and in my VS2012 try to attach to process and select w3wp.exe it not allowing me to attach process for debugging and showing error message as
Unable to attach to the process. The address is not valid for this context
I tried to run VS2012 in administrator mode too but it won't help. Please tell me what I am doing wrong
Thanks in advance...

MSDeploy WMSVC is not working in .net environment

I have a build/test server which is currently running Jenkins for my continuous integration and it also is acting as my test server where code will be deployed to once built (i hope to rectify this and seperate these at a later date when budget allows)
I have a .NET web solution (nothing complex just Umbraco essentially) that i have in SVN and Jenkins is now building correctly. I now want to deploy it onto the same server using MSDeploy. After the build completes the package is generated but the deploy fails with the error
ERROR_DESTINATION_NOT_REACHABLE: Web deployment task failed. (Could not connect to the remote computer ("xxxxx.xxxxxxx.xxx.xxxx"). On the remote computer, make sure that Web Deploy is installed and that the required process ("Web Management Service") is started
Here is my msbuild parameters that Jenkins uses
/P:Configuration=Release
/P:DeployOnBuild=True
/P:MSDeployPublishMethod=WMSVC
/P:DeployTarget=MSDeployPublish
/P:PublishProfile=GetSomePixels
/P:MsDeployServiceUrl=https://build.########
/P:AllowUntrustedCertificate=True
/P:CreatePackageOnPublish=True
/P:UserName=#######
/P:Password=########
I've checked the server and the Web Management Service is running and is starting up manually
I've also gone into IIS 8 manager (server 2012) and checked the "Allow Remote Connections" box under "Management Service". Restarted IIS and the WMSVC and still not working.
If i go to https://myserver.co.uk:8172/MsDeploy.axd in a browser it resolves (gives you the warning about an untrusted cert) and then displays a blank page.
Anyone got any ideas as to what i can do? I thought that it may be firewall related and even though it had added an exception to windows firewall for 8172 i have turned the entire firewall off to completely rulle that out and still no luck.
Have run this on the server to check its listening on the correct port
C:\Users\Administrator>netstat -a | findstr 8172
TCP 0.0.0.0:8172 GSP-BUILD:0 LISTENING
TCP [::]:8172 GSP-BUILD:0 LISTENING
Ok i've resolved this. It appears you have to activate the web management service first and then install web deploy and i'd done it the other way round. I uninstalled WebDeploy and re-installed it, restarted the server and its working
Agree with comment.
We had a similar issue. Initial installation even post Web Management Service activation appeared to be incomplete. In our case, even though the service said it was started we couldn't achieve the "green tick" when testing the connection from the Publish dialog when defining a profile.
Reinstalling WebDeploy 3.6 made it function properly.

rails - how to visit a site that's running on thin server from another pc

I have a rails app running in 2 different locations. The first is a developer VM. When I run the app on a thin server there, I can visit it from my desktop PC. I also have the app running with (as far as I can tell) an identical configuration on another VM. I am unable to view the site from my desktop when I try to connect there. Can anybody think of a reason? I do have an Apache server running on the 2nd VM, is that an issue?
The exact nature of the failure is that when trying to connect from another location, the browser just never responds. It doesn't display an error message or give a 404. The loading graphic on the tab just continues to spin.
Thanks.

Windows Service Printing Behaviour

Alright, I was tasked to develop a Windows Service that listens to a directory for files that are dropped in it, read them, delete them and print out a report.
I installed the service on my work laptop (Win 7 x86) and a test machine (XP x86) under a User account at first. It would do everything as it should except the print the report. No errors, nothing. Then I made it run under Local System and it produced a "No printers found" exception.
Converting the app to a Console Application and running on these machines gave the desired result. OK, so now I was assuming that there are security "stuff" involved.
Then I installed the service on a Server 2008 x64 machine (under Local System) and it just worked. Can anybody explain to me why this is happening? Why does the service allow printing from Server OS but not from a Desktop OS or am I missing something very obvious?
I'm guessing that the printers are installed locally on the server but installed as network printers on the desktop. Local System only have access to local printers.

Resources