I deleted my site on Sp 2010 and when I click MyContent sharepoint try to create a new MySite for me but get error like
There has been an error creating the personal site. Contact your site administrator for more information
When i check event viewer in server i see below error. What is Azure.thmx file? How can fix this problem any idea ?
Thanks
My Site creation failure for user 'DOMAIN\MyUSername' for site url 'http://mysite.xxx.com.tr/personal/MyUsername'.
The exception was: Microsoft.Office.Server.UserProfiles.PersonalSiteCreateException: A failure was encountered while attempting to create the site.
---> Microsoft.SharePoint.SPException: Failed to instantiate file "Azure.thmx" from module "OOBThemes": Source path "lists\themes\Azure.thmx" not found. ---> System.Runtime.InteropServices.COMException (0x81070587): <nativehr>0x81070587</nativehr><nativestack></nativestack>Failed to instantiate file "Azure.thmx" from module "OOBThemes": Source path "lists\themes\Azure.thmx" not found.
at Microsoft.SharePoint.Library.SPRequestInternalClass.SscCreateSite(Guid gApplicationId, String bstrUrl, String bstrServerRelativeUrl, Int32 lZone, Guid gSiteId, Guid gDatabaseId, String bstrDatabaseServer, String bstrDatabaseName, String bstrDatabaseUsername, String bstrDatabasePassword, String bstrTitle, String bstrDescription, UInt32 nLCID, String bstrOwnerLogin, String bstrOwnerUserKey, String bstrOwnerName, String bstrOwnerEmail, String bstrSecondaryContactLogin, String bstrSecondaryContactUserKey, String bstrSecondaryContactName, String bstrSecondaryContactEmail, Boolean bADAccountMode, Boolean bHostHeaderIsSiteName)
at Microsoft.SharePoint.Library.SPRequest.SscCreateSite(Guid gApplicationId, String bstrUrl, String bstrServerRelativeUrl, Int32 lZone, Guid gSiteId, Guid gDatabaseId, String bstrDatabaseServer, String bstrDatabaseName, String bstrDatabaseUsername, String bstrDatabasePassword, String bstrTitle, String bstrDescription, UInt32 nLCID, String bstrOwnerLogin, String bstrOwnerUserKey, String bstrOwnerName, String bstrOwnerEmail, String bstrSecondaryContactLogin, String bstrSecondaryContactUserKey, String bstrSecondaryContactName, String bstrSecondaryContactEmail, Boolean bADAccountMode, Boolean bHostHeaderIsSiteName)
--- End of inner exception stack trace ---
at Microsoft.SharePoint.SPGlobal.HandleComException(COMException comEx)
at Microsoft.SharePoint.Library.SPRequest.SscCreateSite(Guid gApplicationId, String bstrUrl, String bstrServerRelativeUrl, Int32 lZone, Guid gSiteId, Guid gDatabaseId, String bstrDatabaseServer, String bstrDatabaseName, String bstrDatabaseUsername, String bstrDatabasePassword, String bstrTitle, String bstrDescription, UInt32 nLCID, String bstrOwnerLogin, String bstrOwnerUserKey, String bstrOwnerName, String bstrOwnerEmail, String bstrSecondaryContactLogin, String bstrSecondaryContactUserKey, String bstrSecondaryContactName, String bstrSecondaryContactEmail, Boolean bADAccountMode, Boolean bHostHeaderIsSiteName)
at Microsoft.SharePoint.Administration.SPSiteCollection.Add(SPContentDatabase database, SPSiteSubscription siteSubscription, String siteUrl, String title, String description, UInt32 nLCID, String webTemplate, String ownerLogin, String ownerName, String ownerEmail, String secondaryContactLogin, String secondaryContactName, String secondaryContactEmail, String quotaTemplate, String sscRootWebUrl, Boolean useHostHeaderAsSiteName)
at Microsoft.SharePoint.SPSite.SelfServiceCreateSite(String siteUrl, String title, String description, UInt32 nLCID, String webTemplate, String ownerLogin, String ownerName, String ownerEmail, String contactLogin, String contactName, String contactEmail, String quotaTemplate, SPSiteSubscription siteSubscription)
at Microsoft.Office.Server.UserProfiles.UserProfile.<>c__DisplayClass2.<CreateSite>b__0()
--- End of inner exception stack trace ---
at Microsoft.Office.Server.UserProfiles.UserProfile.<>c__DisplayClass2.<CreateSite>b__0()
at Microsoft.SharePoint.SPSecurity.<>c__DisplayClass4.<RunWithElevatedPrivileges>b__2()
at Microsoft.SharePoint.Utilities.SecurityContext.RunAsProcess(CodeToRunElevated secureCode)
at Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(WaitCallback secureCode, Object param)
at Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(CodeToRunElevated secureCode)
at Microsoft.Office.Server.UserProfiles.UserProfile.CreateSite(String strRequestUrl, Boolean bCollision, Int32 lcid).
Copy Azure.thmx file from another server to C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\GLOBAL\Lists\themes folder in your server. :)
Related
on my SharePoint 2019 farm a had problem with RSI(Recently Shared Items). When upload or create any file with long filename and share it to other employee, it does not appear in the list for these employees. Files with short name all ok.
Some debugging:
w3wp.exe (0x04F4) 0x1898 SharePoint Foundation General boj18 Medium CITPList::SetValue failed with hr 0x81020018 for fieldid {31DE87B8-15D7-44EB-B43B-CD9BAD34CA40} 473263a0-d78c-0027-d85c-2a6886aea219
w3wp.exe (0x04F4) 0x1898 SharePoint Foundation General 8kh7 High Invalid text value. The text field contains invalid data. Check the field value and try again. 473263a0-d78c-0027-d85c-2a6886aea219
w3wp.exe (0x04F4) 0x1898 SharePoint Foundation Document Sharing awfk0 Unexpected Failed to cache recently shared item 'Documents/hiden long name file.pdf': Microsoft.SharePoint.SPException: Invalid text value. The text field contains invalid data. Check the field value and try again. ---> System.Runtime.InteropServices.COMException: Invalid text value. The text field contains invalid data. Check the field value and try again. in Microsoft.SharePoint.Library.SPRequestInternalClass.AddOrUpdateItem(String bstrUrl, String bstrListName, Boolean bAdd, Boolean bSystemUpdate, Boolean bPreserveItemVersion, Boolean bPreserveItemUIVersion, Boolean bUpdateNoVersion, Boolean bNoDemote, Int32& plID, String& pbstrGuid, Guid pbstrNewDocId, Boolean bHasNewDocId, String bstrVersion, Object& pvarAttachmentNames, Object& pvarAttachmentContents, Object& pvarProperties, Boolean bCheckOut, Boolean bCheckin, Boolean bUnRestrictedUpdateInProgress, Boolean bMigration, Boolean bPublish, String bstrFileName, ISP2DSafeArrayWriter pListDataValidationCallback, ISP2DSafeArrayWriter pRestrictInsertCallback, ISP2DSafeArrayWriter pUniqueFieldCallback) в Microsoft.SharePoint.Library.SPRequest.AddOrUpdateItem(String bstrUrl, String bstrListName, Boolean bAdd, Boolean bSystemUpdate, Boolean bPreserveItemVersion, Boolean bPreserveItemUIVersion, Boolean bUpdateNoVersion, Boolean bNoDemote, Int32& plID, String& pbstrGuid, Guid pbstrNewDocId, Boolean bHasNewDocId, String bstrVersion, Object& pvarAttachmentNames, Object& pvarAttachmentContents, Object& pvarProperties, Boolean bCheckOut, Boolean bCheckin, Boolean bUnRestrictedUpdateInProgress, Boolean bMigration, Boolean bPublish, String bstrFileName, ISP2DSafeArrayWriter pListDataValidationCallback, ISP2DSafeArrayWriter pRestrictInsertCallback, ISP2DSafeArrayWriter pUniqueFieldCallback)
Field id 31de87b8-15d7-44eb-b43b-cd9bad34ca40 is a Server Redirected Url they have MaxLength : 255. I think this is a problem, but currently i don't know what to do next and how to fix it
I tried find this field in ui, but nothing found
I'm using the Aspose library within PowerShell and having some issues with the CreationDate values that Aspose is giving me back.
$pdf = New-Object Aspose.Pdf.Facades.PdfFileInfo($pdffile)
$pdf.CreationDate
This returns a string with the value of:
D:20210630133144+10'00'
However PowerShell gives me this error when I try to cast it as DateTime
Cannot convert value "D:20210630133144+10'00'" to type "System.DateTime". Error: "The string was not recognized as a
valid DateTime. There is an unknown word starting at index 0."
I even tried trimming the first 2 chars but then the "+10'00'" timezone at the end causes it to fail as well. I could trim this too, but PowerShell seems to be able to intepret this value as a date automatically when displaying all properties:
PowerShell command line interpreting string as date
I found a similar thread on the Aspose forums where it seems to work as expected in C#. What am I missing here?
EDIT: Output of $pdf | Get-Member
TypeName: Aspose.Pdf.Facades.PdfFileInfo
Name MemberType Definition
---- ---------- ----------
BindPdf Method void BindPdf(Aspose.Pdf.Document srcDoc), void BindPdf(string srcFile), void BindPdf...
ClearInfo Method void ClearInfo()
Close Method void Close(), void IFacade.Close()
Dispose Method void Dispose(), void IDisposable.Dispose()
Equals Method bool Equals(System.Object obj)
GetDocumentPrivilege Method Aspose.Pdf.Facades.DocumentPrivilege GetDocumentPrivilege()
GetHashCode Method int GetHashCode()
GetMetaInfo Method string GetMetaInfo(string name)
GetPageHeight Method float GetPageHeight(int pageNum)
GetPageRotation Method int GetPageRotation(int pageNum)
GetPageWidth Method float GetPageWidth(int pageNum)
GetPageXOffset Method float GetPageXOffset(int pageNum)
GetPageYOffset Method float GetPageYOffset(int pageNum)
GetPdfVersion Method string GetPdfVersion()
GetType Method type GetType()
Save Method void Save(System.IO.Stream destStream), void Save(string destFile), void ISaveableFa...
SaveNewInfo Method bool SaveNewInfo(System.IO.Stream outputStream), bool SaveNewInfo(string outputFile)
SaveNewInfoWithXmp Method bool SaveNewInfoWithXmp(string outputFileName)
SetMetaInfo Method void SetMetaInfo(string name, string value)
ToString Method string ToString()
Author Property string Author {get;set;}
CreationDate Property string CreationDate {get;set;}
Creator Property string Creator {get;set;}
Document Property Aspose.Pdf.Document Document {get;}
HasCollection Property bool HasCollection {get;}
HasEditPassword Property bool HasEditPassword {get;}
HasOpenPassword Property bool HasOpenPassword {get;}
Header Property System.Collections.Generic.Dictionary[string,string] Header {get;set;}
InputFile Property string InputFile {get;set;}
InputStream Property System.IO.Stream InputStream {get;set;}
IsEncrypted Property bool IsEncrypted {get;}
IsPdfFile Property bool IsPdfFile {get;}
Keywords Property string Keywords {get;set;}
ModDate Property string ModDate {get;set;}
NumberOfPages Property int NumberOfPages {get;}
PasswordType Property Aspose.Pdf.PasswordType PasswordType {get;}
Producer Property string Producer {get;}
Subject Property string Subject {get;set;}
Title Property string Title {get;set;}
I personally have never seen this exact DateTime format before, there might be a way to parse it as is but here is an alternative that requires the trimming of D: and the removal of both appearances of ':
$date = "D:20210630133144+10'00'"
[datetime]::ParseExact(
$date.Trim("D:").Replace("'",''),
"yyyyMMddHHmmsszzzz",
[cultureinfo]::InvariantCulture
)
# Results in:
# Wednesday, June 30, 2021 12:31:44 AM
Windows 10, VS2013 professional
Window phone silverlight 8.1 application.
The error is:
The "GenerateResource" task failed unexpectedly.
System.InvalidOperationException: Item named 'xamls/simplelogin.xaml' of type 'System.IO.UnmanagedMemoryStream' cannot be added to the resource file because it is not serializable.
at Microsoft.Build.Tasks.ProcessResourceFiles.WriteResources(ReaderInfo reader, IResourceWriter writer)
at Microsoft.Build.Tasks.ProcessResourceFiles.WriteResources(ReaderInfo reader, String filename)
at Microsoft.Build.Tasks.ProcessResourceFiles.ProcessFile(String inFile, String outFileOrDir)
at Microsoft.Build.Tasks.ProcessResourceFiles.Run(TaskLoggingHelper log, ITaskItem[] assemblyFilesList, List`1 inputs, List`1 satelliteInputs, List`1 outputs, Boolean sourcePath, String language, String namespacename, String resourcesNamespace, String filename, String classname, Boolean publicClass, Boolean extractingResWFiles, String resWOutputDirectory)
at Microsoft.Build.Tasks.ProcessResourceFiles.Run(TaskLoggingHelper log, ITaskItem[] assemblyFilesList, List`1 inputs, List`1 satelliteInputs, List`1 outputs, Boolean sourcePath, String language, String namespacename, String resourcesNamespace, String filename, String classname, Boolean publicClass, Boolean extractingResWFiles, String resWOutputDirectory)
at Microsoft.Build.Tasks.GenerateResource.Execute()
at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__20.MoveNext() CarManagerWpApp
When i remove the "Microsoft.Sharepoint.Client.Phone.Auth.UI" reference, everything is allright. Unfortunately, this dll is crutial for me. I have seen a lot of 'The "GenerateResource" task failed unexpectedly' errors on net, none of solutions helped me.
Anyone has any idea? Thank you
When I try and save something to my list in SharePoint I get the following error:
Unable to complete this operation. Please contact your administrator.
at Microsoft.SharePoint.Library.SPRequestInternalClass.PutFile(String bstrUrl, String bstrWebRelativeUrl, Object varFile, PutFileOpt PutFileOpt, String bstrCreatedBy, String bstrModifiedBy, Int32 iCreatedByID, Int32 iModifiedByID, Object varTimeCreated, Object varTimeLastModified, Object varProperties, String bstrCheckinComment, UInt32& pdwVirusCheckStatus, String& pVirusCheckMessage)
at Microsoft.SharePoint.Library.SPRequest.PutFile(String bstrUrl, String bstrWebRelativeUrl, Object varFile, PutFileOpt PutFileOpt, String bstrCreatedBy, String bstrModifiedBy, Int32 iCreatedByID, Int32 iModifiedByID, Object varTimeCreated, Object varTimeLastModified, Object varProperties, String bstrCheckinComment, UInt32& pdwVirusCheckStatus, String& pVirusCheckMessage)
A quick google says it may be a problem with disk space on the Database. I have checked my server and the smallest amount of space left on any of the drives is ~4GB. The file size is 1MB. I have checked the database and the data file is on unrestricted growth.
Any ideas?
The problem was the transaction log was full preventing any changes. The data file was fine.
I have tried the import and export with and without file compression. Any ideas?
Here is the command I am using:
stsadm.exe -o export -url http://site.com/sites/legal/ -versions 4 -includeusersecurity -haltonfatalerror -filename c:\export\legalexport\ -nofilecompression
Here is the line in the export log:
[1/13/2010 8:33:21 AM]: Progress: Exporting File sites/legal/librarians.aspx.
Here is my import command:
stsadm.exe -o import -url http://site2.com/sites/legal/ -updateversions 2 -includeusersecurity -haltonfatalerror -filename c:\import\legalexport\ -nofilecompression
Here is the error on the import:
Progress: Importing File librarians.aspx.
Error: The system cannot find the file specified. (Exception from HRESULT: 0x800
70002)
at Microsoft.SharePoint.Library.SPRequestInternalClass.SetGhostedFile(String
setupPath, Byte setupPathVersion, Int32 iVersion, Guid& pguidListId, Guid& pguid
DocId, Int32 lDoclibRowId, Int32 iAuthorId, String authorLogin, String serverRel
ativeUrl, String targetUrlWebRelative, Boolean isInDocLib, Boolean isMigration,
Object varProperties)
at Microsoft.SharePoint.Library.SPRequest.SetGhostedFile(String setupPath, By
te setupPathVersion, Int32 iVersion, Guid& pguidListId, Guid& pguidDocId, Int32
lDoclibRowId, Int32 iAuthorId, String authorLogin, String serverRelativeUrl, Str
ing targetUrlWebRelative, Boolean isInDocLib, Boolean isMigration, Object varPro
perties)
at Microsoft.SharePoint.Deployment.FileSerializer.SetGhostedFile(Object fileO
rListItem, SPWeb web, Guid existId, String fileUrl, SerializationInfoHelper info
Helper, SerializationInfoHelper infoHelperListitem, SPImportSettings settings, B
oolean fileExistsInDb, StreamingContext context, ImportObjectManager importObjec
tManager)
FatalError: The system cannot find the file specified. (Exception from HRESULT:
0x80070002)
at Microsoft.SharePoint.Library.SPRequestInternalClass.SetGhostedFile(String
setupPath, Byte setupPathVersion, Int32 iVersion, Guid& pguidListId, Guid& pguid
DocId, Int32 lDoclibRowId, Int32 iAuthorId, String authorLogin, String serverRel
ativeUrl, String targetUrlWebRelative, Boolean isInDocLib, Boolean isMigration,
Object varProperties)
at Microsoft.SharePoint.Library.SPRequest.SetGhostedFile(String setupPath, By
te setupPathVersion, Int32 iVersion, Guid& pguidListId, Guid& pguidDocId, Int32
lDoclibRowId, Int32 iAuthorId, String authorLogin, String serverRelativeUrl, Str
ing targetUrlWebRelative, Boolean isInDocLib, Boolean isMigration, Object varPro
perties)
at Microsoft.SharePoint.Deployment.FileSerializer.SetGhostedFile(Object fileO
rListItem, SPWeb web, Guid existId, String fileUrl, SerializationInfoHelper info
Helper, SerializationInfoHelper infoHelperListitem, SPImportSettings settings, B
oolean fileExistsInDb, StreamingContext context, ImportObjectManager importObjec
tManager)
at Microsoft.SharePoint.Deployment.FileSerializer.CreateOrUpdateFile(Object f
ileOrListItem, SPWeb web, Guid id, String& fileUrl, Boolean fileExistsInDb, Bool
ean isFirstVersion, SerializationInfoHelper infoHelper, SerializationInfoHelper
infoHelperListitem, StreamingContext context, ImportObjectManager importObjectMa
nager)
at Microsoft.SharePoint.Deployment.FileSerializer.CreateOrUpdateFileAndAssocD
ata(Object fileOrListItem, SPWeb web, Guid id, String& fileUrl, Boolean fileExis
tsInDb, SerializationInfoHelper infoHelper, SerializationInfoHelper infoHelperLi
stitem, StreamingContext context, ISurrogateSelector selector)
at Microsoft.SharePoint.Deployment.FileSerializer.SetObjectData(Object obj, S
erializationInfo info, StreamingContext context, ISurrogateSelector selector)
at Microsoft.SharePoint.Deployment.XmlFormatter.ParseObject(Type objectType,
Boolean isChildObject)
at Microsoft.SharePoint.Deployment.XmlFormatter.DeserializeObject(Type object
Type, Boolean isChildObject, DeploymentObject envelope)
at Microsoft.SharePoint.Deployment.XmlFormatter.Deserialize(Stream serializat
ionStream)
at Microsoft.SharePoint.Deployment.ObjectSerializer.Deserialize(Stream serial
izationStream)
at Microsoft.SharePoint.Deployment.ImportObjectManager.ProcessObject(XmlReade
r xmlReader)
at Microsoft.SharePoint.Deployment.SPImport.DeserializeObjects()
at Microsoft.SharePoint.Deployment.SPImport.Run()
Progress: Import Completed.
Finish Time: 1/13/2010 6:49:19 AM.
Completed with 11 warnings.
Completed with 2 errors.
Log file generated:
c:\import\legalexport\import.log
The system cannot find the file specified. (Exception from HRESULT: 0x80070002)
Instead of -filename c:\export\legalexport\ try -filename c:\export\legalexport\exported.dat
Try adding the -cabsize (with a value of 1024 (MB)) switch, the default max file size is only 25 MB i believe. If the total size of the site's content is more than the (specified or default) cabsize, it will cut off the backup.
Are you importing it on the same server? I've had problems with custom web parts not existing on target servers that would cause pages to not be created.
I have also seen the problem where the order of the export somehow seemed mixed up; it was trying to import a file with a dependancy on a master page that was not imported yet.
Where is that librarians.aspx? What type of page? It is obviously not a standard SharePoint page. Is there something not OOB on/about it?
If you are up for it you can open the export files (they are .cab's) and verify the file to exist. You can also check the manifest file.
I tend to do exports/imports with the SharePoint deployment wizard, it gives you more granular control of what you want to export; you could export this missing file only.
Deleted corrupt files, re-exported, re-imported.