无效的URI:无法解析主机名。 [英] Invalid URI: The hostname could not be parsed.

查看:1884
本文介绍了无效的URI:无法解析主机名。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我收到以下错误:



无效的URI:主机名无法解析。

使用以下代码阅读excel文件时

ExcelWorksheet工作表= xlPackage.Workbook.Worksheets [@Sheet1];

和该文件有一个单元格,其中包含带有邮件链接的电子邮件ID。



有没有删除链接的代码?

请帮帮我解决这个错误。





祝你好运,

Cien系统

解决方案

无效的URI:无法解析主机名



 我开始创建新网站时,我在本地主机上启动它。 

不幸的是, 我将其设置为 production 将域名链接到,别名 localhost 的一些模块> class =code-keyword>和 代码关键字>是一个问题。

现在我找到了一个解决方案 欺骗本地DNS 我的电脑引用域名 网站 localhost 我的主机 file (windows / drivers / etc)。




无效的URI:无法解析主机名



当我尝试设置/部署DotNetNuke环境时,我有几个小时的工作时间我的本地电脑。

我恢复了DNN的数据库备份,复制了我本地电脑驱动器上的源并为应用程序配置了虚拟目录。

我也进行了更改在Web.Config文件中;这是与连接字符串相关的更改。



因为我们必须在DBB DataBase中的PortalAlias表中指定Portal别名,所以我将其定义为localhost / dnnapp(您需要制作)确保这将是第一个PortalAlias条目,如localhost / dnnapp;并且不要添加http://部分。



完成所有这些设置后,我希望尝试过使用http:// localhost / dnnappURL访问应用程序;但我得到一个(在我看来是一个常见的错误)错误,无效的URI:主机名无法解析。我再次检查了我的数据库设置( UserID,pwd,PortalAlias等),Web.Config设置;但没有取得任何成功;除了错误消息中的一些变化;即页面无法显示。但我最常见的错误是无效 URL:无法解析主机名。最后,我试图阻止IIS并再次启动它,它最终起作用。我不确定这是否是此错误消息的解决方案,但它对我有用。

Hi,

I am getting following error:

Invalid URI: The hostname could not be parsed.
When reading excel file using following code
ExcelWorksheet worksheet = xlPackage.Workbook.Worksheets[@"Sheet1"];
and that file have a cell which have email ids with mail to link.

Is there any code to remove link ?
Please help me how to resolve that error.


Best regards,
Cien System

解决方案

Invalid URI: The hostname could not be parsed

when I start creating new sites, I start it up at my localhost.

Unfortunately, when I setup it up in production and link the domainname to it, the alias is localhost and on some modules that is a problem.

Now I found a solution by "tricking" the local DNS on my PC and refer the domainname of the site to localhost in my hosts file (windows/drivers/etc).



Invalid URI: The hostname could not be parsed

I was having few hours of work-a-round when I was trying to Set-up/Deploy the DotNetNuke Environment at my local pc.
I restore the DB Backup of DNN, copied the source at my local pc drive and configured the Virtual Directory for the application.
I also made the changes in Web.Config file; that is Connection String related changes.

As we have to specify the Portal Alias in PortalAlias Table in DBB DataBase, I defined it as localhost/dnnapp (you need to make sure that this would be the first PortalAlias entry, like localhost/dnnapp; and Do not add the http:// part.

After all these settings, I hopefully tried to access the application with "http://localhost/dnnapp" URL; but I got one (it seemed to me a common error) error, "Invalid URI: The hostname could not be parsed". I again checked my DataBase Settings (UserID, pwd, PortalAlias etc.) , Web.Config Settings; but didn't get any success; except some variation in error message; that is "Page cannot be displayed". But the most common error I was having is of "Invalid URL: The hostname could not be parsed" only. Lastly, I attempted to stop IIS and start it again, and it worked finally. I am not sure that this is the solution of this error message but it worked for me.


这篇关于无效的URI:无法解析主机名。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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