hyperlink URL forced to localhost

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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?lineID=2&VIN=5TELU42N27Z339824
It should be
http://isid6403/vrs/bioReport.aspx?lineID=2&VIN=5TELU42N27Z339824
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????
 
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top