I've followed the instructions here http://msdn.microsoft.com/en-us/library/ms464040.aspx to the letter, when I run disco.exe I get this error:
The HTML document does not contain web service discovery information.
Any suggestions?
http://msdn.microsoft.com/en-us/library/ms464040.aspx
I had some problems with the declaration:
<% # WebService Language="C#" Class="MOSS_WebServices.My_Services, MOSS_WebServices ,
Version=1.0.0.0, Culture=neutral, PublicKeyToken=1b40cb3309a7591b" %>
When you run Disco.exe against your asmx file you may experience very
inconvenient message "HTML document does not contain Web service
discovery information". In my case it was very important to see the exact error message. Please find answer at http://malcan.com/EN/Lists/Tips%20and%20tricks/DispForm.aspx?ID=25
Related
The task is to migrate classic ASP functionality to SharePoint Server 2013.
On the ASP page, a certain link is visible only if the authenticated user's password can be retrieved from a database. The link looks similar to:
<a target="_blank" href="https://www.someurl.com/secure/login.php?username=<%=strUserName%>&password=<%=rsOpenOrders("CL_password")%>" onmouseover="self.status=' '; return true;">
<img border="0" src="somelogo.gif" width="267" height="80" /></a>
I'm new to SharePoint, and I would appreciate your help (conceptual and code snippet) in solving this problem.
I understand that writing "code behind" is not highly encouraged with SharePoint pages and web parts.
So, what's the best alternative to be able to use the authenticated username value in building the first querystring parameter, and to query a SQLServer database to retrieve the value for the second querystring parameter? Please ignore the security concern here. Thanks!
its called SPSecurityTrimmedControl
example:
<%# Register TagPrefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<SharePoint:SPSecurityTrimmedControl ID="SPSecurityTrimmedControl1" runat="server"
AuthenticationRestrictions="AuthenticatedUsersOnly" Permissions="ManageWeb" PermissionContext="CurrentSite">
<INCLUDE OUR CONTROL / CONTENT HERE>
</SharePoint:SPSecurityTrimmedControl>
I ended up creating custom web parts developed using Visual Studio 2013 for each particular link that needed query string parameters to be built based on values retrieved from database.
I want to use custom master pages in SharePoint-Hosted apps.
I followed this article: http://anthony-verschraegen.blogspot.fi/2013/03/sharepoint-2013-apps-custom-app-master.html
But after my solution deployment to site collection (Myportal/sites/apps) i get File Not Found error. How to solve this problem?
Specify your solution structure and URL details will help your question get answer correctly.
Sometime the mismatching, typo in some path will lead you to this error. Within your provided information, I suggest that you should perform the following check:
Check the Module element.xml file: Module Name, File Path, File Url
<Module Name="MasterPage">
<File Path="MasterPage\appNew.master" Url="_catalogs/masterpage/appNew.master" ReplaceContent="TRUE" /></Module>
Check the .aspx file:
Remember the path: "~site/_catalogs/masterpage/"
<%# Page Language="C#" MasterPageFile="~site/_catalogs/masterpage/appNew.master" Inherits="Microsoft.SharePoint.WebPartPages.WebPartPage, Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
Check the package.package file: Does the MasterPage module added to any of your features ?
After make sure the above correct, please let me know if you're still facing this problem.
I have created a page layout for my publishing site. On this page layout i want to add a commenting and rating option.
The rating options shows up just fine on the page but the commentcontrol doesn't seem to be there...
After some research i put the commentcontrol in a webpartzone but this didn't affect the outcome.
Does anyone know what i am doing wrong?
This is my code for adding the commenting part:
<div data-name="WebPartZone">
<!--CS: Start Web Part Zone Snippet-->
<!--SPM:<%#Register Tagprefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c"%>-->
<!--MS:<WebPartPages:WebPartZone runat="server" ID="x0e5f5212505f48a9aac43df13eeae4f9" AllowCustomization="True" AllowPersonalization="False" FrameType="TitleBarOnly" LockLayout="True" Orientation="Vertical">-->
<!--MS:<ZoneTemplate>-->
<!--SPM:<%# Register TagPrefix="SharePointPortalControls" Namespace="Microsoft.SharePoint.Portal.WebControls" Assembly="Microsoft.SharePoint.Portal, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>-->
<p>Comment:</p><!--MS:<SharePointPortalControls:SocialCommentControl ID="CommentControl" runat="server"/>-->
<!--ME:</ZoneTemplate>-->
<!--ME:</WebPartPages:WebPartZone>-->
<!--CE: End Web Part Zone Snippet-->
</div>
BTW, i am working in the html file using sharepoint 2013.
thnx
Have you checked your user profile service app in Central Admin? I couldn't even get into it via Central Admin; in the logs I was getting "This User Profile Application's connection is currently not available" So I deleted the service app, recreated, iisreset and presto! All my comment controls magically appeared.
hi my scenario is I want to give the user the ability to browse SharePoint for a file and then the dialog should give me back the URL of that file.
Is this simple? And how to do it?
You can give a try to the AssetUrlSector control from SharePoint.
You can find the MSDN article at
AssetUrlSelector class
Sample code for the control:
<CMS:AssetUrlSelector
ID="assetSelectedImage"
CssTextBox="ms-input ms-assetimagedialog-longtextbox"
UseImageAssetPicker="true"
MaxLength="512"
DecodeUrlPath="false"
AccessibilityName="<%$Resources:cms, asseteditimage_selectedimage_label%>"
runat="server"
AllowExternalUrls="false"
ValidateUrl="true" />
Where CMS is:
<%# Register
TagPrefix="CMS"
Namespace="Microsoft.SharePoint.Publishing.WebControls"
Assembly="Microsoft.SharePoint.Publishing, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
Hope this helps.
I have created a visual web part that combines two other previously created web parts into one nicely styled web part. This is done simply by adding Register tags to the ascx page of the web part, and then adding the web part tags just as I would on a page layout, like so:
WebPart_ParentAssignmentsUserControl.ascx:
<%# Register tagprefix="WebParts" namespace="Microsoft.SharePointLearningKit.WebParts" assembly="Microsoft.SharePointLearningKit, Version=1.3.1.0, Culture=neutral, PublicKeyToken=24e5ae139825747e" %>
<%# Register tagprefix="MyChildrenWebPart" namespace="MLG2010.WebParts.MyChildren.MyChildrenWebPart" assembly="MLG2010.WebParts.MyChildren, Version=1.0.0.0, Culture=neutral, PublicKeyToken=9f4da00116c38ec5" %>
<WebParts:AssignmentListWebPart runat="server" ListScope="false" AllowEdit="True" AllowConnect="True" Title="Assignment List Web Part" IsIncluded="True" Dir="Default" SummaryWidth="150px" IsVisible="True" AllowMinimize="True" AllowHide="True" ExportControlledProperties="True" ZoneID="" ID="g_1c528b46_baf2_4cf2_a004_91f84c4f4556" FrameState="Normal" DisplaySummary="True" ExportMode="All" SuppressWebPartChrome="False" DetailLink="" HelpLink="" MissingAssembly="Cannot import this Web Part." PartImageSmall="" AllowRemove="True" ToolTip="Assignment List - Use this web part to keep track of your SharePoint Learning Kit assignments." HelpMode="Modeless" FrameType="Default" AllowZoneChange="True" PartOrder="0" Description="Display the assignments for an instructor or learner." PartImageLarge="" IsIncludedFilter="" __MarkupType="vsattributemarkup" __WebPartId="{1c528b46-baf2-4cf2-a004-91f84c4f4556}" WebPart="true" Height="" Width=""></WebParts:AssignmentListWebPart>
<MyChildrenWebPart:MyChildrenWebPart runat="server" PageSize="5" StudentsSiteURL="/student" PictureLibraryTitle="Students Picture Library" ADChildAttribute="otheripphone" Description="My WebPart" DefaultPictureURL="../../Students Picture Library/DefaultChild.jpg" ShowErrors="True" PictureLibraryUrl="../../Students Picture Library" Title="MyChildrenWebPart" ADEntryPoint="LDAP://dc=redconnect-test" __MarkupType="vsattributemarkup" __WebPartId="{d13a3729-e2b8-4436-ac1b-b75c914a3596}" WebPart="true" __designer:IsClosed="false" id="g_d13a3729_e2b8_4436_ac1b_b75c914a3596"></MyChildrenWebPart:MyChildrenWebPart>
The problem here, is that I need these two web parts to communicate via web part connections. since they are only added here on the aspx, sharepoint does not "know" about them, and thus they do not get a chrome and thus I cannot set up the web part connections in the browser.
Is there a way to set up web part connections on web parts that are added this way? Or maybe if I can just activate the chrome on these web parts?
You can define the connection statically. Note that using this way, you cannot create/modify/delete the connection using the browser.
See:
How to: Declare a Static Connection between Two Web Parts Controls
In the end, I separated the web part into the pieces that could connect normally, and then used styling to make it look as if they were one. I have not found any documentation on the consequences of putting web parts inside other web parts as i attempted.