SQL y ASP

25/06/2004 - 17:38 por JCMH | Informe spam
Hola Todos:

Tengo una pagina .aspx con conexion a una base de datos de
la siguiente forma:


<wmx:SqlDataSourceControl id="SqlDataSourceControl1"
runat="server" UpdateCommand="" SelectCommand="SELECT
Tagname,value,DateTime FROM INSQL.Runtime.dbo.History
WHERE TagName = 'T102_TT0T1'"
ConnectionString="server='(local)';trusted_connection=true;
database='Runtime'"
DeleteCommand=""></wmx:SqlDataSourceControl>



Pero al ejecutarla me sale el siguiente error:

Login failed for user 'NT AUTHORITY\NETWORK SERVICE'.
Description: An unhandled exception occurred during the
execution of the current web request. Please review the
stack trace for more information about the error and where
it originated in the code.

Exception Details: System.Data.SqlClient.SqlException:
Login failed for user 'NT AUTHORITY\NETWORK SERVICE'.


Muchas Gracias
 

Leer las respuestas

#1 Franco Figún
25/06/2004 - 18:17 | Informe spam
Si tenes Windows 2003, tenes que hacer lo siguiente:

1) La carpeta de tu aplicacion, si está en el IIS, tenes que darle permisos
de MODIFY a los usuarios IUSR_tuserver y ASPNET.
2) Tenes que ir al IIS, te paras sobre la carpeta de tu sitio, ahi te vas a
propiedades, y tiene que aparecer un boton que dice CREATE, y sirve para
crear al sitio como aplicacion, algo que necesita IIS y .NET framework.
3) Dentro del IIS, te vas a Aplication Pools, luego a DefaultAppPool, boton
derecho, propiedades, ahi te vas a Identity, y tenes que seleccionar una
cuenta para todas las aplicaciones, en este caso, tiene que ser la cuenta
LOCAL SYSTEM, ya que el 2003 la usa para correr todas las aplicaciones.

Y con eso, se soluciona.
Saludos
FF
www.francofigun.com.ar
www.microsofties.com.ar
MSN:
UIN: 314408886
Yahoo MSN:

"JCMH" wrote in message
news:21b5501c45aca$8752f130$
Hola Todos:

Tengo una pagina .aspx con conexion a una base de datos de
la siguiente forma:


<wmx:SqlDataSourceControl id="SqlDataSourceControl1"
runat="server" UpdateCommand="" SelectCommand="SELECT
Tagname,value,DateTime FROM INSQL.Runtime.dbo.History
WHERE TagName = 'T102_TT0T1'"
ConnectionString="server='(local)';trusted_connection=true;
database='Runtime'"
DeleteCommand=""></wmx:SqlDataSourceControl>



Pero al ejecutarla me sale el siguiente error:

Login failed for user 'NT AUTHORITY\NETWORK SERVICE'.
Description: An unhandled exception occurred during the
execution of the current web request. Please review the
stack trace for more information about the error and where
it originated in the code.

Exception Details: System.Data.SqlClient.SqlException:
Login failed for user 'NT AUTHORITY\NETWORK SERVICE'.


Muchas Gracias

Preguntas similares