Lightswitch Sharepoint App. Publish Problem
I really could use some help:
I have a Lightswitch Sharepoint App that has been published for a while. I have just made a small change to a screen.
When I click on publish I am immediately presented with the following message box error:
An unhandled exception of type 'System.ServiceModel.Security.MessageSecurityException' occured.
Additional Information: The HTTP request was forbidden with client authentication scheme 'Anonymous'.'
A Fleet
try logging into azure from visual studio server manager,
you may have to clear out your cookies etc
I experienced the same issue the other day.
logging in and out of azure/office 365 with different accounts messes up sometimes.
mrP
Similar Messages
-
Lightswitch HTML Sharepoint App: Access Control Methods
I have a Lightswitch HTML SharePoint App. Which is working well.
I have implemented user access security on the entities using SharePoint groups.
partial void UserAccessGroups_CanUpdate(ref bool result)
result = false;
var clientContext = Application.SharePoint.GetHostWebClientContext();
Microsoft.SharePoint.Client.Web web = clientContext.Web;
Microsoft.SharePoint.Client.GroupCollection UserGroups = web.CurrentUser.Groups;
clientContext.Load<Microsoft.SharePoint.Client.GroupCollection>(UserGroups);
clientContext.ExecuteQuery();
foreach (var item in UserGroups)
var permission = "UserAccessGroupAdmin";
if (item.Title == permission)
result = true;
break;
This works fine when I am debugging the application and it is running on localhost.
However when I publish theapp and it is running in an Azure site it doesn't work and I am un able to edit the entitiy.
I have set up the SharePoint Group on the site that is running the appp and assigned the user to the group.
Has anyone else had a similar experience or have any suggestions.
Thank you,
AndrewThis may help:
An End-To-End LightSwitch SharePoint Workflow Application
I have SharePoint permissions in that example and I tested it in production and it definitely works.
bool isMemberOfVacationApprovers = false;
var clientContext = this.Application.SharePoint.GetHostWebClientContext();
//Load the properties for the web object.
Microsoft.SharePoint.Client.Web web = clientContext.Web;
// Get the current web
clientContext.Load(web);
clientContext.ExecuteQuery();
// Groups for current User
Microsoft.SharePoint.Client.GroupCollection UserGroups = web.CurrentUser.Groups;
clientContext.Load<Microsoft.SharePoint.Client.GroupCollection>(UserGroups);
clientContext.ExecuteQuery();
foreach (var item in UserGroups)
if (item.Title == "Vacation Approvers")
isMemberOfVacationApprovers = true;
if (!isMemberOfVacationApprovers)
results.AddEntityError
("Only members of Vacation Approvers can edit this record.");
Unleash the Power - Get the LightSwitch 2013 HTML Client / SharePoint 2013 book
http://LightSwitchHelpWebsite.com -
Ran into a problem by activating the SharePoint Server Publishing feature
By activating the "SharePoint Server Publishing feature" at site level the complete look and feel of the site has been changed to a default page layout , all the customization's were removed.
Changes were not rolled back even after deactivating the feature.
any help on how to get back my look and feel is appreciated.
Thanks in advance.
Regards
Bhaskar
Hi,
How did you customize the site initially? Was that in SharePoint designer? And if so what part of it did you exactly customize? The page itself or the masterpage?
Regards,
Casper -
Occasionally Connected LightSwitch HTML Apps Using JayData
JayData, as many are probably aware from prior blog posts and discussions on this forum, is a powerful JavaScript utility library for OData providers, including LightSwitch.
Recently, the JayData developers have expanded the
provider offerings to include many other database programmatic interfaces.
Their latest release, JayData 1.3.6, codenamed “Advanced Sync Edition,” aims to support occasionally connected apps by exploiting the local storage capability of the browser (Web SQL. sqLite, IndexedDb, etc.).
Development is simplified when using the same data model and API for writing to both local storage and the OData endpoint.
An example of this is shown at How to Create a Synchronized Online-Offline Data App with JavaScript and JayData.
This model, the “To Does” project, was successfully adapted to a LightSwitch HTML app without difficulty.
Although “To Does” projects like this serve as a nice proof-of-concept, they are excessively simple compared to real world business applications.
Fortunately, JayData 1.3.6 also includes support for configurable foreign keys.
With this, more complex object-relational mapping that would typically be used with Entity Framework and similar RDBMS may be approximated.
To illustrate, the To Does project was expanded to include entity relationships.
Specifically, a To Do must be assigned to a single individual Project, and any single Project can have many To Does.
A Project can be assigned to an Employee or to multiple Employees, while an Employee can have a single Project or many Projects, thus defining a many-to-many relationship between Employee and Project.
So how might and online-offline LightSwitch HTML application work in practice?
Ideally in my opinion, the transition from online to offline and back should be seamless and transparent to the user, allowing for both UX and UI to be unperturbed.
This approach turned out to be too difficult for me as a developer, as I experienced problems with the closed-end nature of LightSwitch’s Visual Collection object, for instance. Separation of concerns is a real challenge with this approach.
There is also the separate UI approach for both offline and online data entry, which have been nicely illustrated by Michael Washington and Paul van Bladel on their blogs using JayData and BreezeJS with AngularJS alongside a LightSwitch HTML
app. This approach is valid, and from the viewpoint of the developer has its advantages. From a design standpoint, it is likely to be frustrating for an end-user who must deal with “spotty” network coverage, necessitating changing back-and-forth
from one UI to another.
I opted for a hybrid approach, staying entirely inside the LightSwitch HTML app environment but having individual menu options to select depending on the user’s online status, which is constantly displayed with a status icon (see Main Menu figure).
In many cases, the native LightSwitch screen and menu buttons are fully functional in the offline state.
When they are not, most often with regard to a “Browse” screen or involving a Visual Collection, I have substituted the updated WinJS library (now at
version 4.0, capable of replacing LightSwitch’s v1.0 with no breaking changes) to create a custom control that resembles the LightSwitch listview.
To use the app, you can use any of the online Menu buttons to enter Employee, Project, or To Do data in the usual way while connected.
The Offline menu buttons are functional in either a connected or disconnected status, which can be tested by disabling your devices WiFi, for example.
This LightSwitch app does not work with all browsers, however.
Because the local database is stored using the Web SQL/sqLite JayData API, it is not supported by either IE or FireFox.
It is supported by Chrome, Safari, Opera, Android browsers, Kindle Fire, and iPad browsers
(see link).
To see the local data stored in Web SQL while using Chrome, you can press F12, select Resources, and expand Web SQL to see the Table data updated with each transaction (see figure).
After entering data using the Offline menu selections, you will want to synchronize your local data with the remote LightSwitch database, which is performed by clicking “Synchronize Offline to Online” on the Main Menu.
A success or error dialog message should follow, depending on the result of the sync.
The dates and times of the last synchronizations are displayed on the Main Menu.
With each online database transaction, including offline to online syncs, the offline database is updated to reflect the very latest LightSwitch application data.
This method attempts to have the LightSwitch online database as the “single source of truth” as much as possible while the user is online.
Lastly (if anyone is still reading this far), note that by design there is no business logic programmed into this application; business logic is a separate issue to be addressed.
There can be as many incomplete To Does as you want, an Employee can be assigned the same Project many times, etc.
If your application requires business logic, you will have to program it into the client-side in order for the user to be prompted to follow it while offline.
To experiment with LightSwitch OfflineToDoes app, go to:
http://offlinetodoes.azurewebsites.net/htmlclient
…and log in with username “testuser” and password “Testuser1!”
In a few days I will try to load the sample project code to MSDN for anyone to download and review if desired.
TL;DR:
JayData provides an attractive solution for creating online-offline LightSwitch HTML apps by automating a single codebase to carry out CRUD operations on both a local datasource and the remote LightSwitch database.
Integrating the offline portion of the app into the LightSwitch UI requires an individualized solution and is code-intensive, however.Thank you both for the input. Zardoz, I tried making a couple of updates to address items you mentioned. I left unfixed the problem that occurs when editing an offline Project's budget item..this still does not work. LightSwitch identifies this
entity as a decimal, WebSql expects a plain number, but LightSwitch's post-processing business type formats it to currency (I see USD, you may see NZD, AUD, etc.) In the console there is a "getModel() is undefined" in msls.js. If I take
out the Money business type to regular Text on the View, it works fine.
I'm not sure if I understood your last item just right, but I tweaked the Add Edit Offline Project screen to prevent the Project from being null if the user only enters a new To Do. Not sure why the screen validation wasn't firing before.
Regarding navigation, I don't wish to use the browser's back or forward buttons at all for the app, especially the Offline portion, only the LightSwitch menu navigation and command buttons. I know Xpert360 has shown how to put the former LightSwitch back
button in the app which is useful too. Navigation, cacheing and disposing were some of the tricky parts getting to integrate between LightSwitch UI and offline custom controls. Occasionally I felt like I was having to be "clever" at solutions,
except that when it comes to programming, I'm not a fan of cleverness.
The project is published
here. Hopefully this serves as a good starting point for someone, and I look forward to seeing how it can be improved upon and used in practice. -
SharePoint Apps can be installed and added to a site, but can not be started
Hello,
I followed this guide to enable SharePoint Apps on our SP Foundation 2013: http://sharepointchick.com/archive/2012/07/29/setting-up-your-app-domain-for-sharepoint-2013.aspx. On top I did the configuration of the Subscription Settings Service that is
mentioned in the guide with a link to msdn.
Now we are able to add Apps to a site through SharePoint Store with a user with the needed rights ( System Account can not do this). The link that is created for the app matches our configuration of App URLs, but when I click on the added app on my site,
the website can not be found. It seems like the apps aren't really added to the server.
I also don't know how I can add apps to the app catalog I created.
Greetings
chnHi Chn,
I wanted to confirm first. After you went through the configurations, you created an App Catalog site and that's where you're adding your App? (Steps here:
http://technet.microsoft.com/en-us/library/fp161234(v=office.15).aspx)
Is this your own test App? Does it have to be registered? When does the error appear - is it when you Trust the App on your site?
Please Mark Answered if my reply solves your problem. Thanks!
Jeff Thai
Technical Solutions Architect, AvePoint
http://www.AvePoint.com -
SharePoint Server Publishing infrastructure - Sorry, you don't have access to this page
If I enable site feature on Any site in any site collection on Sharepoint farm,
every one get lock out (include Farm admin, ect) with error Sorry, you don't have access to this page.
I have to go to Web application -> User Policies Add: NT Authority\Authenticated Users, so that I can
log in to site, disable feature and everything start to work.
On : Site Collection Administration -> Site Collection Features
-> SharePoint Server Publishing Infrastructure : is activated
Infrastructure : I use Host name site collection, all effected sites are located in the same web application.
I think problem is with “SharePoint Server Publishing Infrastructure”. Because if I enable
that feature on site collection, then o have problem choosing together
SharePoint Server Standard Site Collection features and SharePoint Server Enterprise Site Collection features
If SharePoint Server Publishing Infrastructure is enabled, if a activate Standard Site Collection features , then choosing Server Enterprise Site Collection features, produce error : Sorry, something went wrong.
But I can enabled both features “Standard Site & Server Enterprise” before enabling SharePoint Server Publishing Infrastructure.
ULS logs, when I enable SharePoint Server Publishing Infrastructure :
From bottom up : Non-OAuth request. IsAuthenticated=True, UserIdentityName=0#.w|DOMAIN\user1, ClaimsCount=55
DelegateControl: Exception thrown while adding control 'Microsoft.SharePoint.Publishing.Navigation.PortalSiteMapDataSource':
System.UnauthorizedAccessException: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
at Microsoft.SharePoint.Utilities.SPUtility.HandleAccessDenied(Exception ex)
at Microsoft.SharePoint.Library.SPRequest.GetMetadataForUrl(String bstrUrl, Int32 METADATAFLAGS, Guid&
pgListId, Int32& plItemId, Int32& plType, Object& pvarFileOrFolder)
at Microsoft.SharePoint.SPWeb.GetList(String strUrl)
at Microsoft.SharePoint.Publishing.CacheManager..ctor(SPSite site)
at Microsoft.SharePoint.Publishing.CacheManager.GetManager(SPSite site, Boolean useContextSite, Boolean
allowContextSiteOptimization, Boolean refreshIfNoContext)
at Microsoft.SharePoint.Publishing.CachedAreaLookup.EnsureLookup(Boolean errorsAsExceptions)
at Microsoft.SharePoint.Publishing.CachedAreaLookup.GetCachedAreaOrException()
at Microsoft.SharePoint.Publishing.Navigation.TaxonomyNavigationCache.GetCachedWebInfo(CachedAreaLookup
cachedAreaLookup)
at Microsoft.SharePoint.Publishing.Navigation.TaxonomyNavigationCache.GetWebNavigationSettings(CachedAreaLookup
cachedArea, CachedAreaLookup& parentCachedArea, Exception& loadError)
at Microsoft.SharePoint.Publishing.Navigation.TaxonomyNavigation.GetEffectiveProviderSettingsList(CachedAreaLookup
cachedArea, Boolean includeInheritedSettings)
at Microsoft.SharePoint.Publishing.Navigation.TaxonomyNavigation.GetEffectiveProviderSettings[T](CachedAreaLookup
cachedArea, String siteMapProviderName, Boolean includeInheritedSettings, CachedAreaLookup& cachedAreaWithSettings)
at Microsoft.SharePoint.Publishing.Navigation.TaxonomyNavigation.GetEffectiveProviderSettings[T](SPWeb
web, String siteMapProviderName, Boolean includeInheritedSettings)
at Microsoft.SharePoint.Publishing.Navigation.SwitchableSiteMapProvider.GetCurrentWrappedProvider()
at Microsoft.SharePoint.Publishing.Navigation.SwitchableSiteMapProvider.get_RootNode()
at Microsoft.SharePoint.Publishing.Navigation.SwitchableDataSourceBehavior.AssignProperties(SiteMapProvider
targetProvider)
at Microsoft.SharePoint.Publishing.Navigation.PortalSiteMapDataSource.OnInit(EventArgs e)
at System.Web.UI.Control.InitRecursive(Control namingContainer)
at System.Web.UI.Control.AddedControl(Control control, Int32 index)
at Microsoft.SharePoint.WebControls.DelegateControl.AddControlResilient(Control ctl)
System.IO.FileNotFoundException: The system cannot find the file specified. (Exception from HRESULT: 0x80070002), StackTrace:
at Microsoft.SharePoint.SPWeb.GetObjectForUrl(String strUrl, Guid& listId)
at Microsoft.SharePoint.Utilities.SPUtility.<>c__DisplayClass9.<FindObjectAccessed>b__8()
at Microsoft.SharePoint.SPSecurity.<>c__DisplayClass5.<RunWithElevatedPrivileges>b__3()
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.SharePoint.Utilities.SPUtility.FindObjectAccessed(SPWeb web, SPSite site, SPObjectType&
objType, String& strObject, String& strListItemId)
at Microsoft.SharePoint.Utilities.SPUtility.RedirectToAccessDeniedPage(HttpContext context)
at Microsoft.SharePoint.Utilities.SPUtility.HandleAccessDenied(HttpContext context)
at Microsoft.SharePoint.Utilities.SPUtility.HandleAccessDenied(Exception ex)
at Microsoft.SharePoint.Library.SPRequest.GetMetadataForUrl(String bstrUrl, Int32 METADATAFLAGS, Guid&
pgListId, Int32& plItemId, Int32& plType, Object& pvarFileOrFolder)
at Microsoft.SharePoint.SPWeb.GetList(String strUrl)
at Microsoft.SharePoint.Publishing.CacheManager..ctor(SPSite site)
at Microsoft.SharePoint.Publishing.CacheManager.GetManager(SPSite site, Boolean useContextSite, Boolean
allowContextSiteOptimization, Boolean refreshIfNoContext)
at Microsoft.SharePoint.Publishing.CachedAreaLookup.EnsureLookup(Boolean errorsAsExceptions)
at Microsoft.SharePoint.Publishing.CachedAreaLookup.GetCachedAreaOrException()
at Microsoft.SharePoint.Publishing.Navigation.TaxonomyNavigationCache.GetCachedWebInfo(CachedAreaLookup
cachedAreaLookup)
at Microsoft.SharePoint.Publishing.Navigation.TaxonomyNavigationCache.GetWebNavigationSettings(CachedAreaLookup
cachedArea, CachedAreaLookup& parentCachedArea, Exception& loadError)
at Microsoft.SharePoint.Publishing.Navigation.TaxonomyNavigation.GetEffectiveProviderSettingsList(CachedAreaLookup
cachedArea, Boolean includeInheritedSettings)
at Microsoft.SharePoint.Publishing.Navigation.TaxonomyNavigation.GetEffectiveProviderSettings[T](CachedAreaLookup
cachedArea, String siteMapProviderName, Boolean includeInheritedSettings, CachedAreaLookup& cachedAreaWithSettings)
at Microsoft.SharePoint.Publishing.Navigation.TaxonomyNavigation.GetEffectiveProviderSettings[T](SPWeb
web, String siteMapProviderName, Boolean includeInheritedSettings)
at Microsoft.SharePoint.Publishing.Navigation.SwitchableSiteMapProvider.GetCurrentWrappedProvider()
at Microsoft.SharePoint.Publishing.Navigation.SwitchableSiteMapProvider.get_RootNode()
at Microsoft.SharePoint.Publishing.Navigation.SwitchableDataSourceBehavior.AssignProperties(SiteMapProvider
targetProvider)
at Microsoft.SharePoint.Publishing.Navigation.PortalSiteMapDataSource.OnInit(EventArgs e)
at System.Web.UI.Control.InitRecursive(Control namingContainer)
at System.Web.UI.Control.AddedControl(Control control, Int32 index)
at Microsoft.SharePoint.WebControls.DelegateControl.AddControlResilient(Control ctl)
at Microsoft.SharePoint.WebControls.DelegateControl.CreateChildControlsInternal()
at Microsoft.SharePoint.WebControls.DelegateControl.CreateChildControls()
at System.Web.UI.Control.EnsureChildControls()
at Microsoft.SharePoint.WebControls.DelegateControl.OnInit(EventArgs e)
at System.Web.UI.Control.InitRecursive(Control namingContainer)
at System.Web.UI.Control.InitRecursive(Control namingContainer)
at System.Web.UI.Control.InitRecursive(Control namingContainer)
at System.Web.UI.Control.InitRecursive(Control namingContainer)
at System.Web.UI.Control.InitRecursive(Control namingContainer)
at System.Web.UI.Control.InitRecursive(Control namingContainer)
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)
at System.Web.HttpApplication.PipelineStepManager.ResumeSteps(Exception error)
at System.Web.HttpApplication.BeginProcessRequestNotification(HttpContext context, AsyncCallback cb)
at System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context)
at System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr rootedObjectsPointer,
IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)
at System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr rootedObjectsPointer, IntPtr
nativeRequestContext, IntPtr moduleData, Int32 flags)
at System.Web.Hosting.UnsafeIISMethods.MgdIndicateCompletion(IntPtr pHandler, RequestNotificationStatus&
notificationStatus)
at System.Web.Hosting.UnsafeIISMethods.MgdIndicateCompletion(IntPtr pHandler, RequestNotificationStatus&
notificationStatus)
at System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr rootedObjectsPointer,
IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)
at System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr rootedObjectsPointer, IntPtr
nativeRequestContext, IntPtr moduleData, Int32 flags)
SPRequest.GetMetadataForUrl: UserPrincipalName=, AppPrincipalName= ,bstrUrl=/_layouts/15/ManageFeatures.aspx ,METADATAFLAGS=59
Unknown SPRequest error occurred. More information: 0x80070002
Access Denied. Exception: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)), StackTrace:
at Microsoft.SharePoint.Library.SPRequestInternalClass.GetMetadataForUrl(String bstrUrl, Int32 METADATAFLAGS,
Guid& pgListId, Int32& plItemId, Int32& plType, Object& pvarFileOrFolder)
at Microsoft.SharePoint.Library.SPRequest.GetMetadataForUrl(String bstrUrl, Int32 METADATAFLAGS, Guid& pgListId, Int32&
plItemId, Int32& plType, Object& pvarFileOrFolder).
System.UnauthorizedAccessException: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)), StackTrace:
at Microsoft.SharePoint.SPWeb.GetList(String strUrl)
at Microsoft.SharePoint.Publishing.CacheManager..ctor(SPSite site)
at Microsoft.SharePoint.Publishing.CacheManager.GetManager(SPSite site, Boolean useContextSite, Boolean
allowContextSiteOptimization, Boolean refreshIfNoContext)
at Microsoft.SharePoint.Publishing.CachedAreaLookup.EnsureLookup(Boolean errorsAsExceptions)
at Microsoft.SharePoint.Publishing.CachedAreaLookup.GetCachedAreaOrException()
at Microsoft.SharePoint.Publishing.Navigation.TaxonomyNavigationCache.GetCachedWebInfo(CachedAreaLookup
cachedAreaLookup)
at Microsoft.SharePoint.Publishing.Navigation.TaxonomyNavigationCache.GetWebNavigationSettings(CachedAreaLookup
cachedArea, CachedAreaLookup& parentCachedArea, Exception& loadError)
at Microsoft.SharePoint.Publishing.Navigation.TaxonomyNavigation.GetEffectiveProviderSettingsList(CachedAreaLookup
cachedArea, Boolean includeInheritedSettings)
at Microsoft.SharePoint.Publishing.Navigation.TaxonomyNavigation.GetEffectiveProviderSettings[T](CachedAreaLookup
cachedArea, String siteMapProviderName, Boolean includeInheritedSettings, CachedAreaLookup& cachedAreaWithSettings)
at Microsoft.SharePoint.Publishing.Navigation.TaxonomyNavigation.GetEffectiveProviderSettings[T](SPWeb
web, String siteMapProviderName, Boolean includeInheritedSettings)
at Microsoft.SharePoint.Publishing.Navigation.SwitchableSiteMapProvider.GetCurrentWrappedProvider()
at Microsoft.SharePoint.Publishing.Navigation.SwitchableSiteMapProvider.get_RootNode()
at Microsoft.SharePoint.Publishing.Navigation.SwitchableDataSourceBehavior.AssignProperties(SiteMapProvider
targetProvider)
at Microsoft.SharePoint.Publishing.Navigation.PortalSiteMapDataSource.OnInit(EventArgs e)
at System.Web.UI.Control.InitRecursive(Control namingContainer)
at System.Web.UI.Control.AddedControl(Control control, Int32 index)
at Microsoft.SharePoint.WebControls.DelegateControl.AddControlResilient(Control ctl)
at Microsoft.SharePoint.WebControls.DelegateControl.CreateChildControlsInternal()
at Microsoft.SharePoint.WebControls.DelegateControl.CreateChildControls()
at System.Web.UI.Control.EnsureChildControls()
at Microsoft.SharePoint.WebControls.DelegateControl.OnInit(EventArgs e)
at System.Web.UI.Control.InitRecursive(Control namingContainer)
at System.Web.UI.Control.InitRecursive(Control namingContainer)
at System.Web.UI.Control.InitRecursive(Control namingContainer)
at System.Web.UI.Control.InitRecursive(Control namingContainer)
at System.Web.UI.Control.InitRecursive(Control namingContainer)
at System.Web.UI.Control.InitRecursive(Control namingContainer)
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)
at System.Web.HttpApplication.PipelineStepManager.ResumeSteps(Exception error)
at System.Web.HttpApplication.BeginProcessRequestNotification(HttpContext context, AsyncCallback cb)
at System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context)
at System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr rootedObjectsPointer,
IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)
at System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr rootedObjectsPointer, IntPtr
nativeRequestContext, IntPtr moduleData, Int32 flags)
at System.Web.Hosting.UnsafeIISMethods.MgdIndicateCompletion(IntPtr pHandler, RequestNotificationStatus&
notificationStatus)
at System.Web.Hosting.UnsafeIISMethods.MgdIndicateCompletion(IntPtr pHandler, RequestNotificationStatus&
notificationStatus)
at System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr rootedObjectsPointer,
IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)
at System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr rootedObjectsPointer, IntPtr
nativeRequestContext, IntPtr moduleData, Int32 flags)
SPRequest.GetMetadataForUrl: UserPrincipalName=i:0).w|s-1-5-21-1794000256-2036170096-312552118-17692, AppPrincipalName= ,bstrUrl=/Cache Profiles ,METADATAFLAGS=59
Feature Activation: Feature 'PublishingSite' (ID: 'f6924d36-2fa8-4f0b-b16d-06b7250180fa') was activated at URL
https://intranet.domain.com.
Calling 'FeatureActivated' method of SPFeatureReceiver for Feature 'PublishingSite' (ID: 'f6924d36-2fa8-4f0b-b16d-06b7250180fa').
Feature Activation: Activating Feature 'PublishingSite' (ID: 'f6924d36-2fa8-4f0b-b16d-06b7250180fa') at URL
https://intranet.domain.com.Hi Mali,
According to your description, my understanding is that users cannot access the SharePoint site if SharePoint Server Publishing Infrastructure is enabled.
If I misunderstood please feel free to correct me.
I recommend use PowerShell to activate the feature in SharePoint 2013 to see if the issue still occurs.
http://technet.microsoft.com/en-us/library/ff607803(v=office.15).aspx
Best regards.
Thanks
Victoria Xia
TechNet Community Support -
Configuring SharePoint Apps in Production Environment
SharePoint 2013 Environment. We are trying to configure SharePoint APPS in production environment. It is a medium server farm with two W.F.E's load balanced.
We have the following two DNS entires with two different wildcards pointing to the SharePoint FQDN.
contoso.com
contosoapps.com
Since we are planning to use https, In the DNS we have assigned a random ip address to just the apps domain. Created a new web application with no host header and assigned this IPAddress to this web application by changing the binding (for both http and
https) on both the servers.
When I click on the app, the redirect does not work and displays page not found error. Any help?
VYou said you created a new web app with no host header. Did you also create a root level site collection in the web app? You don't actually use the site collection but it needs to be there. Also make sure that https is the default zone
on that web app. Apps normally only use the default zone for redirecting to the address and if you are using https it won't work unless that is the default zone.
Paul Stork SharePoint Server MVP
Principal Architect: Blue Chip Consulting Group
Blog: http://dontpapanic.com/blog
Twitter: Follow @pstork
Please remember to mark your question as "answered" if this solves your problem. -
Unexpected Publishing Problems
I have been using iWeb for almost two months with no publishing problems. I publish to a folder then ftp it to my yahoo server. However, last night I began to experience publishing problems. iWeb publishes just the first five pages of my site then I get a message that an unexpected error occurred. No other clues as to why it could be happening.
The last change I made was an adding a podcast. I deleted that podcast thinking that maybe iWeb didn't like the taste of it and tried to publish but it still won't work. I've tried about 10 times, with my screen saver turned off, battery charger plugged in, and no other apps running.
Please help me!
Ruben
G4 17 inch Powerbook Mac OS X (10.4.5)Here's the latest...
I realized that iWeb stopped publishing at the same page (I have 30+ pages on my site. It would always stop at the fifth one). So, I rearranged the order of that page, dragging it down to the very bottom of my site list. When I went to publish to folder, iWeb published everything then stopped again at that specific page. So here I thought I had isolated the issue.
I created a new site and dragged the problematic page into it. I then created a brand new page in my main site and copy/pasted the old content into it. Ergo: a whole new page. I went to publish with iWeb cranking along nicely until it got to the NEW version of that page and then it crapped out. Again.
I am guessing that one of the images (or who knows what, really) is messing with iWeb's fragile ego. I am going to reconstruct the page with brand new copies of the images that were on it. Images, by the way, that published fine for almost a month and that I didn't alter at all.
Wish me luck all. I'll keep you posted.
Ruben -
Where Client ID and Client Secret of SharePoint .app file will be stored
Where Client ID and Client Secret of SharePoint .app file will be stored, i had published my app in the production, and now i need to enhanced the app, and i want to publish my app again, so where can i get my previous Client ID and Client Secret
If it's provider hosted app, then you can find ClientId in a AppManifest.xml, and in a web.config of your web project.
[custom.development] -
Captivate 7 App Publisher for Mac
Hi,
I'm experiencing some issues with trying to use the App Publisher for Captivate 7 on a Mac. Things do not show up like demonstrated in this video from adobe (Package the HTML5 content for devices using Adobe Captivate 7 App Packager). Here's a quick screencast on what I'm running into.
Also, here are the details on how the project was published prior to importing into the App Publisher.
Any ideas or solutions?
Thanks for your help.Hi Anjaneai,
Thanks for the ideas. The dark gray border at the top and bottom are ok, the problem is the light gray border I get. I tried the Skin Editor, but it only removed the top and bottom dark gray borders, not the gray.
I can't use the Flash on the slide because I need them to be HTML 5 compliant.
Here's a link to my blastoff animation files that were exported from Flash using the Toolkit for CreateJS. -
SharePoint Apps doesn't work in Internet Explorer
SharePoint Apps Internet Explorer
Hi all,
we are development SharePoint-hosted app, we have a problem that works in all the browsers except Internet Explorer (sometimes).
The strang is that when you debug with Visual Studio or IE developer toolbar, the app if it works.
I add the sites to the same security zone in Internet Explorer and all it says this article and doesn't work.
http://msdn.microsoft.com/en-us/library/office/jj612823(v=office.15).aspx
This is the code where I do the call:
$(document).ready(function () {
var call = getInfo();
call.always(function (EmployeesInfo) {
if (EmployeesInfo != "ERROR") {
var t = JSON.parse(EmployeesInfo);
$get("EmployeeInfoDiv").innerHTML = fillEmployeeInfo(t);
function getInfo() {
var def = new $.Deferred();
var executor;
var hostweburl;
var remotedomain;
remotedomain = "http://sharepointdev:8090/";
hostweburl = decodeURIComponent(getQueryStringParameter("SPHostUrl"));
executor = new SP.RequestExecutor(remotedomain);
executor.iFrameSourceUrl = "CustomProxy.aspx?SPHostUrl=" + hostweburl;
executor.executeAsync(
url: remotedomain + "SimpleContent.aspx",
method: "GET",
headers: { "Accept": "text/plain" },
success: successHandler,
error: errorHandler
function successHandler(data) {
var EmployeesInfo = data.body;
def.resolve(EmployeesInfo);
function errorHandler(data, errorCode, errorMessage) {
document.getElementById("TextData").innerText =
"Could not complete cross-domain call: " + errorMessage;
def.reject("ERROR");
return def.promise();
Anyone know it is because this issue?
Thanks and regards,
rmvesHi rmves,
According to your description, my understanding is that your SharePoint hosted app not work in Internet Explorer sometimes.
I suggest you can try as followings:
1. When you debug with Internet Explorer Developer Tools, you can check whether there is any error in the script.
2. I suggest you can check the web request using Fiddler when the app work correctly. Then you can check if there is something wrong when the app not work in Internet Explorer.
Best Regards
Zhengyu Guo
TechNet Community Support -
Sharepoint Server Publishing Won't Activate After Deactivating
I am trying to reactive SharePoint Server Publish under Manage Site Features after deactivating. However I keep getting an error:
SharePoint Server Publishing Infrastructure is Activate in Site Collection Features. Any assistance you can provide would be helpful. THANKS!check the ULS log for more detail about the error, you can get the trace for the correlation ID mentioned in the error.
Also try to enable it via command line. check this
http://www.blog4sharepoint.com/activate-publishing-feature-powershell
http://www.sharepointblog.in/2013/07/activate-sharepoint-server-publishing.html
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 -
Activate SharePoint Server Publishing
Hi guys,
This might be a simple question but I'd like to activate the SharePoint Server Publishing feature on my site collection where this site collection using a custom branding feature (i.e. using sandbox solution).
There is no documentation how this sandbox solution developed. But the branding solution is uploaded to solution gallery and the feature is activated at the site collection level.
I wonder if its safe for me to activate SharePoint Server Publishing feature and it will not overwrite current look and feel?
Any advise greatly appreciated.
BalaiAs per below explination it shouldnt be a problem.
REad throught the below content and you will get a clear idea .
The SharePoint Server Publishing Infrastructure feature provides publishing functionality at the site collection level, and the SharePoint
Server Publishing feature provides publishing functionality at the site level. The subset of features contained in each of these primary features is collectively known as “publishing features.” Publishing features are all the features that are part of a preconfigured
publishing site or that are added when publishing is enabled at the site collection and site level. When publishing is enabled, all publishing features are automatically enabled. You cannot select individual publishing features, such as variations, to be enabled
separately without enabling other publishing features. All publishing features are either active or inactive. However, even though you can decide to enable the publishing features, you do not have to use them all.
When you enable the SharePoint Server Publishing Infrastructure feature, the Inherit
Theme and Apply
Theme sections are added to the Site Theme page. These options allow a site administrator to specify whether a site should
inherit the theme from the parent site or should use its own theme. These themes also allow the site administrator to specify whether to
apply the selected theme only to the current site or to the current site and all sites below it in the site hierarchy. For more information about themes, see Themes
overview (SharePoint Server 2010).
New master pages and page layouts, such as article pages and a Wiki page that is used by publishing sites, are added.
A new folder is created in the Master Page Gallery library, and is named based on the language that was used for the SharePoint Server 2010 installation. For example, if the English version
was installed, the folder name is en-us. This folder contains a folder named Preview Images, which contains the thumbnail preview images of the Publishing page layouts.
http://msdn.microsoft.com/en-us/library/office/gg430141(v=office.14).aspx -
Hi All,
I am trying to activate the Publishing feature for a SharePoint website using a custom Site Definition File. The problem I am getting
is when I try to use the custom site template I get an error message:
New-SPSite : The SharePoint Server Publishing Infrastructure feature must be activated at the site collection level before the Publishing feature can be activated.
The custom
Site Definition File snippet is show below:
<?xml
version="1.0"
encoding="utf-8"?>
<Project
Title="SiteDefinition1"
Revision="2"
ListDir=""
xmlns:ows="Microsoft
SharePoint"
xmlns="http://schemas.microsoft.com/sharepoint/">
<NavBars>
</NavBars>
<Configurations>
<Configuration
ID="0"
Name="SiteDefinitionDelegateControls2">
<Lists/>
<SiteFeatures>
<!--Document
Set-->
<Feature
ID="{3bae86a2-776d-499d-9db8-fa4cdc7884f8}"
Name="FeatureDefinition/15/3bae86a2-776d-499d-9db8-fa4cdc7884f8"
/>
<!--Publishing
Prerequisites-->
<Feature
ID="{a392da98-270b-4e85-9769-04c0fde267aa}"
Name="FeatureDefinition/15/a392da98-270b-4e85-9769-04c0fde267aa"
/>
...Other Site Features
</SiteFeatures>
<WebFeatures>
<!--2
Publishing Web-->
<Feature
ID="{94c94ca6-b32f-4da9-a9e3-1f3d343d7ecb}"
Name="FeatureDefinition/15/94c94ca6-b32f-4da9-a9e3-1f3d343d7ecb"/>
... Other Web Features
</WebFeatures>
<Modules>
<Module
Name="DefaultBlank"
/>
</Modules>
</Configuration>
</Configurations>
<Modules>
<Module
Name="DefaultBlank"
Url=""
Path="">
<File
Url="default.aspx">
</File>
</Module>
</Modules>
</Project>
I hope you can help
ColinAs the error says. The Publishing Infrastructure feature must be activated at the Site Collection level where you are creating a new site PRIOR to turning on the Publishing feature. So if you are trying to use this site definition to create a
new Site Collection then its not going to work. If you are trying to create a sub site then make sure that Publishing Infrastructure is enabled in the site collection before trying to create a sub site with this site definition.
Internally Microsoft does this for the Publishing Portals using custom code. Here's an article that discusses how to do it in SharePoint 2010.
http://msdn.microsoft.com/en-us/library/office/gg615465(v=office.14).aspx
Compare what's in the article to one of the Publishing templates available out of the box in 2013 and you should be able to find the assembly that is used to load the Publishing features.
Paul Stork SharePoint Server MVP
Principal Architect: Blue Chip Consulting Group
Blog: http://dontpapanic.com/blog
Twitter: Follow @pstork
Please remember to mark your question as "answered" if this solves your problem. -
Migration from Sandbox solution to SharePoint apps
Hi,
We have a requirement that we need to migrate SharePoint Sandbox Solution to SharePoint Apps. Few things which I would like to know that if the Sandbox solution has some custom code / server based code then how we have to migrate into Apps. Because
Apps only support client based. And in some cases, sandbox has no code solution. In that case, how we can migrate into Apps..
Recently, many companies are trying to migrate from Sandbox solution to apps becuase microsoft depreciated sandbox in SharePoint 2013. In future, they may stop to support sandbox solution. Please share your views on how to proceed on migration code
and without code based solution to Apps...
Balaji -Please click mark as answer if my reply solves your problem.HI Balaji,
I assume you are having on premise Farm not office 365 so in that case
http://msdn.microsoft.com/en-us/library/office/fp179887(v=office.15).aspx
http://msdn.microsoft.com/en-us/library/office/fp179930(v=office.15).aspx
you have the following options for code:
1- SharePoint Hosted Apps: you will write Javascript code and use Javascript to access client object model
http://msdn.microsoft.com/en-us/library/office/fp142379(v=office.15).aspx
2-Provider Hosted Apps: you will write 2 parts , the first one is an application that will be deplpyed to SharePoint server the second one is a web site (asp.net or mvc) that can be hosted on the SharePoint server or on a separate Application server and
here you you can put all the logic of your .net code and you can have remote event recievers
http://msdn.microsoft.com/en-us/library/office/fp142381(v=office.15).aspx
for non code option what you will be doing is using SharePoint designer but mostly you will still to have SharePoint hosted apps
some codes
https://apps.codeplex.com/
https://corporatenewsapp.codeplex.com/
Hope this is clear and helpful
Kind Regards, John Naguib Technical Consultant/Architect MCITP, MCPD, MCTS, MCT, TOGAF 9 Foundation
Maybe you are looking for
-
How to import/export data in pl/sql developer
how to import/export data,table script in pl/sql developer. By using the export functionality i am getting the dump file.I want a sql file.How do i do it? And i want the data in csv file and table script in a sep sql file.How do i do it?
-
Repro steps: 1) Delete All Relational Models in Design 2) Engineer to Relational Model Result:
-
Audio console crash? Good day, I have a PCI Express X-Fi Titanium and I have been trying to get the Audio console to work. I have tried all of the following versions. It seems to install fine but When I attemp to change setting within it it crashes.
-
On iMovie, Photobooth and iChat my in-built iSight seems to not be connected. I have tried resetting the PRAM and had no luck. The green light is not on and I cannot locate it on the system profiler. *What has happened to my camera?!*
-
How to open a relative fileOutputStream
Hello all, I need to open a fileWriter to save levels in my game as text documents. I can get the URL with this.getClass().getResource("path to text file"); but how do i then open a fileWriter from the URL; thanks