IIS Manager - Cant start W3SVC and IIS Admin is missing from Service - web-services

I am trying to start W3SVC on Windows 10 but I am facing several issues here:
I went to Task Manager and clicked the Services tab then I found the W3SVC service and I right clicked it and choose start but it did not start. I tried to click it several times.
I do have IIS Manager but IIS Admin is missing from Services which I do not know why.
World Wide Web Publishing Service is turned on and it is running automatically The dependencies tab have everything in there as it should be. HTTP Service and Window Process Activation Service
I did try to restart IIS in command prompt iisreset. But it failed and the error appeared:
The IIS Admin Service or the World Wide Web Publishing Service, or a service dependent on them failed to start. The service, or dependent services, may had an error during its startup or may be disabled.
I am trying to run a custom website I created on IIS Manager but it wont start. The error appeared:
Cannot start service w3svc on computer
I tried to start "World wide web publishing service", but I was unable to start it as it said:
Error 1068: The dependency service or group failed to start
I want to start the website that I created in my inetpub and I want this w3svc up and running

open Control Panel->Programs->Programs and Features->Turn windows features on or off -> Uncheck "Internet Information Services" and "Windows Process Activation Service"
Restart your machine.
open Control Panel->Programs->Programs and Features->Turn windows features on or off -> install both "Internet Information Services" and "Windows Process Activation Service"
if you still face issue then check the event viewer log.

Try this commands on cmd:
reg delete HKLM\SYSTEM\CurrentControlSet\Services\WAS\Parameters /v GenerateKeys /f
net start w3svc
net stop apphostsvc
net start apphostsvc

Related

RESTful Web Services from Database error build-impl.xml

I'm a beginner in Java EE development.
I try to make a REST web service using Netbeans 8.0.2 with a Glassfish Server 4.1 and a MySQL database which contains my tables.
So I create a new Web Application, then I create a new package in the folder Sources Package of the web application, and I create a new web service in that package, this web service is a RESTful web services from database.
In the Services tab, I click on Databases, then I register my MySQL server and I create a new connection to my database on my MySQL server, it works.
During the creation of the RESTful web service, it connects to my database.
But when I run my project, I have this error :
nbproject/build-impl.xml:1046: The module has not been deployed. See the server log for details.
BUILD FAILED
I don't know how to resolve it.
The Glassfish server doesn't show log, I'm surprised because there isn't any log.
I go to the Services tab in Netbeans, and under Servers I right click on my Glassfish server and I click on View Domain Server Log but nothing occurs, so I open a command interface, and I go to the directory of the log of my Glassfish server and there is nothing
The tab which have the same name of my project shows this output :
NetBeansProjects\WebApplicationGlassfish2\nbproject\build-impl.xml:1046: The module has not been deployed.
See the server log for details.
BUILD FAILED (total time: 1 minute 53 seconds)
Just a couple of ideas in case you haven't check it.
If you are using the Glassfish server be sure the MySQL driver is installed on the server. You can check this in the documentation
Second, it's not enough to configure the DB in your Netbeans, in your project you should create the proper configuration in your persistence.xml file (usually, unless your are using jdbc manually). You should create your datasource or, at least, register the connection properties.
I hope it helps.

deploying sharepoint hosted app run into security prompt

I wrote a very simple sharepoint hosted app (2013). I kept getting a lot of windows credential prompt, asking for domain user name and password when I tried to deploy to my development server.
I have a separated app domain setup. Also, from the vs2013 deploying output, it shows the app successfully deployed to my hosted web.
When I go to the site (hosted web), I can see the link of my app is appearing on the left hand nav panel, inside of the Recent section.. However, when I click on the link again, the windows security prompts and asking for my network credential. I kept entering it, but it just kept prompting...
My app url is: app-47294dea293202.appDomainName.com usually if this is my regular IIS web, I will go and check the IIS authentication and try to enable/disable the anonymous/windows login, but in this kind of url, where I can go and tweak that?
I have been trying to fix this issue for many hours, I felt really exhausted working with Sharepoint 2013..
Open Internet Explorer -> Internet Options -> Tab Security -> Local Intranet -> Click Sites -> Advanced -> Add the link http(or https) ://*.appDomainName.com.
This is append because the url is not recognize as Local Intranet and IE doesn't pass the current credentials, check also:
Internet Explorer -> Internet Options -> Tab Advanced -> Under Security Group -> Enable Integrated Windows Authentication is checked (This options pass the current credentials on Local Intranet Site).
You can try also the Disable the loopback check

