Bonjour,

J'ai une application tournant sur un pocket pc (émulateur) et je désire faire appel à un webservice qui est hebergé avec IIS .
Au moment de l'appel,j'obtiens le message d'erreur suivant:

System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.Data.SqlClient.SqlException: Cannot open database "xxx" requested by the login. The login failed.
Login failed for user 'AMOKRANE\ASPNET'.
at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)
En fait le user avec lequel je me loguqe sur mon SQL Server est : AMOKRANE\SQLEXPRESS et non AMOKRANE\ASPNET , je me demande d'où est sorti ce ASPNET ?

Et pourquoi , est ce que j'obtiens ce message d'erreur alors que tout fonctionnait correctement lorsque le webservice tournait en local (sans IIS)?

Merci

[EDIT] : j'ai trouvé le lien suivant expliquant la nature du problème :
http://support.microsoft.com/kb/316989/en-us

Ils préconisent 3 méthodes :
• Method 1 Programmatically change the security context of the ASP.NET worker process to a user who has the correct SQL Server permissions.
• Method 2 Change the default configuration of ASP.NET so that the ASP.NET worker process starts and runs under the context of a user who has the correct permissions in SQL Server.
• Method 3 Grant the correct permissions in SQL Server so that the ASPNET account (or NetworkService account, for an application that runs on IIS 6.0) has the appropriate access to the required resources.
Mais en fait concrètement , comment les implémenter ?