So why when I add the line <%@ Import Namespace="Microsoft.Sharepoint" %> does the page error with:
An error occurred during the compilation of the requested file, or one of its dependencies. The type or namespace name 'Sharepoint' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?)
Here is the code:
<%@ Page Language="C#" %>
<%@ Import Namespace="System.IO" %>
<%@ Import Namespace="System.Text" %>
<%@ Import Namespace="System.Threading" %>
<%@ Import Namespace="Microsoft.Sharepoint" %>
<script language="C#" runat="server">
void Page_Load(){
DateTime modified = File.GetLastWriteTime(@"_vti_bin/listdata.svc/Conversations");
Response.Write(modified);
/*while (modified == File.GetLastWriteTime(@"_vti_bin/listdata.svc/Conversations")){
Thread.Sleep(10);
}*/
Response.Write("Change in HallPasses");
}
</script>
So what exactly am I doing wrong, I know I solved this problem at a previous job, I just forgot how. Help is much appreciated, thank you!