ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   hyperlink URL forced to localhost (https://www.excelbanter.com/excel-programming/375019-hyperlink-url-forced-localhost.html)

Eggle

hyperlink URL forced to localhost
 
I write a hyperlink in a cell but the URL has "localhost" where it should
have the URL I actually specified in my code.

Some sort of substitution is happening. Any ideas?

1) I have unchecked the "replace as you type" AutoCorrect feature.

2) This is the URL opened when I click on my hyperlink cell
http://localhost/vrs/bioReport.aspx?...LU42N27Z339824
It should be
http://isid6403/vrs/bioReport.aspx?l...LU42N27Z339824
ISID6403 is a windows machine on my intranet, not an outside www URL

3) This is the code that creates the URL - - ASP.NET, C# - - no its not VB

string myName = Request.ServerVariables["SERVER_NAME"];
string vrsURL =
string.Format("http://{0}/vrs/bioReport.aspx?lineID={1}",myName,lineID);

4) I log "SERVER_NAME" to the eventlog and it shows "SERVER_NAME=ISID6403"

So, how do I get a real intranet URL in my hyperlink????





NickHK

hyperlink URL forced to localhost
 
How about ask in an ASP.Net group ?

NickHK

"Eggle" wrote in message
...
I write a hyperlink in a cell but the URL has "localhost" where it should
have the URL I actually specified in my code.

Some sort of substitution is happening. Any ideas?

1) I have unchecked the "replace as you type" AutoCorrect feature.

2) This is the URL opened when I click on my hyperlink cell

http://localhost/vrs/bioReport.aspx?...LU42N27Z339824
It should be
http://isid6403/vrs/bioReport.aspx?l...LU42N27Z339824
ISID6403 is a windows machine on my intranet, not an outside www URL

3) This is the code that creates the URL - - ASP.NET, C# - - no its not VB

string myName = Request.ServerVariables["SERVER_NAME"];
string vrsURL =
string.Format("http://{0}/vrs/bioReport.aspx?lineID={1}",myName,lineID);

4) I log "SERVER_NAME" to the eventlog and it shows

"SERVER_NAME=ISID6403"

So, how do I get a real intranet URL in my hyperlink????







Eggle

hyperlink URL forced to localhost
 
OOPS - it was a permissions issue.
ASP.NET was not configured with access to DCOM Excel Application

see this KB article so it doesn't happen to you.
/kb/288367
and /kb/288366





All times are GMT +1. The time now is 03:08 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com