Stupid problem - Please help
Now, computer number 2. Same setup far as I can tell. Same directory in the wwwroot and same aspx file. I access on this computer http://localhost/directoryname and get an error:
HTTP 403: You are not authorized to view this page
So I try typing the full location pointing to the aspx file: http://localhost/directoryname/Default.aspx
This gives me the output of the script, however on computer number 1 when I run the script I get a download box asking me to save the xls file. This being the responce I want. What gives?
Content of aspx file:
<%@ Page Language="c#" %>
<%@ Import Namespace="System.Data" %>
<%@ Import Namespace="System.Xml" %>
<%@ Import Namespace="System.Xml.Xsl" %>
<script language="C#" runat="server">
public void Page_Load(Object sender, EventArgs E) {
Response.ContentType = "application/vnd.ms-excel";
Response.Charset = "";
DataSet ds = new DataSet();
ds.ReadXml(Server.MapPath("KFMY.xml"));
XmlDataDocument xdd = new XmlDataDocument(ds);
XslTransform xt = new XslTransform();
xt.Load(Server.MapPath("Excel.xsl"));
xt.Transform(xdd, null, Response.OutputStream);
Response.End();
}
</script>

