HTTP错误 500.19 - Internet Server Error 无法访问请求的页面,因为该页的相关配置数据无效。 IIS,出现这个错误 怎么回事?...

版权声明:本文为博主原创文章,遵循 CC 4.0 by-sa 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/wangleide414/article/details/84359036

HTTP错误 500.19 - Internet Server Error 无法访问请求的页面,因为该页的相关配置数据无效。
IIS,出现这个错误
怎么回事?

 

1、win+r 运行 C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe -i 重新注册一下asp.net。

其中v2.0.50727是Framework的版本号,可以手动在目录里找找确认一下。 
2、要取消锁定可以运行命令行:“%windir%\system32\inetsrv\appcmd unlock config -section:system.webServer/handlers”
值得注意的是,运行上面的命令,必须保障是用以管理员身份运行,不然会报错的,看样子aspnet_regiis.exe 是得引起重视,好多莫名其他的事情都是通过重新注册后解决的。 
本文来自胡摘网[z.hackpro.cn],转载请标明出处:http://www.hackpro.cn/art/2738.html

展开阅读全文

Error 500--Internal Server Error 这个错误怎么回事?如何解决?

12-26

Error 500--Internal Server Error rnjavax.servlet.ServletException: [HTTP:101249][ServletContext(id=21250841,name=DefaultWebApp,context-path=)]: Servlet class LoginServlet for servlet LoginServlet could not be loaded because the requested class was not found in the classpath D:\bea\user_projects\applications\mydomain\DefaultWebApp\WEB-INF\classes;D:\bea\user_projects\domains\mydomain\.\myserver\.wlnotdelete\extract\myserver_DefaultWebApp_DefaultWebApp.rnjava.lang.ClassNotFoundException: LoginServlet.rn at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:834)rn at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:535)rn at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:373)rn at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:315)rn at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6718)rn at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)rn at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)rn at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3764)rn at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2644)rn at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)rn at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)rn rn 论坛

发送邮件出现这个错误???怎么回事???

11-07

rnrnimport java.util.*;rnimport javax.mail.*;rnimport javax.mail.internet.*;rnimport javax.activation.*;rnrnpublic class SimpleSendMessage rnrn public static void main(String[] args) rnrn // Collect the necessary information to send a simple messagern // Make sure to replace the values for host, to, and from withrn // valid information.rn // host - must be a valid smtp server that you currently havern // access to.rn // to - whoever is going to get your emailrn // from - whoever you want to be. Just remember that many smtprn // servers will validate the domain of the from addressrn // before allowing the mail to be sent.rn String host = "smtp.163.com";rn String to = "zmrljl@yeah.net";rn String from = "zmrljl@yeah.net";rn String subject = "mail test";rn String messageText = "I am sending a message using ";rn boolean sessionDebug = false;rnrn // Create some properties and get the default Session.rn Properties props = System.getProperties();rn props.put("mail.host", host);rn props.put("mail.transport.protocol", "smtp");rn props.put("mail.smtp.auth", "true"); //允许smtp校验rnrn try rn Session session =Session.getInstance(props,new MailAuthenticator("zmrljl","fcyljl"));rn PasswordAuthentication psw=new PasswordAuthentication("zmrljl","888ljl");rn session.setPasswordAuthentication(new URLName(host),psw);rn //Transport transport = session.getTransport("smtp");rn //transport.connect(host,"yeaker","quizhun");rnrn //session.setPasswordAuthentication("yeaker","quizhun");rnrn // Set debug on the Session so we can see what is going onrn // Passing false will not echo debug info, and passing truern // will.rn session.setDebug(sessionDebug);rnrnrnrn // Instantiate a new MimeMessage and fill it with thern // required information.rn Message msg = new MimeMessage(session);rnrn msg.setFrom(new InternetAddress(from));rn InternetAddress[] address = new InternetAddress(to);rn msg.setRecipients(Message.RecipientType.TO, address);rn msg.setSubject(subject);rn msg.setSentDate(new Date());rn msg.setText(messageText);rnrn // Hand the message to the default transport servicern // for delivery.rnrn Transport.send(msg);rn rn catch(MessagingException mex)rn mex.printStackTrace();rn //System.out.println("can't send mail");rn rnrn //end main()rnrnrnclass MailAuthenticator extends Authenticatorrn rn private String UserName;rn private String Password;rn public MailAuthenticator(String UserName,String Password)rn rn this.UserName = UserName;rn this.Password = Password;rn rnrn public PasswordAuthentication getPasswordAuthentication()rn rn return new PasswordAuthentication(this.UserName,this.Password);rn rn rnrnrnrnrnrnrn错误如下rnrnjavax.mail.SendFailedException: Sending failed;rn nested exception is:rn class javax.mail.AuthenticationFailedExceptionrnrn at javax.mail.Transport.send0(Transport.java:218)rnrn at javax.mail.Transport.send(Transport.java:80)rnrn at project.SimpleSendMessage.main(SimpleSendMessage.java:73)rnrn 论坛

Server Error in '/' Application. 错误,是怎么回事啊?

08-27

本地测试完全通过。可放到网上服务器上就出现这个问题,请大虾们帮忙解决一下啊!!!rnrn"Server Error in '/' Application.rn--------------------------------------------------------------------------------rnrnExecuteReader requires an open and available Connection. The connection's current state is connecting. rnDescription: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. rnrnException Details: System.Exception: ExecuteReader requires an open and available Connection. The connection's current state is connecting.rnrnSource Error: rnrnAn unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. rnrnStack Trace: rnrnrn[Exception: ExecuteReader requires an open and available Connection. The connection's current state is connecting.]rn DBFun.GetDataView(String strSQL) +139rn Web.Default.pageload() +28rn Web.Default.Page_Load(Object sender, EventArgs e) +5rn System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +15rn System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +34rn System.Web.UI.Control.OnLoad(EventArgs e) +99rn System.Web.UI.Control.LoadRecursive() +47rn System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1061rnrn rnrnrn--------------------------------------------------------------------------------"rn 论坛

没有更多推荐了,返回首页