Load operation failed for query GetUser

G

Gerhard

I have a Silverlight Business Application that runs fine in my development
environment, but in IIS I get a Load operation failed for query GetUser error
with details:

at System.Windows.Ria.OperationBase.InvokeCompleteAction()
at System.Windows.Ria.OperationBase.Complete(Exception error)
at System.Windows.Ria.LoadOperation.Complete(Exception error)
at System.Windows.Ria.DomainContext.CompleteLoad(IAsyncResult asyncResult)
at
System.Windows.Ria.DomainContext.<>c__DisplayClass17.<Load>b__13(Object )

This is on the same machine that the development is done on.

I set all except basic system references to Copy Local. I published using
copy all project files. Still get this error.

I'm on a Windows 2003 Server with all updates run on it.

How can I fix it to run through IIS?

Thanks.
 
A

Andy O'Neill

Gerhard said:
I have a Silverlight Business Application that runs fine in my development
environment, but in IIS I get a Load operation failed for query GetUser
error
with details:

at System.Windows.Ria.OperationBase.InvokeCompleteAction()
at System.Windows.Ria.OperationBase.Complete(Exception error)
at System.Windows.Ria.LoadOperation.Complete(Exception error)
at System.Windows.Ria.DomainContext.CompleteLoad(IAsyncResult
asyncResult)
at
System.Windows.Ria.DomainContext.<>c__DisplayClass17.<Load>b__13(Object )

This is on the same machine that the development is done on.

I set all except basic system references to Copy Local. I published using
copy all project files. Still get this error.

I'm on a Windows 2003 Server with all updates run on it.

How can I fix it to run through IIS?

Thanks.

You can probably get more info on the error using fiddler.
I would guess your problem lies in configuration of IIS.
 
G

Gerhard

In my case, it resolved with making the server admin that the Application
Pool was using and admin on SQL Server also. Doesn't make a lot of sense,
but it worked.
 
M

Mr. Arnold

Gerhard said:
In my case, it resolved with making the server admin that the Application
Pool was using and admin on SQL Server also. Doesn't make a lot of sense,
but it worked.

So, you're using Windows authentication on SQL Server, which causes IIS
worker process user account to be used? Maybe, you should be using a SQL
Server user-id and psw for the Entity Framework or Linq-2-SQL connection
string when creating the model. That way, you'll have no problems with logon
to SQL Server with the app.

Is not that ASP.NET and WCF RIA service cool? It has value that I can
introduce to my development team.
 
N

nilarya talukdar

Hi, I am facing the exact similar error. Prior to hosting the app I did the following:
Copied the DLLs to bin folder.
Added <trust level="Full" /> to Web.config
Set connectionString as follows: <connectionStrings><remove name="LocalSqlServer" />
<add name="LocalSqlServer" connectionString="Data Source=<SQLSERVER>;Integrated Security=false;Initial Catalog=<DB>;User ID=<USERID>;Password=<PASSWORD>" providerName="System.Data.SqlClient" /> </connectionStrings>
Authentication <authentication mode="Forms" />
ASP Setting <serviceHostingEnvironment aspNetCompatibilityEnabled="true" />

Now when I have hosted the application on a server I am geting this Load operation failed for query 'GetUser' error.
On fiddler i can see a HTTP/1.1 500 System.ServiceModel.ServiceActivationException generating at response headers.
I have configured IIS on my machine and hosted the application there. I see the same error. But in my local machine fiddler shows a 404 not Found error at response headers. It also tells me the error occured while trying to access the AuthenticationService.svc/binary file.
Let me give an overview of my application structure.
I am using an ASP.net membership provider to handle custom user validating logic against my Database. and I have not done anything on my autogenerated AuthenticationService service. in my VS environment, everything is working perfectly. What I am doing wrong?
Please help.
 
N

nilarya talukdar

Somehow I have missed a few lines. I have modified the connectionstrings as:
<connectionStrings><remove name="LocalSqlServer" />
<add name="LocalSqlServer" connectionString="Data Source=<SQLSERVER>;Integrated Security=false;Initial Catalog=<DB>;User ID=<USERID>;Password=<PASSWORD>" providerName="System.Data.SqlClient" /> </connectionStrings>


Submitted via EggHeadCafe - Software Developer Portal of Choice
Using ASP.NET Session with Silverlight and WCF Services
http://www.eggheadcafe.com/tutorial...ession-with-silverlight-and-wcf-services.aspx
 
Joined
Mar 1, 2011
Messages
1
Reaction score
0
Load operation failed for query login on iis7 using silverlight 4

I Have a solution,
<connectionStrings>
<add name="MembershipSqlServer"
connectionString="Data Source=.;Initial Catalog=TestMembership;User ID=sa;Password=sa@4321;Integrated Security=false;" providerName="System.Data.SqlClient"/>
</connectionStrings>

<membership defaultProvider="MembershipProvider">
<providers>
<add connectionStringName="MembershipSqlServer" name="MembershipProvider"
type="System.Web.Security.SqlMembershipProvider" />
</providers>
</membership>
<roleManager enabled="true" defaultProvider="RoleManagerProvider">
<providers>
<add connectionStringName="MembershipSqlServer" name="RoleManagerProvider"
type="System.Web.Security.SqlRoleProvider" />
</providers>
</roleManager>
<profile enabled ="false">
<properties>
<add name="FriendlyName"/>
</properties>
</profile>
 
Joined
May 20, 2011
Messages
1
Reaction score
0
hi all,

The followings are the articles/summaries about the problems that you normally encounter when deploying WCF Silverlight based application to a server and the steps to fix it:

- http://webhosting.asphostcentral.co...-Configuration-in-a-Shared-HostingServer.aspx
- http://webhosting.asphostcentral.co...-Required-attribute-on-generated-classes.aspx
- http://webhosting.asphostcentral.co...-Load-Operation-Failed-for-query-GetUser.aspx
- http://webhosting.asphostcentral.co...ady-contains-an-address-with-scheme-http.aspx

I certainly hope these articles will resolve all your issues. Thank you.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top