Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ReferenceError: WebForm_AutoFocus is not defined

Tags:

asp.net

I have my web application asp.net everything is working well but when i publish it from another computer to localhost it throws an error

ReferenceError: WebForm_AutoFocus is not defined

and also Uncaught ReferenceError: WebForm_FireDefaultButton is not defined

in my code behind i have textbox1.Focus()

so what's the problem and how to fix it?

like image 240
user2114177 Avatar asked Jan 30 '26 10:01

user2114177


2 Answers

This happens also when webresource.axd file is inaccessible. Sometimes Firewall policy of Web Server can create this issue.

Please ensure this file is accessible.

If this file is accessible then look solutions provided in other answers of this question.

like image 82
vibs2006 Avatar answered Feb 02 '26 06:02

vibs2006


Try to turn off the ISAPI filters.

like image 29
Mark Avatar answered Feb 02 '26 06:02

Mark



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!