Click here to Skip to main content
15,867,568 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
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
Posted
Comments
Sergey Alexandrovich Kryukov 26-Jun-13 15:16pm    
OK, and what is that URI, exactly?
—SA

Invalid URI: The hostname could not be parsed

SQL
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).

 
Share this answer
 
v2
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.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900