473,412 Members | 1,873 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,412 software developers and data experts.

404.3 when trying to browse MyAstoriaService.svc


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

--
Rory

Aug 14 '08 #1
7 1439
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/libr...dnwcfhc_topic5

http://technet.microsoft.com/en-us/l.../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: ms****@microsoft.com.

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

http://msdn.microsoft.com/en-us/subs...#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/...tance&ln=en-us.
==================================================
This posting is provided "AS IS" with no warranties, and confers no
rights.--------------------
>Date: Thu, 14 Aug 2008 12:00:55 +0000 (UTC)
Message-ID: <3a**************************@news.microsoft.com >
From: Rory Becker <ro********@newsgroup.nospam>
Subject: 404.3 when trying to browse MyAstoriaService.svc
>
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

--
Rory
>
Aug 15 '08 #2
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.ha...-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.
--
Rory
Aug 15 '08 #3
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(IncludeExcept ionDetailInFaults:=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 :(
--
Rory
Aug 15 '08 #4
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 :)

--
Rory
Aug 15 '08 #5
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:
ms****@microsoft.com.
--------------------
>Date: Fri, 15 Aug 2008 12:48:53 +0000 (UTC)
Message-ID: <3a**************************@news.microsoft.com >
From: Rory Becker <ro********@newsgroup.nospam>
Subject: RE: 404.3 when trying to browse MyAstoriaService.svc
>
>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 :)

--
Rory
>
Aug 18 '08 #6
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.

--
Rory
Aug 18 '08 #7
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/feedbac...spx?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:
ms****@microsoft.com.

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/en-us/subs...#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: <3a**************************@news.microsoft.com >
From: Rory Becker <ro********@newsgroup.nospam>
Subject: RE: 404.3 when trying to browse MyAstoriaService.svc
References: <2r**************@TK2MSFTNGHUB02.phx.gbl>
>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.

--
Rory
>
Aug 19 '08 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

21
by: Steve K | last post by:
Hi, I'm designing a website for the Cornell Undergraduate Business Program where the client wants faculty and student profiles to be interspersed throught the site. These profiles are...
5
by: deko | last post by:
I'm using the below code to allow users to browse for and select a folder. After selecting a folder from the dialog, the full path is returned to a text box and saved. The next time the user...
6
by: sam c | last post by:
I have some code that looks a bit like this (note: this isn't the actual code, it's just here in an attempt to help me explain what actions I'm doing): void foo(int bar1) { } void foo(float...
2
by: Larry Brindise | last post by:
I have deployed an ASP.NET application successfully on Windows 2000 and 2003. When I deploy it on an XP Pro machine (fresh install with framework 1.1 and IIS installed), I get a very unexpected...
3
by: Highlander | last post by:
Hello all. Consider the following HTA: <HTML> <HEAD> <TITLE></TITLE></HEAD> <BODY> <SCRIPT LANGUAGE="VBScript"> Sub ButBrowse_onclick() '-- show browse window and Get file path:
9
by: Prakash Singh Bhakuni | last post by:
am replacing the default "Browse..." button for input type=file. This works fine except that the form will only submit after the SUBMIT button is clicked twice. Any ideas on why this is happening...
8
by: =?Utf-8?B?UGV0ZXJX?= | last post by:
I install Visual Studio 2005 Pro on Vista. I open and migrate a 2003 web project to 2005. I attempt to browse an aspx file from the Solution Exploer. It displays a blank html page. I create a...
0
by: Greg | last post by:
Is it possible for authentication using asp.net membership to persist from a site to a subdomain? The scenario I want to provide is: User browses to the page somesite.com and logs in. User...
0
by: joeller | last post by:
I am trying browse to page locally in IIS. IIS's default web site is configured as ASP.Net 2.0. Application is configured as ASP.Net 1.1. Server Extensions 2000 is installed and active. However...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.