Hi everyone. I don't mean to be a bother on here, but I have an Asp.Net application that I am trying to set up at 1&1. They sent me this link: http://faq.1and1.com/scripting_languages_supported/asp_net/8.html and said to save this file as default.asp and stick it in the root (Changing my domains and stuff).
I did this, but cam getting an error:
Active Server Pages error 'ASP 0129'
Unknown scripting language
/default.asp, line 1
The scripting language 'c#' is not found on the server.
I can't figure out what this issue means, so I wanted to ask if anyone happens to know.
Here are the contents of my default.asp which I did in Dreamweaver. I picked asp.net c#. I just cleared out the directories and domains. Am I missing something, I wasn't sure what the problem could be.
<script runat="server" Language="c#">
public void Page_Init(Object Src, EventArgs E)
{
switch((Request.ServerVariables["HTTP_HOST"]).Replace("www.",""))
{
case "DOMAIN":
Response.Redirect("http://root/subdirectory/default.aspx");
break;
case "DOMAIN":
Response.Redirect("http://root/subdirectory/default.aspx");
break;
case "DOMAIN":
Response.Redirect("http://root/subdirectory/default.aspx");
break;
case "DOMAIN":
Response.Redirect("http://root/subdirectory/default.aspx");
break;
default:
Response.Redirect("");
break;
}
}
</script>
Thanks everyone for your help. I really appreciate it. :)
Question
M_Lyons10
Hi everyone. I don't mean to be a bother on here, but I have an Asp.Net application that I am trying to set up at 1&1. They sent me this link: http://faq.1and1.com/scripting_languages_supported/asp_net/8.html and said to save this file as default.asp and stick it in the root (Changing my domains and stuff).
I did this, but cam getting an error:
Active Server Pages error 'ASP 0129'
Unknown scripting language
/default.asp, line 1
The scripting language 'c#' is not found on the server.
I can't figure out what this issue means, so I wanted to ask if anyone happens to know.
Here are the contents of my default.asp which I did in Dreamweaver. I picked asp.net c#. I just cleared out the directories and domains. Am I missing something, I wasn't sure what the problem could be.
Thanks everyone for your help. I really appreciate it. :)
Link to comment
https://www.neowin.net/forum/topic/874124-aspnet-question/Share on other sites
3 answers to this question
Recommended Posts