SharePoint 2013 Visio document error: the server failed to process the request

When I try to open Visio documents uploaded to my SharePoint site, I get "the server failed to process the request" error. Any help is appreciated!
Here are the steps that I followed that fixed the issue:
Open SharePoint Central Administration on SharePoint server.
Manage service applications (under Application Management).
Select Visio Graphics Service -> Properties
Check what Application Pool is used (SharePoint Web Services Default in my case).
Open IIS -> Application Pools.
Visio App Pool is usually represented by a GUID name. To get the name:
Open SharePoint Management Shell (run as administrator)
Run command: Get-SPServiceApplicationPool | Select Id, Name
Find Id of App Pool (from step 4)
Find the same id in IIS under Name column and check the value in Identity column
Remote to the sql server
Open Sql Server Management Studio -> Connect
Expand the databases that stores your SharePoint content -> Security -> Users
Right click user name obtained in step 6d -> Properties
In Owned Schema and Membership check db_owner
You shouldn't mess with Database unless absolutely necessary. Try this:
$webApp = Get-SPWebApplication http://contoso.com
$webApp.GrantAccessToProcessIdentity("contoso\ServiceAppID")
In our situation, there were errors in event log on the app and WFEs for a bunch of services including the Visio graphic service:
System.IO.FileLoadException: Loading this assembly would produce a different grant set from other instances
I went in to the Visio Graphics Service Settings > Global Settings and looked at the value in the Unattended Service Account, meaning it was registered with the secure store service. I went in to the secure store service and got the following error:
Cannot complete this action as the Secure Store Shared Service is not responding. Please contact your administrator
Recycling IIS on our app server resolved both the issues, so obviously the services having problems were a result of the secure store service being down.
If in the Windows Events the following error is being logged:
Failed to access the cache.
Then, on your SharePoint Web Front End servers, run the following command in the command prompt or PowerShell:
iisreset -noforce

Windows Service does not start automaticall

I`m writing application, which based on QtService.
My problem is that the service is labeled "Auto Start" does not start automatically. In the registry my service marked "Start: 000000002(2)"
What should be changed to automatically start the service? Or how I start this service from user (user rights account).
Sorry for my english.

Web Service Authorization Authentication

I have a problem for a few months now...
I have a web service and a client using the web service.
When i try to add the web service to the client(with "Add Web Reference.."), i search for web services on the local machine and finds it. but when i click it in order to add it to the project i get a prompt dialog asking me for username and password.
I recall times when i didn't have this dialog and I'm not sure why this happens now...
the Web.config file of the web service contains <authentication mode="Windows" />
Few details:
I'm using Visual Studio 2008 Standard.
the programs are written in C#.
I'm using IIS 5.1 and the web service configured only with "Integrated Windows Authentication" checked.
in my windows XP I'm using (in order to login) a user name and password.
No matter what i do to add the web Service to the client i can't add it. it fails.
Check to see if your web project (client) is running on vs2008's built-in web server... under Project -> Properties -> Web section.
If not, can you check those same settings on the web service project and try connecting with both options?
That should do it.
**from comments above
I would recommend that you check and see if you have the option NTLM Authentication checked under Project Properties -> Web. If you uncheck this option you should be able to add the Web Service without having to authenticate.
http://msdn.microsoft.com/en-us/library/aa378749.aspx