Tag Info

Hot answers tagged

6

SPContentDatabase.ForceDeleteSite http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.administration.spcontentdatabase.forcedeletesite.aspx use this method to force a delete: SPWebApplication spWebApplication = SPWebApplication.Lookup(new Uri("http://mywebapplication")); // insert the webapplication ...


5

Based on your question, there are two areas to address: How to help your particular problem How to handle workflow errors in general with SPD For your particular problem: I see something that may improve your process based on your description. You mention your general workflow as the following steps: item changes workflow reads fields workflow does ...


5

Under the website properties in IIS, GOTO > Traffic > Filtering and disable Verify Normalisation. This setting is preventing your site from displaying pages with escaped characters in the URLs. [update] In later versions of IIS it is in the general tab of the website properties, and not under Traffic.


4

You only see the last error because Set-Content overwrites the existing content, use Add-Content instead. If you want to have a more encompassing approach, like Robert suggested, there's a more PowerShell'y (?) way of doing this with Start/Stop-Transcript which takes all console output between the Start & Stop cmdlet calls and outputs it to a file.


3

In the first code snippet you have doubled the ' around getElementById. In the second code snippet you have forgotten the html: in front of getElementById Edit after James comment: If you are not using minimal download strategy, you do not have to use SOD.


3

I think you have a mistake in code. Your string.Format returns only <where> Try code below query.Query = string.Format(string.Concat( "<Where>", "<Or>", "<Eq>", ...


3

Try adding Both Delegate controls and it should resolve your problem.


3

It's an easy fix, at least this worked for me. Steps: Double click package in Visual Studio Go to Advanced tab Change the product version to 14.0 and you are good to go


3

You mention that the form is stored in http://sharepoint/travel, but the error mentions the form residing in http://sharepoint/services. It could be that /travel and or /services are (in) different site collections using explicit managed paths. Get a listing of all Site Collections in that Web Application and see if this is the case.


2

Have you check your user permissions? If yes then there should be some reasons in your central administration site. There should be the miss configuration of the apps. You could try to configure app in DNS server.


2

Default.aspx is a Site Page and inline C# or VB code is not allowed in Site Pages. So you need to replace the code block (i.e. <%= backUrl.ClientID %>) with the literal id of the element.


2

There are a couple of ways you can do this from the event receiver. The nice thing about an an event receiver is that you can get the instance of the list that the receiver is working on and from there easily access the Items Collection. From there you can iterate through the list and perform a check by item. There are plenty of tutorials to show you how ...


2

If you pause the workflow, it gets picked up again the next time the workflow timer job runs. So even if you set it for a fraction of a second, it is effectively paused until the next time the timer job is set to run. The default configuration is 5 minutes I believe and it can be altered via powershell to reduce the time to a minute.


2

Because there is no resources file specified in the call to the some resource key in your web part, SharePoint will look in the default places where you can place your resources files in the following order (given that your language is US-English). You must check all resources strings in your web part also ULS should have some string like "Localized ...


2

You may need to set "Update links on save" to false prior to adding your hyperlinks to the Excel spreadsheet. In Excel 2010: - uncheck "Update links on save" in Options > General > Web Options > Files tab In Excel 2013: - uncheck "Update links on save" in Options > Advanced > Web Options (under "General") > Files tab After changing the Excel setting, ...


2

Are you sure it was a subsite and not the main web site of the Site collection? You can use Central Administration to check your Site Collection -> Application Management -> Site Collections -> View all site collections and maybe you will find some answers there. And you can also try an iisreset. Please let me know how it goes.


2

For the sharepoint groups you getting 401, try below. Navigate to the sharepoint group settings page and set the property " Who can view the membership of the group?" to "Everyone".


1

you need to debug item["Category"].ToString(); and find out what is the value? "Value Does not fall within the expected Range" that denotes the casting is wrong or your looking at index 2 when there is only index o and 1. so how are you getting the value? string val = em["Category"].ToString(); but....what I belive is that your code is fine and ...


1

how about setting up the host, your getting 404 beacuse you dont have access, the mysite is setup and exists, you just need it as a trusted site: http://www.sharepoint2013.me/Blog/Post/274/Configure-My-Site-trusted-host-locations-in-SharePoint My Site host site collection The My Site host site collection is a special site collection that displays ...


1

make sure your getting the list from the correct site ;) based from the error you have given the webpart is trying to get a list from a specific site but it cannot find it! Unable to get a cached list with id '68d0fae2-7c96-41be-b1b3-1ce1211471af' from web '/[site]/[subsite]' 3c7d54dd-9f73-4022-bc0d-ca049c3fd2fe to explain what might be going ...


1

What about getting the SpSite first and then deleting it? $s = Get-SPSite "http://sharepoint/services" $s.Delete() Or if you cant get the site using that method you could iterate through the site collections in the web application... $spWebApp = Get-SPWebApplication "url here" foreach($site in $spWebApp.Sites) { #Logic Here to get the specific ...


1

The correlation id is unique to your request/operation to your SharePoint farm this will always be unique, so googling for it will never give anything usefull. Read Get the Real SharePoint Error using the ULS Logs for how to get the real error message


1

ChannelFactory<IService1> factory = null; BasicHttpBinding binding = new BasicHttpBinding(); binding.Security.Mode = BasicHttpSecurityMode.TransportCredentialOnly; binding.Security.Transport.ClientCredentialType = HttpClientCredentialType.Ntlm; binding.MessageEncoding = WSMessageEncoding.Mtom; EndpointAddress address = new ...


1

I've came back to this problem after a while. No, I can not access any information on the other list. My setup is simple for test purposes. I have List1 and List2. List2 has only Title column (straight out of the box). List1 has Title, Lookup column and UserAndGroup column. All I do in the WF is try to log a message to Workflow history list containing the ...


1

I can't test this, but this and you didn't include your errored statement so I can only give you the tools to solve your problem. For reference, here is the documentation on the IF Function in SharePoint: http://office.microsoft.com/en-au/windows-sharepoint-services-help/if-function-HA001161010.aspx In case that link ever dies in the future, here's the ...


1

I am unable to find the exact reason for the error: However pls go through the following points: 1) How to update a Readonly field. First set Readonly to false and update the field and then revert it back as: Field.ReadOnlyField = false; Field.Update(); 2) Updating the Lookupfield: new SPFieldLookupValue(1, "ASP.Net");


1

Plese check if security token service and its app pool are in good condition. then restart iis


1

Can you try giving proper rights to all 4 Search Databases in your Search service.Search service uses 4 databases namely Administration,Analytics Reporting,Crawl Store and Links Store, you can find these each individual database names in Search Service Application in Central Admin.


1

Sounds like the Application Pool Identity doesn't have access to the Search database in SQL Server. Check the permissions and if necessary, grant it the correct rights. This TechNet forum thread has a little more information that you might find helpful. The article is about the profile database but you might find a little more information about your ...


1

The problem was a issua of a Microsoft Update in my server. I found some forums relating the same problem. Was installed in my Windows Server 2008 R2 Service Pack 1 the KB2844286 Security Update. To fix it you can unistall KB2844286 or you can install an update in http://support.microsoft.com/kb/2872441 More details see ...



Only top voted, non community-wiki answers of a minimum length are eligible