Has anyone encountered this problem here at DASP? What did you do to fix it? Here are the steps to re-create 1. Create a new SL4 Business Application with VS2010. Do not make any change except in the web.config to specify the connection string to LocalSqlServer. 2. Deploy to your DASP remote server. 3. Disable Basic Authentication in IIS. 4. Run your application. The main page should come up with no problem. 5. Now add an ADO.NET Entity Data Model to your web project. 6. Add a new Domain Service to surface the edmx you created in step 5 7. Deploy the updated project to DASP. Make sure Basic Authentication is stil disabled after deploying. 8. Now run your application and you will get the dreaded NotFound error. If you have Fiddler running, it will report this resource cannot be found. /.../ClientBin/...-Web-AuthenticationService.svc/binary/GetUser
Hi, It's a good thing you're posting this, if we get this worked out it's going to help a lot of others. ;-) This is on IIS7 right? In Classic or Integrated mode? In your root web.config, the system.webServer section, can you look and verify that both basicAuthentication anonymousAuthentication are currently "false" ? ...I'm no expert but let's get this working ;-) All the best, Mark
Hi Mark, I'm sorry for the late response. It had been a crazy weekend and I did not even have time to check my email. Yes it's on IIS7. I'm not sure I understand what you mean by Classic or Integrated. I'm not on my development machine now so I cannot check the web.config. What I'm sure of is that I diabled Basic Authentication on the server and leave Anonymous Authentication as enabled each time I deploy. I will check my web.config later today and post again. When you said, "it's going to help a lot of others", are you indicating that this is a common problem?
Hi, I'm not trying to say this is common, in these forums we all work together and some things are just nuts at times. ;-) Classic or Integrated is referring to the IIS7 mode. You can change that from your DASP Control Panel. For the most part you should try to get everything working with Integrated mode. Classic mode is a fallback mode when some things just can't seem to work. Articles on Integrated Pipeline mode for IIS7: http://www.iis.net/search.aspx?q=Integrated
Mark, here are the answers to your other two questions. 1. I'm on Integrated mode 2. basicAuthentication in my root web.config is true. There's no anonymousAuthentication entry. Bruce, I checked the link you suggested. I already use Fiddler, and it is reporting this resource cannot be found: /.../ClientBin/...-Web-AuthenticationService.svc/binary/GetUser
I think I might have found the solution. It was simply marking System.ServiceModel.DomainServices.EntityFramwork as Copy Local = True. I got the hint from here: http://blogs.msdn.com/b/saurabh/archive/2010/03/16/ria-services-application-deployment.aspx which was suggested by a comment in http://community.discountasp.net/showthread.php?t=9391 Thanks to everyone for helping.