admin管理员组文章数量:1312782
I have published my code into QA server for testing. my code working fine on dev server. But on QA server my image button not fires an event. I went an developer console and see what i am getting. So i pare on my local to QA. Please find the images below. Those images from the developer tool-Console.
This is the error I am getting on QA
This is from my local host for the same page(working)
EDIT
If image not shown. This is the error I got.
Uncaught TypeError: Cannot read property 'PRM_ServerError' of undefined
MsAjaxJs?v=c42ygB2U07n37m_Sfa8ZbLGVu4Rr2gsBo7MvUEnJeZ81:1
I know this is kind of vague. But this is the error I got. I have no idea how I can find why my button not fire an event on QA server.
Please Help! Thanks
I have published my code into QA server for testing. my code working fine on dev server. But on QA server my image button not fires an event. I went an developer console and see what i am getting. So i pare on my local to QA. Please find the images below. Those images from the developer tool-Console.
This is the error I am getting on QA
This is from my local host for the same page(working)
EDIT
If image not shown. This is the error I got.
Uncaught TypeError: Cannot read property 'PRM_ServerError' of undefined
MsAjaxJs?v=c42ygB2U07n37m_Sfa8ZbLGVu4Rr2gsBo7MvUEnJeZ81:1
I know this is kind of vague. But this is the error I got. I have no idea how I can find why my button not fire an event on QA server.
Please Help! Thanks
Share Improve this question edited Mar 3, 2017 at 16:49 crony asked Mar 3, 2017 at 0:05 cronycrony 5116 gold badges14 silver badges25 bronze badges 2- 1 Looks like your files are not there – epascarello Commented Mar 3, 2017 at 0:10
- My images might not uploaded. I have added the error message under EDIT. Please find @epascarello – crony Commented Mar 3, 2017 at 0:20
3 Answers
Reset to default 4I have resolved my issue. As my image button was not fired, I have taken out the update panel from that .aspx page and set custom error mode to off on web.config on QA server. Then I could able to see the yellow(error) page.
My error was it was connecting to the wrong login user to database. When I created a entitymodel, I hide the username and password(integrated security=True). It works perfectly at my local machine. after I published it connecting to the different login. So, I gave username and password (persist security info=True) at datasource connection string. Now my image button event fired and worked perfectly.
Finally, I put back my update panel and ment out custom error mode from web.config on published server.
I will be glad if this helps someone!
Also had this problem with my .ascx user control (ASP.NET Web Pages project).
- Make sure you do this first
- In my case, I was missing a PostBackTrigger on my control:
<asp:PostBackTrigger ControlID="yourControl" />
Turned out, in my case, that the session state was being lost on Login. If this issue occurs for any one on the postback of the login credentials I would investigate this avenue.
I switched my site to use SQLServer Session management and all my problems disappeared.
<sessionState mode="SQLServer" sqlConnectionString="ASPState" allowCustomSqlDatabase="true" cookieless="false" cookieSameSite="None" timeout="780"/>
本文标签: javascriptUncaught TypeError Cannot read property 39PRMServerError39 of undefinedStack Overflow
版权声明:本文标题:javascript - Uncaught TypeError: Cannot read property 'PRM_ServerError' of undefined - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741851679a2401104.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论