mercredi 17 décembre 2014

Sharepoint App shows error



I started a new project and edited the Deafult.aspx.cs file and wen to build it and it comes up with an error. I am using SharePoint 2013 being hosted on Office 365, and I am using Visual Studio Ultimate 2013. The error does not give my any information though on how to solve it below is my code:



<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="MyFirstSharePointAppWeb.Pages.Default" %>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://ift.tt/1wgNr4H">
<html xmlns="http://ift.tt/lH0Osb">
<head runat="server">
<title></title>
<script src="http://ift.tt/13an6ts" type="text/javascript"></script>
<script type="text/javascript" src="http://ift.tt/1oHxfkX"></script>
<script type="text/javascript">
var hostweburl;

$(document).ready(function () {
hostweburl = decodeURIComponent(getQueryStringParameter("SPHostUrl"));
var scriptbase = hostweburl + "/_layouts/15/";

var dclink = document.createElement("link");
dclink.setAttribute("rel", "stylesheet");
dclink.setAttribute("href", scriptbase + "defaultcss.ashx");

var head = document.getElementsByTagName("head");
head[0].appendChild(dclink);
});

function getQueryStringParameter(paramToRetreive) {
var params = document.URL.split("?")[1].split("&");
var strParams = "";
for (var i = 0; i < params.length; i = i + 1) {
var singleParam = params[i].split("=");
if (singleParam[0] == paramToRetreive)
return singleParam[1];
}
}
</script>
</head>
<body>
<form id="form1" runat="server">
<h1 class="ms-core-pageTitle">Your First SharePoint Application</h1>
<h1 class="ms-accentText">Put your app UI here.</h1>
<div>
<h2 class="ms-webpart-titleText">Use the SharePoint CSS</h2>
<a class="ms-commandLink" href="#">links</a>
<br />
You can use the SharePoint CSS in your app by referencing it in your pages
</div>
</form>
</body>
</html>


Any help would be greatly appreciated since I'm still very new to SP 2013








0 commentaires:

Enregistrer un commentaire