Showing posts with label IIS. Show all posts
Showing posts with label IIS. Show all posts

Wednesday, January 4, 2017

Memory gates checking failed because the free memory (xxxxxx bytes) is less than 5% of total memory


When we are trying to execute the WCF Rest service but the service will run properly in the local system but after installing it on to the server it gives the above error
 The solution is simple just set the parameter minFreeMemoryPercentageToActivateService to 0 in the web.config file  
<serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" minFreeMemoryPercentageToActivateService="0" />
 

Error - (Exception from HRESULT: 0x80070006 (E_HANDLE) cannot load the assembly



When we are trying to run the service and we got the error that it could not load some assembly the solution for that is just restart the IIS and then check it will work. We can also reset the IIS from the command prompt by using the following command run the command prompt in the administrator mode

 

Thursday, December 8, 2016

Excel Giving Error (access denied while downloading the file) in the asp.net application



Open the run window by pressing Ctrl + r and type the command dcomcnfg. 













Then follow the below steps : -

1. Expand the component services & select my computer then expand the my computer and select the DCOM Config. 


2. Then in the right side search for the Microsoft Excel Application and then right click select the properties.
  

















3. Under the security tab under.
a. The launch and activation performance.
b. The Access permission.
c. The Configuration permission.
























 Select the customize option for all the above three a,b&c options and click edit add the NETWORK SERVICE as the(group and username) allow all the permission.

4. Now open the IIS select the Application Pools and search the site under the application pool 

5. Select the site right click and select the advance settings under the process model => identity field select the local system and click ok










Git Commands

Git Version   To check the git version Git -v       Git Clone To clone the repository, use the following command: Git clone [u...