小编hor*_*HAY的帖子

Azure功能:无法加载文件或程序集Newtonsoft.Json

我知道这个问题在网络和 stackoverflow 上被广泛报道,但我可以通过一些额外的帮助来解决这个问题。我收到与加载 Newtonsoft 相关的运行时错误,请参见下文;

[11/07/2020 18:37:17] A ScriptHost error has occurred
[11/07/2020 18:37:17] Exception while executing function: Alerts. EmailSender: Could not load file or assembly 'Newtonsoft.Json, Version=12.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. The system cannot find the file specified. mscorlib: Could not load file or assembly 'Newtonsoft.Json, Version=11.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. The system cannot find the file specified.
[11/07/2020 18:37:17] Exception while executing function: Alerts
[11/07/2020 18:37:17] Exception while executing function: Alerts. EmailSender: …
Run Code Online (Sandbox Code Playgroud)

c# azure azure-functions

5
推荐指数
1
解决办法
2744
查看次数

未捕获的TypeError:无法读取未定义的属性"值"

我从JavaScript验证中收到了Uncaught Type错误.这是javascript文件:http://pastebin.com/hH3vvFTS

这里是关联HTML:http://pastebin.com/mXHxfxiJ

完整的错误是:

Uncaught TypeError: Cannot read property 'value' of undefined validation.js:38
pwMatchVal validation.js:38
validateForm validation.js:5
onsubmit account.html:362
Run Code Online (Sandbox Code Playgroud)

任何帮助表示赞赏!

javascript typeerror

1
推荐指数
1
解决办法
8952
查看次数

从另一个类访问GUI组件

我是Java的新手,而且我遇到了一堵砖墙.我想从另一个类访问GUI组件(在一个类中创建).我正在从一个类创建一个新的GUI类,就像这样;

GUI gui = new GUI();
Run Code Online (Sandbox Code Playgroud)

我可以访问该类中的组件,但是当我去另一个班级时我不能.我真的只需要访问JTextAreas更新他们的内容.有人能指出我正确的方向,任何帮助都非常感谢.

GUI 类:

public class GUI {

    JFrame frame = new JFrame("Server");        
    ...
    JTextArea textAreaClients = new JTextArea(20, 1);  
    JTextArea textAreaEvents = new JTextArea(8, 1);

    public GUI()
    {
        frame.setLayout(new FlowLayout(FlowLayout.LEADING, 5, 3));     
        ...
        frame.setVisible(true);
    }
}
Run Code Online (Sandbox Code Playgroud)

java user-interface swing

1
推荐指数
1
解决办法
2万
查看次数

OutputSteam是抽象的

正如标题所说,得到错误"outputsteam是抽象的".我是Java的新手,所以不太确定如何解决它.我的程序正在尝试使用此代码将套接字上的连接的arraylist发送到客户端;

public void sendList(Socket clientSocket, ArrayList connections) throws IOException 
{
    OutputStream outputStream = new OutputStream(clientSocket.getOutputStream(), true); 
    ObjectOutputStream objectOutputStream = new ObjectOutputStream(outputStream);
    objectOutputStream.writeObject(connections);
    System.out.println("List sent");      
}
Run Code Online (Sandbox Code Playgroud)

提前致谢!

java sockets outputstream

0
推荐指数
1
解决办法
45
查看次数