Creating site collection in claims enabled webapplication with each in seperate content database
Hi All,
We have a requirement where end user have a option to create site collection with out contacting farm admin, and each site collection would be created in separate content db.
we used WebApplication.sites.add() which is working only for classic authentication web applications.
how do we create site collections in claims enable web application with each site in separate content db?
Any thoughts on this would be helpful.
ragava_28
Hi,
We can use Self Service Site Creation to achieve your requirement.
The code snippet below for your reference:
using (var site = rootSite.SelfServiceCreateSite(siteCollectionUrl, title, description, locale, null, adminLogin, adminName, adminEmail, secondaryAdminLogin, secondaryAdminName, secondaryAdminEmail))
var web = site.RootWeb;
web.AllowUnsafeUpdates = true;
//Activate web template feature
site.Features.Add(webTemplateFeatureGuid);
//Apply web Template
using (var s = new SPSite(site.ID))
var webTemplates = s.RootWeb.GetAvailableWebTemplates(locale);
var webTemplateId = "{" + webTemplateFeatureGuid.ToString() + "}#" + webTemplateName;
var webTemplate = webTemplates[webTemplateId];
if (webTemplate != null)
web.ApplyWebTemplate(webTemplate);
// need to reload web. Features in webtemplate have modified it!
web = site.OpenWeb(web.ServerRelativeUrl);
// Continue doing stuff to new site
Here is a similar thread for your reference:
http://sharepoint.stackexchange.com/questions/26303/unable-to-create-site-collection-programmatically
Best Regards
Dennis Guo
TechNet Community Support
Similar Messages
-
Hi there,
I am having some strange issue with my PowerPivot for SharePoint but can't figure out what is causing this. Here is what happened:
I setup PowerPivot (PP) for SharePoint and activate it on few site collections in production environment; I upload a PP workbooks in a library, manage the data refresh schedules, run the data refresh for an external SQL databases, etc. Everything works
fine for several days.
One day we decide the move one of the site collections (X) from its current content database to its own (new) content db. The way we did it is that we took the site collection backup in production, restored it in test environment (in its own content
db; we deleted the old site collection in test first before restoring), checked everything including PP data refreshes etc.; all worked fine.
Then we did the same thing in production - we deleted the old site collection X, restored the site collection from the same backup file that we used in test environment, everything works fine EXCEPT the PowerPivot refreshes!! :-(
I am getting these errors: When I click on the workbook, it gives this error "An error occurred during an attempt to establish a connection to the external data source. The following connections failed to refresh: PowerPivot Data"
When I click OK on error dialogbox, it opens the workbook fine but no slicers/refreshes work now. When I go back to the library and click on "Manage PowerPivot Data Refresh" to open the refresh history/schedule page, it gives this generic but scary
error: "An unexpected error has occurred. Troubleshoot issues with Microsoft SharePoint Foundation." ULSViewer or Event viewer is not showing anything related to this error!
Strange thing is that PP refresh works fine in Test environment, as well as on other site collections in production that we didn't touch (which tells me there is nothing wrong with my PP configuration). Did the backup/restore in prd cause anything? Did moving
it in its own contentdb cause anything? (But then why it works in test environment?) Is there anything wrong with site collection PP feature? Can force reactivating it help??????? I am just lost and going crazy now!
Please help.
AsifI have found some entries in ULS logs seemingly relevant to this issue as below: Please help. Thanks.
Note: I have replaced urls with <url> or <server> and username with "domain\user".
ExternalSource.GetExternalKeyAndStateAndMarkUsed: Populating the session's credentials for external data. Index=0, Credentials=[14337250,
domain\user]
ConnectionRequest.ConnectionRequest: New connection request. SessionId=1.V24.1916ClMR0rOQ1F8mQPqtil0V90.5.en-US5.en-US73.-0600#0000-04-00-01T03:00:00:0000#+0000#0000-10-00-01T02:00:00:0000#-006036.7dcb49ef-0dc4-45d2-a0f8-4dc0e18a70f41.N,
WorkbookVersion=ConnectionInfo.WorkbookVersion: Uri=http://<url>/SQL_PowerPivotTest.xlsx, Version=Monday, 09 September 2013 06:29:42
Check whether "http://<url>/SQL_PowerPivotTest.xlsx" is in the farm.
Connecting to "http://<server>/_vti_bin/PowerPivot/Redirector.svc/?DataSource=/team/IT/SiteCollectionDocuments/SQL_PowerPivotTest.xlsx&LocaleID=1033".
WcfSendRequest: RemoteAddress: 'http://<server>:32843/0a4610a7f75f4ff582ca7329256f0fe3/SSASMidTierService.svc' Channel: 'Microsoft.AnalysisServices.SharePoint.Integration.IGeminiServiceApplicationClient'
Action: 'http://tempuri.org/IGeminiServiceApplication/GetDatabase' MessageId: 'urn:uuid:44f67e36-7ec2-4fe8-bd4c-277c9d9ddde7'
WcfReceiveRequest: LocalAddress: 'http://<server>:32843/0a4610a7f75f4ff582ca7329256f0fe3/SSASMidTierService.svc' Channel: 'System.ServiceModel.Channels.ServiceChannel'
Action: 'http://tempuri.org/IGeminiServiceApplication/GetDatabase' MessageId: 'urn:uuid:44f67e36-7ec2-4fe8-bd4c-277c9d9ddde7'
Entering monitored scope (ExecuteWcfServerOperation)
Obtaining routing information for the request using <SERVER> - User:domain\user, DataSource: http://<url>/SQL_PowerPivotTest.xlsx,
Version: 09/09/2013 06:29:42. (RequestStartTime=[<SERVER>])
Leaving Monitored Scope (ExecuteWcfServerOperation). Execution Time=10.7664521608193
EXCEPTION: System.ServiceModel.FaultException`1[System.ServiceModel.ExceptionDetail]: Unable to find the specified file. (Fault Detail
is equal to An ExceptionDetail, likely created by IncludeExceptionDetailInFaults=true, whose value is: System.IO.FileNotFoundException: Unable to find the specified file.
at Microsoft.SharePoint.SPFile.EnsureUniqueId()
at Microsoft.SharePoint.SPFile.get_UniqueId()
at Microsoft.AnalysisServices.SharePoint.Integration.Redirector.BackendRedirectService.GetDatabase(String loginName,
String dataSource, String versionLabel, DateTime fileLastModifiedTimestamp, Int32 localeId, Boolean collectHeathInfo, Boolean createLocal, String serverEndpointAddress)
at Microsoft.AnalysisServices.SharePoint.Integration.GeminiServiceApplication.GetDatabase(String loginName, String
dataSource, String dataSourceVersion, DateTime fileLastModifiedTimestamp, Int32 localeId, Boolean collectHeathInfo, Boolean createLocal, String serverEndpointAddress)
at SyncInvokeGetDatabase(Object , Object[] , Object[] )
at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs)
at Sy...).
Proxy encountered an error while trying to get the sandbox information. This request will be terminated
EXCEPTION: System.ServiceModel.FaultException`1[System.ServiceModel.ExceptionDetail]: Unable to find the specified file. (Fault Detail
is equal to An ExceptionDetail, likely created by IncludeExceptionDetailInFaults=true, whose value is: System.IO.FileNotFoundException: Unable to find the specified file.
at Microsoft.SharePoint.SPFile.EnsureUniqueId()
at Microsoft.SharePoint.SPFile.get_UniqueId()
at Microsoft.AnalysisServices.SharePoint.Integration.Redirector.BackendRedirectService.GetDatabase(String loginName,
String dataSource, String versionLabel, DateTime fileLastModifiedTimestamp, Int32 localeId, Boolean collectHeathInfo, Boolean createLocal, String serverEndpointAddress)
at Microsoft.AnalysisServices.SharePoint.Integration.GeminiServiceApplication.GetDatabase(String loginName, String
dataSource, String dataSourceVersion, DateTime fileLastModifiedTimestamp, Int32 localeId, Boolean collectHeathInfo, Boolean createLocal, String serverEndpointAddress)
at SyncInvokeGetDatabase(Object , Object[] , Object[] )
at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs)
at Sy...).
PF_CHECK_ERROR returned 'critical hresult error' 0x80004005 ; Stack Trace:NA
PF_CHECK_ERROR returned 'critical hresult error' 0x80004005 ; Stack Trace:NA
PF_CHECK_ERROR returned 'hresult error' 0x80040e41 ; Stack Trace:NA
ConnectionManager.GetConnection: Failed to create new connection, exception=Microsoft.Office.Excel.Server.CalculationServer.Interop.ConnectionException:
Exception of type 'Microsoft.Office.Excel.Server.CalculationServer.Interop.ConnectionException' was thrown.
at Microsoft.Office.Excel.Server.CalculationServer.Interop.ConnectionInterop.InitConnection()
at Microsoft.Office.Excel.Server.CalculationServer.ConnectionManager.<>c__DisplayClass3.<CreateConnection>b__0()
at Microsoft.Office.Excel.Server.Credentials.TryExecuteImpersonated(WindowsIdentity wi, ExecuteImpersonatedMethod
method, Boolean dispose)
at Microsoft.Office.Excel.Server.Credentials.TryExecuteImpersonated(ExecuteImpersonatedMethod method, Boolean
dispose)
at Microsoft.Office.Excel.Server.CalculationServer.CredentialsDelegation.TryExecuteImpersonated(ExecuteImpersonatedMethod
method)
at Microsoft.Office.Excel.Server.CalculationServer.ConnectionManager.CreateConnection(Credentials credentials,
ConnectionInfo connectionInfo, Int32 keyLcid, Uri workbookUrl, Boolean auditConnection, SessionId sessionId), sessionId=1.V24.1916ClMR0rOQ1F8mQPqtil0V90.5.en-US5.en-US73.-0600#0000-04-00-01T03:00:00:0000#+0000#0000-10-00-01T02:00:00:0000#-006036.7dcb49ef-0dc4-45d2-a0f8-4dc0e18a70f41.N,
connectionString=Provider=MSOLAP.4;Persist Security Info=True;Initial Catalog=Microsoft_SQLServer_AnalysisServices;Data Source=$Embedded$;MDX Compatibility=1;Safety Options=2;MDX Missing Member Mode=Error;Optimize Response=3;Cell Error Mode=TextValue pool
count=0
ConnectionManager.GetConnection: Caught an exception: Microsoft.Office.Excel.Server.CalculationServer.Interop.ConnectionException:
Exception of type 'Microsoft.Office.Excel.Server.CalculationServer.Interop.ConnectionException' was thrown.
at Microsoft.Office.Excel.Server.CalculationServer.Interop.ConnectionInterop.InitConnection()
at Microsoft.Office.Excel.Server.CalculationServer.ConnectionManager.<>c__DisplayClass3.<CreateConnection>b__0()
at Microsoft.Office.Excel.Server.Credentials.TryExecuteImpersonated(WindowsIdentity wi, ExecuteImpersonatedMethod
method, Boolean dispose)
at Microsoft.Office.Excel.Server.Credentials.TryExecuteImpersonated(ExecuteImpersonatedMethod method, Boolean
dispose)
at Microsoft.Office.Excel.Server.CalculationServer.CredentialsDelegation.TryExecuteImpersonated(ExecuteImpersonatedMethod
method)
at Microsoft.Office.Excel.Server.CalculationServer.ConnectionManager.CreateConnection(Credentials credentials,
ConnectionInfo connectionInfo, Int32 keyLcid, Uri workbookUrl, Boolean auditConnection, SessionId sessionId)
at Microsoft.Office.Excel.Server.CalculationServer.ConnectionManager.CreateConnectionAndAddToList(ConnectionRequest
connectionRequest, ExtendedConnectionInfo extendedConnInfo, Credentials credentials, Boolean auditConnection, Int32 keyLcid, ConnectionInfo connectionInfo, ConnectionKey connectionKey, AutoReaderWriterLock autoPoolLock, Connection& connection, ConnectionList&
connectionList)
at Microsoft.Office.Excel.Server.CalculationServer.ConnectionManager.GetConnection(ConnectionRequest connectionRequest,
ExtendedConnectionInfo extendedConnInfo, Credentials credentials, Int64 privateConnectionId, Boolean auditConnection)
Refresh failed for 'PowerPivot Data' in the workbook 'http://<url>/SQL_PowerPivotTest.xlsx'.
[Session: 1.V24.1916ClMR0rOQ1F8mQPqtil0V90.5.en-US5.en-US73.-0600#0000-04-00-01T03:00:00:0000#+0000#0000-10-00-01T02:00:00:0000#-006036.7dcb49ef-0dc4-45d2-a0f8-4dc0e18a70f41.N User: 0#.w|domain\user]
ExternalSource.ValidateConnection: Unable to get a connection: Microsoft.Office.Excel.Server.CalculationServer.Interop.ConnectionException:
Exception of type 'Microsoft.Office.Excel.Server.CalculationServer.Interop.ConnectionException' was thrown.
at Microsoft.Office.Excel.Server.CalculationServer.Interop.ConnectionInterop.InitConnection()
at Microsoft.Office.Excel.Server.CalculationServer.ConnectionManager.<>c__DisplayClass3.<CreateConnection>b__0()
at Microsoft.Office.Excel.Server.Credentials.TryExecuteImpersonated(WindowsIdentity wi, ExecuteImpersonatedMethod
method, Boolean dispose)
at Microsoft.Office.Excel.Server.Credentials.TryExecuteImpersonated(ExecuteImpersonatedMethod method, Boolean
dispose)
at Microsoft.Office.Excel.Server.CalculationServer.CredentialsDelegation.TryExecuteImpersonated(ExecuteImpersonatedMethod
method)
at Microsoft.Office.Excel.Server.CalculationServer.ConnectionManager.CreateConnection(Credentials credentials,
ConnectionInfo connectionInfo, Int32 keyLcid, Uri workbookUrl, Boolean auditConnection, SessionId sessionId)
at Microsoft.Office.Excel.Server.CalculationServer.ConnectionManager.CreateConnectionAndAddToList(ConnectionRequest
connectionRequest, ExtendedConnectionInfo extendedConnInfo, Credentials credentials, Boolean auditConnection, Int32 keyLcid, ConnectionInfo connectionInfo, ConnectionKey connectionKey, AutoReaderWriterLock autoPoolLock, Connection& connection, ConnectionList&
connectionList)
at Microsoft.Office.Excel.Server.CalculationServer.ConnectionManager.GetConnection(ConnectionRequest connectionRequest,
ExtendedConnectionInfo extendedConnInfo, Credentials credentials, Int64 privateConnectionId, Boolean auditConnection)
at Microsoft.Office.Excel.Server.CalculationServer.ExternalSource.TryGetValidatedConnection(Request request, Credentials
credentials, ExtendedConnectionInfo extendedConnectionInfo, Boolean shouldReportFailure, Boolean auditConnection, Connection& connectionOut). sessionId=1.V24.1916ClMR0rOQ1F8mQPqtil0V90.5.en-US5.en-US73.-0600#0000-04-00-01T03:00:00:0000#+0000#0000-10-00-01T02:00:00:0000#-006036.7dcb49ef-0dc4-45d2-a0f8-4dc0e18a70f41.N,
externalSource=PowerPivot Data
ConnectionInfoManager.InitConnInfoFromOdcFile: ODC File Uri is not valid:
ExternalSource.ExecuteOperation: We exhausted all available connection information. Exception: Microsoft.Office.Excel.Server.CalculationServer.Interop.ConnectionInfoException:
Exception of type 'Microsoft.Office.Excel.Server.CalculationServer.Interop.ConnectionInfoException' was thrown.
at Microsoft.Office.Excel.Server.CalculationServer.ConnectionInfoManager.GetConnectionInfo(Request request, String
externalSourceName, Int32 externalSourceIndex, Boolean& shouldReportFailure)
at Microsoft.Office.Excel.Server.CalculationServer.ExternalSource.ExecuteOperation(Request request, ExternalSourceStateInfo externalSourceStateInfo,
ExternalSourceStateInfo prevExternalSourceStateInfo, Int32 index, ConnectionInfoManager connectionInfoManager, ExternalDataScenario scenario, DataOperation dataOperation, Boolean verifyPreOperationConnection), Data Connection Name:
PowerPivot Data, SessionId: 1.V24.1916ClMR0rOQ1F8mQPqtil0V90.5.en-US5.en-US73.-0600#0000-04-00-01T03:00:00:0000#+0000#0000-10-00-01T02:00:00:0000#-006036.7dcb49ef-0dc4-45d2-a0f8-4dc0e18a70f41.N, UserId: 0#.w|domain\user -
Unable to Create site collections with any template
Hi All,
We are using SharePoint 2013 , after long time am tried for create new BI center in one of our web application , but its taking more then 10 mints , the page is loading more then 10 mints , after that i just refresh the page and i got a error "Sorry
this site was created already with this name".
so , i try to enter the new site URL am getting error the page is not valid .
i thought this was on issue with requirements on BI Center , so i checked the web application associated service application , but i have Visio Graphics service application , Excel Service Application and Performance point service application running for
this web application .
after some time i tried to create team site template site collection , i am facing the same issue again , i really dont know what is the issue with my CA , can any one help me to solve this issue ASAP.
i tried to create site collection from PowerShell also , but am facing the same issue , even i got the same error while try to create sub site. i tried with refreshing IIS also , but its not worked.
Am waiting for your valuable response .
Thanks,
Mani L
Mani LHello Mani L,
Please make a host entry on you WFE server for the URL of the site you are trying to create. Then try browsing the site from same server.
- First check if the binding is correctly configure in Alternate Access mapping on Central administration
- Same binding should be provided under IIS for the web application
If this doesn't resolve the issue then, for testing create a host entry for central admin hostheader url.
To do this follow below mentioned steps:
Go to Start -> Run -> Type drivers
open HOSTS file in a notepad
type IP address of the APP server and beside that with a tab key type URL of the site
Save the file and try to browse the site in a fresh new browser after closing all the browser.
Where SharePoint.com is my Host Header URL and IP address is the server IP where the site is hosted (APP Server generally)
Thank You, Pallav S. Srivastav ----- If this helped you resolve your issue, please mark it Answered. -
I have a SharePoint 2010 root level site collection SC1 in web application WEBAPP1. I want to create copy of that site collection in same web application WEBAPP1. Apart from Import/Export, Restore/Backup options, will following approach work? If yes , how?
I took backup of content database of web application.
Restored database with different name
Mounted Content database to this WEBAPP1 by assigning new ID to DB
Created new site collection by using this newly mounted DB
Site collection gets created successfully but content does not appear.
Please guide if i can achieve desired functionality by using this approach.
If this helped you resolve your issue, please mark it AnsweredIt is because the Site GUID is identical, and each GUID can only be present on the farm once. You can use Backup-SPSite/Restore-SPSite (which is full-fidelity, unlike Export-SPWeb/Import-SPWeb), which will generate a new GUID for the restore Site Collection,
even in the same Web App.
Trevor Seward
Follow or contact me at...
  
This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs. -
Hi,
When creating a Site collection using Central admin, i am getting the error "One or more types failed to load. Please refer to the upgrade log for more details." . Microsoft.ApplicationServer.Caching.Core dll version on my machine is 1.0.4632 (App
Fabric 1.1).
Stack Trace
SharePoint Foundation Upgrade SPSiteWssSequence ajywy ERROR Exception: Could not load file or assembly 'Microsoft.ApplicationServer.Caching.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot
find the file specified. dd64ad9c-0f90-e07d-aaaa-13533e0e9e4f
Thanks,
ThomasHi Thomas,
According to your description, my understanding is that you got an error when you created a site collection in SharePoint 2013.
I found a similar thread with yours, maybe it also was created by you. Anyway ,in the thread, the workaround is Changing the virtual directory web config of CA (Option 1 and 2 mentioned at
http://technet.microsoft.com/en-us/library/dn473937.aspx ) and it worked.
More information, please take a look at:
http://sharepoint.stackexchange.com/questions/111439/error-creating-site-collection-could-not-load-file-or-assembly-microsoft-appl
I hope this helps.
Thanks,
Wendy
Wendy Li
TechNet Community Support -
Error occured while creating site collection for the first time in SP2013
While creating a new site collection in SharePoint 2013, I need to do atleast 4 times " Go back to Site" begore it appears properly. Could you please let me know why this error is occuering while we create site collection for the first time.
Is it aknown issue or due to RAM contraints.I am using 16 GB of RAM in Web tier.You can get by with 16 GB of RAM so I am guessing that is not the cause. Although, you could verify your memory utilization during the process. As long as you don't exceed 95% you should be fine. Next time, I would instead look up the
error in the ULS logs using the correlation id and see if you can get more details of what is causing the error.
Corey Roth - SharePoint Server MVP blog:
www.dotnetmafia.com twitter: @coreyroth |
SP2 Apps -
Workflow status column in AllUserData Table with wrong coded in Content Database?
I would like to write a stored procedure to find out all workflow instances with errors, directly from content database.
I go to dbo.alllists to find out the workflow status column, and query AllUserData and find out not readable text
like:
쳀曩쌙䂻֞鼥
㖦巀䐝义颹暲ﻇൿ
ﱰ臨臸䋖ហ嬀ᨵ瘉
鄌幀鴏䔖튅㐻⩷揬
묨ή姖䩡ꊎ鉛۬浶
⟯봨飮䙕잳摕盜⣢
屑䳬鑥䶵岿珽磯Â
ꬁᆈ䀥䓝䶲紀篰䟫
蓏ꋦ䥌肃瘓⯈᭄
뵎㎙䈸䪿蔀ࢴ
෬꧋辂䘀馻ࡲ琓
ꞎ鵫䬺ࢬ䀒✫ꡱ
any ideas?Hi,
Thanks to share your post.
For the issue, I think it may due to the wrong handling of the encoding type “UTF-8”, please refer to the followed article, they may give you a hand:
http://blogs.sun.com/shankar/entry/how_to_handle_utf_8.
http://devlog.info/2008/08/24/php-and-unicode-utf-8/.
Hope this could help you!
Leo -
Cannot create Site Collection in new Webapplication after upgrade to SP1
Hello,
after upgrading my SharePoint Server 2013 (small Farm with one SP and one SQL) I am not able to create new site collections in new web application. Furthermore I am facing trouble when creating a new web application which I suspect is a connected problem.
Environment:
SharePoint 2013 ENU with german language pack upgraded to SharePoint 2013 SP1. Both parts are upgraded (SharePoint and Language pack). Afterwards I have done a psconfigui to upgrade the DB which works fine. Only one DB (BDC is still running in compatibility
mode).
Everything is running on a single server on Windows Server 2012.
Problem(s)
When I create a new web application it tooks a very long time (3 + minutes) and ends with an error message (Sorry something went wrong !). If I close this message I can see the new web application and also its content DB. If I then try to add a new site
collection into this new web application it fails (Sorry something went wrong).
I suspect this is a connected error, but I have now idea what is going on. Everythings else seems to work...
Any idea or support would be great.
Thanks in advance
MartinYou can get issues if you hit a time out message during the creation process. How does it work if you create a site collection using PowerShell?
You can extend the timeout duration this is for web application creation but might be of use here too: http://blog.babunski.me/2013/07/17/sharepoint-404-error-while-creating-a-new-web-application/
Do you get any error messages when you create the site collection? -
Create site Collection from site template containing blog subsite sp2013
Hello,
I want to create a site collection based on a `site template` that contains a `calendar app` and a `blog` subsite.
I explain, i have a site that contains a subsite of type `blog` site and also contains a calendar in `sharepoint 2013`, i saved the site as a template and checked **`include content`**.
However,
when i create a new sitecollection based on that template, i get the caledar app but never the blog subsite...
Am i missing something here? And how can we do this please?
Thanks in advanceSave site as Site Template only saves the individual site and its content, not the sub sites. please check below thread :
http://social.msdn.microsoft.com/Forums/en-US/f167d3ac-afd4-407c-8108-2ae896d52752/how-to-save-site-template-with-subsites?forum=sharepointgeneralprevious
get2pallav
Please click "Propose As Answer" if this post solves your problem or "Vote As Helpful" if this post has been useful to you. -
Http 500 internal server error after creating site collections
I am facing the http 500 error when I browse any SharePoint 2013 site except central admin site. Details of the error in trace log are:
-MODULE_SET_RESPONSE_ERROR_STATUS
ModuleName
SPWindowsClaimsAuthentication
Notification
2
HttpStatus
500
HttpReason
Internal Server Error
HttpSubStatus
0
ErrorCode
0
ConfigExceptionInfo
Notification
AUTHENTICATE_REQUEST
ErrorCode
The operation completed successfully. (0x0)do you have any other web app in the farm, try to create a site collection over there and try.
I would create new content DB, try to provison site in it and make sure root site collection created.
I would also check the IIS logs as well.
Also check this Blog:
http://sharepointsniper.wordpress.com/2011/06/12/sharepoint-search-problem-the-start-address-sps3sserver-cannot-be-crawled/
Please remember to mark your question as answered &Vote helpful,if this solves/helps your problem. ****************************************************************************************** Thanks -WS MCITP(SharePoint 2010, 2013) Blog: http://wscheema.com/blog -
Power shell Script to Create FBA enabled Webapplication with SQL.
Hello All,
How can we create a web application which is having fba enabled with SQL.You can use below to create claim based web application
http://www.toddklindt.com/blog/Lists/Posts/Post.aspx?ID=352
$ap = New-SPAuthenticationProvider -UseWindowsIntegratedAuthentication -DisableKerberos
New-SPWebApplication -Name "Shane Stinks" -ApplicationPool "Default SharePoint Web Apps" -HostHeader shanestinks.contoso.com -Port 80 -Url
http://shanestinks.contoso.com -AuthenticationMethod NTLM -AuthenticationProvider $ap -DatabaseName "WSS_Content_ShaneStinks"
http://community.bamboosolutions.com/blogs/sharepoint-2013/archive/2013/02/08/create-a-claims-based-sharepoint-2013-web-application-by-using-windows-powershell.aspx
http://blogs.msdn.com/b/rcormier/archive/2012/09/01/how-to-create-sharepoint-web-applications-with-powershell.aspx
To set Membership provider and role manager use below powershell
$ap = New – SPAuthenticationProvider –UseWindowsIntegratedAuthenticationtp://<servername> -Port 80 -AuthenticationProvider $ap$ap = New-SPAuthenticationProvider -ASPNETMembershipProvider "membership" -ASPNETRoleProviderName "rolemanager"Set-SPWebApplication -Name "Claims Windows Web App" -ApplicationPool "Claims App Pool" -ApplicationPoolAccount "redmond\appool" -Url http://<servername> -Port 80 -AuthenticationProvider $ap
TO update web.config using powershell try below:
http://blogs.msdn.com/b/kaevans/archive/2012/08/29/setting-up-fba-and-sql-membership-in-sharepoint-2010-with-powershell.aspx
If this helped you resolve your issue, please mark it Answered -
Discover how to simplify the creation of virtual groups of images using Collections, Smart Collections and Collection Sets in Lightroom.
http://adobe.ly/12t11p3Is there anyway that we can create a Template of a Collection Set Structure?
I have a particular Structure Set that I use for my Collection Sets, and the Collections within them for each time I do a shoot session.
Is there anyway that I can streamline the process of making these structures instead of doing it one collection at a time?
I can't seem to find it at the moment. A possibility for the Future?
Thanks -
Creating a collection from a list and joining the list to a database table
I would like to have opinions on good ways to process rows, based on a provided list of key values, joining the collected list against a source table to retrieve additional information related to the key. In this simple example, the procedure accepts a list of employee numbers. The goal is to print a list of names associated with those numbers. The method is to materialize the list of employee numbers as rows and join those rows to a source table to get the names. I have used BULK COLLECT. I don't know if this is a good approach and I would value suggestions. I would also like to understand why we cannot cast PLSQL tables using a type defined in the procedure's specification (why the type needs to exist as an object before we can cast it, like this:
SELECT * FROM TABLE ( CAST ( SOME_FUNCTION(&some parameter) AS SOME_TYPE ) );
Anyway, here is my demo SQL, which you should be able to execute against the SCOTT schema without any changes. Thanks for your help!
declare
type employee_numbers is table of emp.empno%type index by binary_integer;
type employee_names is table of emp.ename%type index by binary_integer;
type employees_record is record (empno employee_numbers, person_name employee_names);
records employees_record;
employees_cursor sys_refcursor;
employee_number_list varchar2(30) default '7369,7499,7521';
begin
open employees_cursor for
with t as (
select regexp_substr(employee_number_list, '[^,]+', 1, level) as employee_number
from dual
connect by regexp_substr(employee_number_list, '[^,]+', 1, level) is not null
) select emp.empno, emp.ename
from t join emp on (emp.empno = t.employee_number)
order by 2
fetch employees_cursor bulk collect into records.empno, records.person_name;
dbms_output.put_line('number of records: '||records.empno.count());
for i in 1 .. records.empno.count
loop
dbms_output.put_line(chr(39)||records.empno(i)||chr(39)||','||chr(39)||records.person_name(i)||chr(39));
end loop;
end;>
It looks like I have confirmation that BULK COLLECT is a good way to go collect rows for processing
>
Well maybe and maybe not. Bear in mind that those demos were only basic demos for the purpose of illustrating how functionality CAN be used. They do not tell you WHEN to use them.
BULK COLLECT uses expensive PGA memory and unless you know that only a small number of rows will be collected you can have some serious memory issues. Any heavy duty use of BULK COLLECT should generally have a LIMIT clause to limit the number of elements in the collection for each loop iteration.
Always use SQL if possible.
Also, for your use case you might be bette served using a PIPELINED function. Instead of collecting ALL rows into a nested table as in your example a PIPELINED function returns one row at a time but is still used as if it were a table using the same TABLE operator.
Here is simple example code for a PIPELINED function
-- type to match emp record
create or replace type emp_scalar_type as object
(EMPNO NUMBER(4) ,
ENAME VARCHAR2(10),
JOB VARCHAR2(9),
MGR NUMBER(4),
HIREDATE DATE,
SAL NUMBER(7, 2),
COMM NUMBER(7, 2),
DEPTNO NUMBER(2)
-- table of emp records
create or replace type emp_table_type as table of emp_scalar_type
-- pipelined function
create or replace function get_emp( p_deptno in number )
return emp_table_type
PIPELINED
as
TYPE EmpCurTyp IS REF CURSOR RETURN emp%ROWTYPE;
emp_cv EmpCurTyp;
l_rec emp%rowtype;
begin
open emp_cv for select * from emp where deptno = p_deptno;
loop
fetch emp_cv into l_rec;
exit when (emp_cv%notfound);
pipe row( emp_scalar_type( l_rec.empno, LOWER(l_rec.ename),
l_rec.job, l_rec.mgr, l_rec.hiredate, l_rec.sal, l_rec.comm, l_rec.deptno ) );
end loop;
return;
end;
select * from table(get_emp(20)) -
How to create two UILoader that can be nested with each other and save the parent UILoader - as3
Hi all,
I am currently researching on the problem but I can't find any solution in the web.
Here is my problem:
I have two UILoader instance (loader_inner and loader_outer) I need to have loader_inner to be part of the loader_outer. I have also a button that will save all contents on loader_outer. Unluckily, when I trigger the save function, I only got a white image file. I was expecting that the contents of loader_outer (with loader_inner) to be saved also.
Note: background_1.jpg and rabbit.jpg are present in the directory. loader_outer and loader_inner where manually placed in the scene using UILoader component.
Here is a code snippet:
loader_inner.load(new URLRequest("background_1.jpg"));
loader_outer.load(new URLRequest("rabbit.jpg"));
loader_outer.addChild(loader_inner);
var bitmapData:BitmapData = new BitmapData(loader_outer.width,loader_outer.height);
bitmapData.draw(loader_outer);
var jpgencoder:JPGEncoder = new JPGEncoder(100);
var mybyte:ByteArray = jpgencoder.encode(bitmapData);
var myfile:FileReference = new FileReference();
myfile.save(mybyte,"test.jpg");
My expected output should be that background_1.jpg and rabbit.jpg should be saved in an image file and must be positioned like the ones placed in the scene.
Any ideas on this?
Thanks ahead.the load method is asynchronous so you don't want to apply that draw method until both loads are complete. ie, use a complete listener:
loader_inner.addEventListener(Event.COMPLETE.loadcompleteF);
loader_outer.addEventListener(Event.COMPLETE,loadcompleteF);
var loadNum:int=0;
loader_inner.load(new URLRequest("background_1.jpg"));
loader_outer.load(new URLRequest("rabbit.jpg"));
loader_outer.addChild(loader_inner);
// you should declare these variables outside this function so there are no gc issues.
function loadcompleteF(e:Event):void{
loadNum++;
if(loadNum==2){
var bitmapData:BitmapData = new BitmapData(loader_outer.width,loader_outer.height);
bitmapData.draw(loader_outer);
var jpgencoder:JPGEncoder = new JPGEncoder(100);
var mybyte:ByteArray = jpgencoder.encode(bitmapData);
var myfile:FileReference = new FileReference();
myfile.save(mybyte,"test.jpg"); -
Calendar Overlay Across Multiple Site Collections
I have searched the forums and have not found a solution to this question.
We are having trouble creating calendar overlays across site collections.
Specifics:
1. This is a single farm SharePoint 2013 installation. Version: 15.0.4481.1005
2. We have a single web application http://sharepointweb on port 80
3. We are using host-named site collections
4. We have separated the different departments into separate site collections because we want to take advantage of separate content databases.
When we create calendar overlays between calendar lists within a single site collection...it works fine. When we try to create calendar overlays between site collections (again, within a single web app) it fails with the message "Unable
to find specified web in the given URL".
Some more details:
## query of host headers for HNSCs
Get-SPManagedPath -HostHeader
Name Type
ExplicitInclusion
sites WildcardInclusion
departments WildcardInclusion
## query of URLs for two affected site collections
get-spsiteurl -id 'http://smportal04/departments/dev'
Url Zone
http://intranet/departments/dev Default
http://sharepoint/departments/dev Internet
http://portal/departments/dev Intranet
get-spsiteurl -id 'http://intranet/departments/it'
Url Zone
http://intranet/departments/it Default
http://sharepoint/departments/it Internet
http://portal/departments/it Intranet
##The only entries I can find in the ULS logs
## an example of when I try to do a calendar overlay from the http://intranet/departments/dev calendar
## referencing a calendar in http://intranet/departments/it calendar
Application error when access /_layouts/15/AggregationCustomize.aspx, Error=Unable to find specified web in the given URL - http://intranet/departments/it. at Microsoft.SharePoint.ApplicationPages.Calendar.MashUpCalendarListAccessor.OpenWeb(String
webUrl, SPWebApplication webapp) at Microsoft.SharePoint.ApplicationPages.AggregationCustomizePage.RetrieveListsWithCalendarView(String webUrl) at Microsoft.SharePoint.ApplicationPages.AggregationCustomizePage.FindListFromId(String
id) at Microsoft.SharePoint.ApplicationPages.AggregationCustomizePage.UpdateListViewDropDownList() at System.Web.UI.WebControls.ListControl.OnSelectedIndexChanged(EventArgs e) at System.Web.UI.Page.RaiseChangedEvents()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Getting Error Message for Exception System.Web.HttpUnhandledException (0x80004005): Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> Microsoft.SharePoint.SPException: Unable to find specified web in the given URL - http://intranet/departments/it.
at Microsoft.SharePoint.ApplicationPages.Calendar.MashUpCalendarListAccessor.OpenWeb(String webUrl, SPWebApplication webapp) at Microsoft.SharePoint.ApplicationPages.AggregationCustomizePage.RetrieveListsWithCalendarView(String
webUrl) at Microsoft.SharePoint.ApplicationPages.AggregationCustomizePage.FindListFromId(String id) at Microsoft.SharePoint.ApplicationPages.AggregationCustomizePage.UpdateListViewDropDownList() at System.Web.UI.WebControls.ListControl.OnSelectedIndexChanged(EventArgs
e) at System.Web.UI.Page.RaiseChangedEvents() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.HandleError(Exception e)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest() at System.Web.UI.Page.ProcessRequest(HttpContext context) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)Hi Roo,
i tried some steps, i agree with you that seems calendar overlay cant do good across web application,
from http://y:1234/ and http://y:4563/. seems there are limitation here.
when i extend my web app, usually i create new web app as internal/external/public, then i guess issue is happened.
so, anyway, i got a bit curious if your environment also came out with the same result:http://support.microsoft.com/kb/2025977
at the kb, it was stated, that it may not able to find another site other than the default web app.
but, while i tried in the same web app, the issue not there.
so i tried to create new site collection, with lots of subsites, http://y:1234/. then have http://y.1234/sites/123 and http://y.1234/sites/456, for example, i add new calendar and create overlay, seems it can resolve each one and another.
perhaps you can check this article:
http://spsawyer.wordpress.com/2013/07/11/sharepoint-calendar-overlay-not-found-errors/
Regards,
Aries
Microsoft Online Community Support
Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
Maybe you are looking for
-
I bought the wrong version of an album.
I bought the clean version instead of the explicit version. Is there anything I can do about this?
-
Hard drive problems with 975X Platinum edition
Hi guys. I was wondering if you could help. I recently upgraded my pc after the power supply was shot on my old one, I decided it was time I did a big update anyway, as it was using non pci express etc. I plumped for the 975X Platinum complete with S
-
How to display page wise totals in Smartforms
hi, I created Tax Invoice for SD my quetion is i have 10 items 5 items are displaying in first page and rest of 5 items are displaying next page. in first page 5 items i have to display the total amount in first page and same like second page also pl
-
API to udapte po_vendor_sites_all
Please let us if there is any API to udpate po_vendor_sites_all. as i need to udpate large amount of data Thanks, Murugan
-
Inbound Idoc set up..
Hi All.. Iam using the following bapi " BAPI_SALESORDER_CREATEFROMDAT2" to create credit/debit memo requests in sap. If the bapi fails, i want to create an idoc and post the application document. For that purpose, iam using the idoc type SALESORDER_C