Tuesday, March 28, 2023

cannot read configuration file due to insufficient permissions

 Apply the following cnhages in IIS7.


1.In Windows Explorer, locate the web.config file that is associated with the Web site.
2.Right-click the web.config file
3.Click Properties.
4.Click the Security tab, and then click Edit.
5.Click Add.
6.In the Enter the object names to select box, type computername\IIS_IUSRS, click Check Names, and then click OK.
Note Computername is a placeholder for the computer name.
7.Click to select the Read check box, and then click OK.
8.In the Web.config Properties dialog box, click OK.

Wednesday, March 22, 2023

Call webservice using PostMan

 1. In header add Content-Type=text/xml.

2. In Body add row and Xml.


https://learning.postman.com/docs/sending-requests/soap/making-soap-requests/

Tuesday, March 21, 2023

Host Asp.net MYSql website on godaddy.

 1. Add database

2. Go to ASP.Net Setting and change connection string.

3. Download Publish Setting and import in Visual Studio.


Tuesday, March 7, 2023

Add SSL in godaddy for Window hosting

 Ref : https://www.youtube.com/watch?v=HT4gNW79EzQ 

The command npm install exited with code 1 visual studio 2022

Run These Commands

# 👇 check your package.json for dependency updates

npx npm-check-updates


# 👇 write newer version in package.json

npx npm-check-updates -u


# 👇 install the latest version

npm install

 Ref: https://sebhastian.com/npm-err-code-1/

Monday, March 6, 2023

Add new repository in bitbucket

 Assuming you have Git installed on your local machine, then:

  1. Locally, change to the root directory of your existing source.
  2. Initialize the project by running the following commands in the terminal:

    git init
    git add --all
    git commit -m "Initial Commit"
  3. Log into Bitbucket and create a new repository.
  4. Locate the clone URL in the nav panel on the left (for example:  https://username@your.bitbucket.domain:7999 /yourproject/repo.git).
  5. Push your files to the repository by running the following commands in the terminal (change the URL accordingly):

    git remote add origin https://username@your.bitbucket.domain:7999/yourproject/repo.git 
    git push -u origin master
  6. Done! Your repository is now available in Bitbucket.

Sunday, March 5, 2023

Running Lower Angular version at higher version

 Run this command :- npm install --legacy-peer-deps

The source was not found, but some or all event logs could not be searched. Inaccessible logs: Security.

 

Create a registry key

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\eventlog\Application\MY-AWESOME-APP

Create a string value inside this

Name it EventMessageFile, set its value to

C:\Windows\Microsoft.NET\Framework\v2.0.50727\EventLogMessages.dll

That path appears to work in both 64 bit and 32 bit environments.

With this technique you don't need to set permissions in the registry, and once the key above is created it should just work.

Alternatively
f you don't have a large server farm but just a small "web garden" you could run a console application on each server that creates the event log source using EventLog.CreateEventSource, make sure the console application is run by an administrator.


Ref: https://stackoverflow.com/questions/286060/what-do-i-need-to-change-to-allow-my-iis7-asp-net-3-5-application-to-create-an-e/7848414#7848414

Friday, March 3, 2023

Followers

Link