CodeCloudy

Azure | .Net | JQuery | Javascript | Umbraco

IIS

Services that make up the IIS 7 Web server include:

Service

Display Name

Description

Executable

Default Startup

AppHostSVC

Application Host Helper Service

Stores configuration history and application pool mapping in history subdirectories at set intervals.

svchost.exe

Automatic

FTPSVC

FTP Publishing Service

Enables IIS 7 Web servers to be File Transfer Protocol (FTP) servers.

svchost.exe

Manual

IISADMIN

IIS Admin Service

For IIS 6.0 metabase configuration compatibility

inetinfo.exe

Automatic

MSFTPSVC

FTP Publishing Service 6

Enables IIS 6 Web servers to be File Transfer Protocol (FTP) servers.

inetinfo.exe

Manual

W3SVC

World Wide Web Publishing Service

Provides Web connectivity and administration through IIS Manager

svchost.exe

Automatic

WAS

Windows Process Activation Service

Provides process activation, resource and health management services for message-activated applications.

svchost.exe

Manual

WMSVC

Web Management Service

Enables remote management of a Web server.

wmsvc.exe

Manual

To troubleshoot and manage services you can use the Services snap-in to the Microsoft Management Console. The MMC Services snap-in has feature for:

  • Monitoring the status of services.
  • Starting, stopping, pausing and resuming, or disabling services.
  • Viewing service properties and dependencies.
  • Setting up recovery actions to deal with service failures.

https://blogs.iis.net/tomwoolums/the-services-behind-internet-information-services-7-0

Leave a comment »

Javascript/JQuery/json/

  1. Get size of json object
 type="text/javascript">

  var myObject = {'name':'Kasun', 'address':'columbo','age': '29'}

  var count = Object.keys(myObject).length;

  console.log(count);

2. Trying to pass in a boolean C# variable to a javascript variable and set it to true

myjavascript( <%= MyBooleanVariableInCSharp.ToString().ToLower() %> );

You may also want to try:

isFollowing: '@(Model.IsFollowing)' === '@true'

and an ever better way is to use:

isFollowing: @Json.Encode(Model.IsFollowing)

	
Leave a comment »

The following exception was thrown: Access to the path denied. Exception details: System.UnauthorizedAccessException: Access to the path

According to File.Delete Method…

An UnauthorizedAccessException means one of 4 things:

  1. The caller does not have the required permission.
  2. The file is an executable file that is in use.
  3. Path is a directory.
  4. Path specified a read-only file.

Other answers:

Try setting the access permissions to “Full control” for the .Net user from where you are reading/saving the files. You need to find out from the application pool for the website what is the identity it is running under (by default this is Application Pool Identity) and grant that the correct permissions.

 

Leave a comment »