Which two actions should you perform to resolve this error?

You are developing a Web application. The Web application uses the following code segment to connect to a database.

conn.ConnectionString="Server=(local);"&_"Initial Catalog=NorthWind;Integrated Security=SSPI;"

You create logins in Microsoft SQL Server for each user of the Web application. When you run the Web application, you receive the following error message.

"Login failed for user ‘COMPUTERNAMEASPNET’."

You need to resolve this error. Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)

You are developing a Web application. The Web application uses the following code segment to connect to a database.

conn.ConnectionString=”Server=(local);”&_”Initial Catalog=NorthWind;Integrated Security=SSPI;”

You create logins in Microsoft SQL Server for each user of the Web application. When you run the Web application, you receive the following error message.

“Login failed for user ‘COMPUTERNAMEASPNET’.”

You need to resolve this error. Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)

A.
In IIS, deny anonymous access.

B.
In the Web.config file, enable impersonation.

C.
In IIS, allow anonymous access.

D.
In the Web.config file, disable impersonation.

E.
In the Web.config file, set the authentication mode to Windows.



Leave a Reply 0

Your email address will not be published. Required fields are marked *