Showing posts with label runtime. Show all posts
Showing posts with label runtime. Show all posts

Monday, March 26, 2012

Access Method

Hello,

I am defining and adding a AutoCompleteExtender to a page at runtime but I am getting an error when defining:

MyAutoComplete.ServiceMethod ="GetCompletionList"

The "GetCompletionList" is a method inside the AutoComplete.asmx file.

What do I need to do so it become available?

Thanks,

Miguel

Miguel,

Where does the ASMX file reside? Do you have it referenced in your script manager section?

Please post your code. It should help narrow down the issue.

Tim


Hello,

I just added the asmx file using the VS menu so the .asmx file was placed on the root of my web site and the correspondent .vb file was placed in App_Code.

Is this what I should do?

Then I also added the following code line on MyPage.vb Init event:

MyScriptManager.Services.Add(New ServiceReference("AutoComplete.asmx"))

Thanks,

Miguel


Hi Miguel,

You need to specify the service path as well.

MyAutoComplete.ServicePath="AutoCompleteExtender.asmx" 

Saturday, March 24, 2012

A runtime error has occurred. Do you wish to debug ? Help

I get the subject error when i try to run sample asp.net ajax aps and even some day to day web pages. It seems to be "an unhandled exception (persmission denied" and "Jscript runtime error: Permission denied"

Simple error but I must be simple minded. What is going on?

Thanks for any help Pauley

;

hello.
you must give us more info if you want us to help you.

Hello Luis, thanks for responding. I think I am ok, I found a post to change advanced settings in Internet Explorer to NOT give a notice of script error. I did and I think I am ok now. I assume there are flaws in some code which IE exposes when it runs and that caused the error message.

Thank you.


hello.

you shouldn't do that. in fact, you should do the opposite in order to be notified about all the errors on your pages. if you're getting an exceptio, then believe me: there's something wrong with your code!