404.3 when trying to browse MyAstoriaService.svc

  • Thread starter Thread starter Rory Becker
  • Start date Start date
R

Rory Becker

Having installed SP1 with no Issues...

I have
....created a Web app...
....Added a LINQ to SQL dbml (MyAstoriaDataContext) for some tables in my
database
....Created "MyAstoriaService.svc" and changed the passed type to "MyAstoriaDataContext"
....Added the following code to "InitializeService"
-------------------------------------------------------------
config.SetEntitySetAccessRule("*", EntitySetRights.AllRead)
config.SetServiceOperationAccessRule("*", ServiceOperationRights.All)
-------------------------------------------------------------

but when I try to browse to MyAstoriaService.svc, I get a 404.3 error suggesting
that ASP.Net has not mapped this file to anything.

Indeed the mapping does not seem to be in place in IIS

Can enyone indicate what I should do about this?

Thanks
 
Hi Rory,

You're encountering some error accessing an WCF svc endpoint, correct?

It seems the error message indicate some 404.3 error code, this usually
means that the target service endpoint is not correctly located or not
available. I'd like to confirm the following things first:

**Are you using VS 2008 SP1 and are you using IIS server or vs test server
to host the web application?

**Have you tried run any other web application which contains WCF svc
endpoint before on the same server(in IIS) and did it work?

I suggest you create a simple WCF service in IIS to see whether it works.
If not, that means there exists some configuration problem of the WCF
service on the server(in IIS). You can also find a machine with WCF mapping
setup correctly in IIS and compare the extension mappings setting with the
problem server's IIS.

http://msdn.microsoft.com/en-us/library/bb332338.aspx#msdnwcfhc_topic5

http://technet.microsoft.com/en-us/library/cc754271.aspx

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead


Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we

can improve the support we provide to you. Please feel free to let my
manager know what you think of

the level of service provided. You can send feedback directly to my manager
at: (e-mail address removed).

==================================================
Get notification to my posts through email? Please refer to

http://msdn.microsoft.com/en-us/subscriptions/aa948868.aspx#notifications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response

from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take

approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution.

The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump

analysis issues. Issues of this nature are best handled working with a
dedicated Microsoft Support

Engineer by contacting Microsoft Customer Support Services (CSS) at

http://support.microsoft.com/select/default.aspx?target=assistance&ln=en-us.
==================================================
This posting is provided "AS IS" with no warranties, and confers no
rights.--------------------
 
Hello Steven Cheng [MSFT],
You're encountering some error accessing an WCF svc endpoint, correct?

I was not aware that this involved WCF... but I guess it might

What I'm trying to do is create and use a ADO.Net Data Services(Codenamed
Astoria) service.

I have see instructions for how to do this here --> http://codebetter.com/blogs/david.h...tting-started-with-ado-net-data-services.aspx.
but they seem a little out of data as of VS2008 SP1
It seems the error message indicate some 404.3 error code, this
usually means that the target service endpoint is not correctly
located or not available. I'd like to confirm the following things
first:

**Are you using VS 2008 SP1 and are you using IIS server or vs test
server to host the web application?

SP1 - Yes
IIS 7 (on Vista 64) - Yes

**Have you tried run any other web application which contains WCF svc
endpoint before on the same server(in IIS) and did it work?

Never touched WCF before.

Hopefully this should clarrify what I'm trying to do.

I admit the WCF suggestion has kinda thrown me.

Thanks in any case for any help.
 
Hello Steven Cheng [MSFT],

Ok I've been doing some research based on the fact that ADO.Net Data Services
(Astoria) (Does anyone else think that theis name is far too long?)

and found CleanIISScriptMaps.exe here (http://snurl.com/3gb34) .

It seems that this tool is designed to correct the mapping issue I seem to
have. It's designed to correct issues created by some beta releases. I'm
not sure how these might have affected me in the first place since I didn't
install and of the beta SP1s. I did however have some of the silverlight
bits on my machine before. Perhaps that was it.

In any case, my Astoria is now working. Unfortunately it is working well
enough to tell me that it is not compatible with LINQ2SQL.

(I needed to use <System.ServiceModel.ServiceBehavior(IncludeExceptionDetailInFaults:=True)>
to my Service class before it would admit this though)

This is a big downer because LINQ2SQL is far easier to use compared to the
Entity Framework :(
 
In any case, my Astoria is now working. Unfortunately it is working
well enough to tell me that it is not compatible with LINQ2SQL.


Ok It now seems that I can mitigate this to a degree by applying a DataServiceKey
attribute to each Table.

However this only gets me as far as rendering the svc file

I was under the impression that I could access the url "http://localhost:someport/MyService.svc/MyTable"
and that this would render some kind of xml representation of the data in
that table.

In Firefox 3 I get nothing. Not even a context menu can be produced

In IE7 I get a rendering which implies that it thinks there is an rss feed
in the page, but there is no data on screen and view source does not work
either.

I'm really confused. Astoria seems like it could be really useful if I can
just make it work :)
 
Thanks for your followup Rory,

Yes, since Astoria is still under CTP, the documentation and reference is a
bit lag. I think it may also changes after some furhter new versions since
the DEV team may do some changes according to community or other partner
feedback.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead


Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
(e-mail address removed).


--------------------
 
Hello Steven Cheng [MSFT],
Thanks for your followup Rory,

Yes, since Astoria is still under CTP, the documentation and reference
is a bit lag. I think it may also changes after some furhter new
versions since the DEV team may do some changes according to community
or other partner feedback.


Erm....as far as I know... Although I keep refering to is as astoria (for
brevity more than anything else) it was released inside VS2008 SP1 as ADO.Net
Data Services. So I think it's hit RTM already.

but as you say onlind DOCs at RTM are not great.
 
Thanks for your followup Rory,

Yes, I saw it from the .NET 3.5/VS 2008 SP1 info. Then, that's really a
pity for the documentation.

You're welcome to submit the feedback to the connect site:

http://connect.microsoft.com/feedback/default.aspx?SiteID=210

Thanks for your sincere feedback and comments.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead


Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
(e-mail address removed).

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/en-us/subscriptions/aa948868.aspx#notifications.

==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
Date: Mon, 18 Aug 2008 06:37:07 +0000 (UTC)
Message-ID: <[email protected]>
From: Rory Becker <[email protected]>
Subject: RE: 404.3 when trying to browse MyAstoriaService.svc
References: <[email protected]>
Hello Steven Cheng [MSFT],
Thanks for your followup Rory,

Yes, since Astoria is still under CTP, the documentation and reference
is a bit lag. I think it may also changes after some furhter new
versions since the DEV team may do some changes according to community
or other partner feedback.


Erm....as far as I know... Although I keep refering to is as astoria (for
brevity more than anything else) it was released inside VS2008 SP1 as ADO.Net
Data Services. So I think it's hit RTM already.

but as you say onlind DOCs at RTM are not great.
 
Back
Top