我正在尝试为我的 ASP.NET Web 项目实现 AIML 机器人,但我不断收到此错误:
找不到指定的文件。
源错误:第 31 行:
{第 32 行:myBot = new Bot();
第 33 行:myBot.loadSettings(@"C:\Users\Public\Documents\SITE\bin\config");
第 34 行:myUser = new User("DefaultUser", this.myBot);
第 35 行:AIMLbot.Utils.AIMLLoader 加载器 = new AIMLbot.Utils.AIMLLoader(this.myBot);
这是我的代码:
protected void Page_Load(object sender, EventArgs e)
{
myBot = new Bot();
myBot.loadSettings(@"C:\Users\Public\Documents\SITE\bin\config");
myUser = new User("DefaultUser", this.myBot);
AIMLbot.Utils.AIMLLoader loader = new AIMLbot.Utils.AIMLLoader(this.myBot);
this.myBot.isAcceptingUserInput = false;
loader.loadAIML(@"C:\Users\Public\Documents\SITE\bin\aiml");
this.myBot.isAcceptingUserInput = true;
}
在我看来,在本地主机上运行时找不到配置文件夹?我究竟做错了什么?