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

Preguntas similare

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
Respuesta Responder a este mensaje
#2 Franco Figún
25/06/2004 - 18:22 | Informe spam
Te envio un link de referencia:
http://dev.mysql.com/tech-resources...es/dotnet/

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
Respuesta Responder a este mensaje
#3 JCMH
25/06/2004 - 18:46 | Informe spam
Hola Franco:

De ante mano muchas gracias.

Pero no encuentro el boton create que dices en el punto 2.
Y tampoco lo del punto 3.

Muchas Gracias
Te envio un link de referencia:
http://dev.mysql.com/tech-resources...es/dotnet/

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




.

Respuesta Responder a este mensaje
#4 Franco Figún
25/06/2004 - 20:41 | Informe spam
Que windows tienes?


FF
www.francofigun.com.ar
www.microsofties.com.ar
MSN:
UIN: 314408886
Yahoo MSN:
"JCMH" wrote in message
news:21bd901c45ad3$f7cc7ef0$
Hola Franco:

De ante mano muchas gracias.

Pero no encuentro el boton create que dices en el punto 2.
Y tampoco lo del punto 3.

Muchas Gracias
>Te envio un link de referencia:
>http://dev.mysql.com/tech-resources...es/dotnet/
>
>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
>
>
>.
>
Respuesta Responder a este mensaje
#5 JCMH
25/06/2004 - 21:30 | Informe spam
hola:

Windows 2003 server
IIS 6.0
ASP.Net webmatrix
SQL 2000 SERVER


Que windows tienes?


FF
www.francofigun.com.ar
www.microsofties.com.ar
MSN:
UIN: 314408886
Yahoo MSN:
"JCMH" wrote in


message
news:21bd901c45ad3$f7cc7ef0$
Hola Franco:

De ante mano muchas gracias.

Pero no encuentro el boton create que dices en el punto




2.
Y tampoco lo del punto 3.

Muchas Gracias
>Te envio un link de referencia:
>http://dev.mysql.com/tech-resources...es/dotnet/
>
>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
>
>
>.
>




.

Respuesta Responder a este mensaje
Ads by Google
Help Hacer una preguntaSiguiente Respuesta Tengo una respuesta
Search Busqueda sugerida