Showing posts with label locally. Show all posts
Showing posts with label locally. Show all posts

Monday, March 26, 2012

My .asbx Bridge keeps giving me 404 Page Cannot Be Found

I downloaded the atlas.dll, the toolkit, and the samples. I am trying to run the Gadgets sample. If I run it locally and register the .asbx with the server (again, all locally) this works fine. if I upload the same set of files to my host I get:

GEThttp://www.mysite.com/
200 OK

GEThttp://www.mysite.com/rssgadget.css
200 OK

GEThttp://www.mysite.com/images/rss.jpg
200 OK

GEThttp://www.mysite.com/images/refresh.jpg
200 OK

GEThttp://www.mysite.com/rssgadget_wt.js
200 OK

GEThttp://www.mysite.com/aspnetforums.asbx?mn=Get&feedURL=http%3A%2F%2Fforums.asp.net%2Frss.aspx%3FForumID%3D1007
404 Not Found

I keep getting page not found. My web.config has the bridgemodule for tunneling:

<httpModules>
<add name="ScriptModule" type="Microsoft.Web.Services.ScriptModule"/>
<add name="BridgeModule" type="Microsoft.Web.Services.BridgeModule"/>
<add name="WebResourceCompression" type="Microsoft.Web.Services.WebResourceCompressionModule"/>
</httpModules>

It just never finds it. I used fiddler. It just show the 404 error. In fact, that snapshot above is from fiddler.

Thank you for any help. Is it too much to as the host to register .asbx files? Is that a security risk? Thank you.

I have tried everything here:

http://atlas.asp.net/docs/atlas/doc/bridge/tunnel.aspx

including the scriptmanager adjustment at the bottom of the page. All the results. Thanks again.

If the asbx isn't registered on the host, you aren't accessing the bridge url properly, you should be hitting

GEThttp://www.mysite.com/aspnetforumsBridge.axd?mn=Get&feedURL=http%3A%2F%2Fforums.asp.net%2Frss.aspx%3FForumID%3D1007

Basically replace .asbx with Bridge.axd

Hope that helps,
-Hao

Wednesday, March 21, 2012

Need Help with Error: element buildProviders cannot be defined

When I run my web application locally in VS 2005 it works fine. It is simply the demo from the video by Scott Guthrie. When I publish the site to my server with FTP I get the error and run the webpage I get:

Parser Error Message:The element 'buildProviders' cannot be defined below the application level.

Source Error:

Line 66: -->Line 67: <compilation debug="false">Line 68: <buildProviders>Line 69: <add extension=".asbx" type="Microsoft.Web.Services.BridgeBuildProvider" />Line 70: </buildProviders>

What did I do wrong? Thank you for any help.

just_for_forums:

When I run my web application locally in VS 2005 it works fine. It is simply the demo from the video by Scott Guthrie. When I publish the site to my server with FTP I get the error and run the webpage I get:

Parser Error Message:The element 'buildProviders' cannot be defined below the application level.

Source Error:

Line 66: -->Line 67: <compilation debug="false">Line 68: <buildProviders>Line 69: <add extension=".asbx" type="Microsoft.Web.Services.BridgeBuildProvider" />Line 70: </buildProviders>

What did I do wrong? Thank you for any help.

It did not like the way my virtual directory was set up. I had to create a new virtual directory to the folder.