Godaddy .net网站托管问题 - 没有这样的主机已知错误 [英] Godaddy .net site hosting issue - No Such host is known Error

查看:118
本文介绍了Godaddy .net网站托管问题 - 没有这样的主机已知错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要帮助将我的.net应用程序托管到 GoDaddy 服务器,因为他们的技术团队不确定这个问题。我的应用程序是在 C#.net 和数据库 mysql 上开发的。我编译了我的应用程序并发布并使用filezilla我将整个文件传输到GoDaddy目录。

I need help on hosting my .net application to GoDaddy server since their tech team is not sure about this issue. My application was developed on C#.net and database as mysql. I compiled my application and did publish and using filezilla i transferred entire files to GoDaddy directory.

现在应用程序加载,问题似乎在数据库方面。每当我尝试打开一个有数据库交互的页面时,我都会收到以下错误

Now the application loads, the issue is seems with Database side. Whenever i try to open a page which has database interaction i am getting the following error

我用来连接的连接字符串在屏幕截图中标有红色框,服务器是我正在使用的GoDaddy数据库服务器IP。

The connection string i am using to connect is marked with red box in the screen shot, there Server is GoDaddy Database server IP which i am using.

我不知道为什么我会收到这个错误。为了确认它不是来自应用程序代码端,我试图从我的localhost连接到GoDaddy服务器数据库。在这种情况下,在打开db 连接时会抛出相同的错误。

I don't know why i am getting that error. To confirm that it is not coming from application code side, i tried to connect to GoDaddy server database from my localhost. In that case the same error throws while opening db connection.

那么在这种情况下,问题是什么?

So in that case what and where will be the issue?

具有以前 GoDaddy 托管经验的人可以帮我识别问题吗?

Can someone with previous GoDaddy hosting experience help me to identify the issue?

这是与连接字符串问题有关吗?

Is this something related to connectionstring issue?

推荐答案

此错误实质上意味着IP无法解析为主机名。

This error essentially means the IP cannot be resolved to a host name.

这里可能会发生一些事情:

A few things that might be going on here:


  • 外部IP在内部不起作用,在这种情况下,您应修改连接字符串,以便在必要时使用内部主机名和端口(它应该在GoDaddy中的某个位置可用) 。

  • The external IP does not work internally in which case, you should modify your connection string so that it uses the internal host name and port if necessary (it should be available somewhere in GoDaddy).

您的IP和/或端口错误。检查您的连接设置。

You have the wrong IP and/or port. Check your connection settings.

您使用的连接字符串格式错误。仔细检查提供者的格式。我见过MySQL的连接字符串,其中端口是一个单独的参数,如下所示:

You are using the wrong format for your connection string. Double check the format against the provider. I have seen connection strings for MySQL where the port is a separate argument, like this:

连接字符串 Server = myServerAddress; Port = 1234; Database = myDataBase; Uid = myUsername; Pwd = myPassword;

这篇关于Godaddy .net网站托管问题 - 没有这样的主机已知错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