Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Ajax error: Sys.ArguementException: "Can not find last / in base URL" 1

Status
Not open for further replies.

sheila11

Programmer
Dec 27, 2000
251
US
Hi all,

I have an Asp.Net site that uses out of the box Ajax functionality (Script Manager, Update Panel and a few simple server-controls.)
This site has been working fine.

Now I need to open this site in a browser that is embebed in another desktop application's form, and when I click on a button inside the UpdatePanel,
I get an error like this:
Sys.ArguementException: "Can not find last / in base URL"

I tried catching the error using ScriptManager1_AsyncPostBackError, but couldn't.
I also tried catching it in JavaScript using:

Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequest);
but it occurs before it gets there.

Has anyone seen this error?
Any advice?

Thanks,
Sheila
 
looks like a problem with the url. design the page without ajax and confirm it is working. then apply ajax were it's necessary.

I have had problems in the past with query string dates formatted as MM/dd/yy. the slashes (/) where breaking ms ajax. I don't know if this is still a problem with the current builds. I moved away from webforms and ms ajax.

you may also want to check out fiddler for IE and firebug for FF to help with http debugging.

Jason Meckley
Programmer
Specialty Bakers, Inc.

faq855-7190
faq732-7259
 
Thanks, Jason.

The url looks fine. (I printed out the url just to verify that the hosting desktop app is not changing it.)

I've installed firebug, but am not able to make any headway with it. Any ideas on what I should be looking for?

Thanks again,
Sheila
 
Correction: I am focusing on IE, so am using Fiddler2.
 
you would be looking for errors with the response from the server that may give clues into what's failing.

Jason Meckley
Programmer
Specialty Bakers, Inc.

faq855-7190
faq732-7259
 
Thanks, Jason. I found the error. It's the way the desktop treats the page the first time it's loaded that is causing it.

In the process, I learnt to use Fiddler too!

Thanks again.
Sheila
 
awesome!

Jason Meckley
Programmer
Specialty Bakers, Inc.

faq855-7190
faq732-7259
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top