After installing the package newsletter studio, everything works, but the custom tree for Newsletter Studio only shows the main node.
If I check the logs I see the follwoing:
The tree definition:
2015-03-25 13:43:01,812 [7] WARN umbraco.BusinessLogic.ApplicationTree - [Thread 12] The tree definition: <add silent="false" initialize="true" sortOrder="1" alias="newsletterstudio_letter" application="newsletterstudio" title="Newsletters" iconClosed="folder_table.png" iconOpen="folder_table.png" assembly="NewsletterStudio" type="Umbraco.loadNewsletters" action="" /> could not be resolved to a .Net object type
In trees.config it says
<add silent="false" initialize="true" sortOrder="1" alias="newsletterstudio_letter" application="newsletterstudio" title="Newsletters" iconClosed="folder_table.png" iconOpen="folder_table.png" assembly="NewsletterStudio" type="Umbraco.loadNewsletters" action="" />
I have this exact same site running elsewhere as well, without problems.
This is actually a bug in the way how Umbraco handles the configuration in tree.config in 6.2.5
The issue is filed here: http://issues.umbraco.org/issue/U4-6509#tab=Comments
Specificly for Newsletter Studio, this can be solved by changing the tree.config manually.
The entries for Newsletter Studio should read:
<add silent="false" initialize="true" sortOrder="1" alias="newsletterstudio_letter" application="newsletterstudio" title="Newsletters" iconClosed="folder_table.png" iconOpen="folder_table.png" assembly="NewsletterStudio" type="NewsletterStudio.Umbraco.loadNewsletters, NewsletterStudio" action="" />
<add silent="false" initialize="true" sortOrder="3" alias="newsletterstudio_settings" application="newsletterstudio" title="Settings" iconClosed="settingMasterDatatype.gif" iconOpen="settingMasterDatatype.gif" assembly="NewsletterStudio" type="NewsletterStudio.Umbraco.loadSettings, NewsletterStudio" action="" />
<add silent="false" initialize="true" sortOrder="2" alias="newsletterstudio_subscriptions" application="newsletterstudio" title="Subscriptions" iconClosed="group.png" iconOpen="group.png" assembly="NewsletterStudio" type="NewsletterStudio.Umbraco.loadSubscriptions, NewsletterStudio" action="" />
More info: https://our.umbraco.org/projects/backoffice-extensions/newsletter-studio/comments/63530-Newsletter-content-tree-fails-to-load#
I imagine that other packages will suffer from this issue as well. I know for a fact that Contour has this problem as well.
Related
ok, try to make a prototype creating Tasks in planner from ASP.NET webforms
this is really hard
at the moment stuck in Graph explorer error Message
https://graph.microsoft.com/v1.0/planner/plans/Frczk8wfmEGL---------------
permissions for graph explorer set (User.Readwriteall. Groups.Readwriteall)
got to tasks.office.com
select plan and read planid form uri
(is this really the way how it works?)
trying the samples in Graph Explorer and get a tipp to got to Stackoverflow
just right now also https://graph.microsoft.com/v1.0/me/ doesnt work
(worked sometimes before)
a few hours later Graph Explorer works - must be a Microsoft problem
part II of my question
i created the identity part with create project wizard so end up in 2 sections in web config
should both point to same clientid? or should I keep that one generated by visual studio an the other one created by the https://apps.dev.microsoft.com/ app?
<add key="ida:ClientId" value="496578b3-19d4-4956------ />
<add key="ida:AADInstance" value="https://login.microsoftonline.com/" />
<add key="ida:Domain" value="ppedv.de" />
<add key="ida:TenantId" value="d044494e-fc77-4ae0-------" />
<add key="ida:PostLogoutRedirectUri" value="https://localhost:44378/" />
<add key="ClientId" value="496578b3-19d4-4956-------" />
<add key="RedirectUri" value="https://localhost:44378/" />
<add key="Tenant" value="common" />
<add key="Authority" value="https://login.microsoftonline.com/{0}/v2.0" />
I use MVC3/ASP.NET 4.5, and use Trace.WriteLine("") type statements in my application which show up in my Glimpse Panel.
However how can I disable Tracing, say when I go into Production. I thought it was:
<system.web>
<trace enabled="false" />
But this does not work. The tracing comments still faithfully appear in Glimpse.
Unfortunately that trigger is focused on system web's tracing and not Glimpse. We could change things to adhere to that config point, but it doesn't currently.
Hence the following is what you want in you web.config:
<glimpse defaultRuntimePolicy="On" endpointBaseUri="~/Glimpse.axd">
<inspectors>
<ignoredTypes>
<add type="Glimpse.Core.Inspector.TraceInspector, Glimpse.Core" />
</ignoredTypes>
</inspectors>
</glimpse>
And if you want the tab do disappear as well, you will want this:
<glimpse defaultRuntimePolicy="On" endpointBaseUri="~/Glimpse.axd">
<tabs>
<ignoredTypes>
<add type="Glimpse.Core.Tab.Trace, Glimpse.Core" />
</ignoredTypes>
</tabs>
<inspectors>
<ignoredTypes>
<add type="Glimpse.Core.Inspector.TraceInspector, Glimpse.Core" />
</ignoredTypes>
</inspectors>
</glimpse>
I have a project in "ASP.NET MVC 5" and use "less" for files "bootstrap", use the following libraries:
http://www.nuget.org/packages/BundleTransformer.Core/
http://www.nuget.org/packages/BundleTransformer.Less/
http://www.nuget.org/packages/JavaScriptEngineSwitcher.Core/
http://www.nuget.org/packages/JavaScriptEngineSwitcher.Msie/
http://www.nuget.org/packages/MsieJavaScriptEngine/
in my BundleConfig.css I have this:
BundleTable.EnableOptimizations = false;
bundles.UseCdn = true;
CssTransformer cssTransformer = new CssTransformer();
JsTransformer jsTransformer = new JsTransformer();
NullOrderer nullOrderer = new NullOrderer();
Bundle cssBundle = new CustomStyleBundle("~/bundles/css");
cssBundle.Include("~/Content/bootstrap/bootstrap.less");
cssBundle.Include("~/Content/font-awesome.css");
cssBundle.Include("~/Content/site.less");
cssBundle.Transforms.Add(cssTransformer);
cssBundle.Orderer = nullOrderer;
bundles.Add(cssBundle);
in my environment works fine and if I use IIS works fine, but when I make the publush in "Windows Azure" for "less" files get this error:
HTTP/1.1 500 Internal Server Error
Content-Length: 75
Content-Type: text/html
Server: Microsoft-IIS/8.0
X-Powered-By: ASP.NET
Date: Wed, 21 May 2014 11:56:01 GMT
The page cannot be displayed because an internal server error has occurred.
Only with files less, others file like css o js return rigth
(I think I have another problem that does not display errors but that's another question). Web.config for error:
<system.web>
<customErrors mode="Off">
</customErrors>
edit
configuration for less in web.config like this template
<bundleTransformer xmlns="http://tempuri.org/BundleTransformer.Configuration.xsd">
<less>
<jsEngine name="MsieJsEngine" />
</less>
<core>
<css>
<minifiers>
<add name="NullMinifier" type="BundleTransformer.Core.Minifiers.NullMinifier, BundleTransformer.Core" />
</minifiers>
<translators>
<add name="NullTranslator" type="BundleTransformer.Core.Translators.NullTranslator, BundleTransformer.Core" enabled="false" />
<add name="LessTranslator" type="BundleTransformer.Less.Translators.LessTranslator, BundleTransformer.Less" /></translators>
</css>
<js>
<minifiers>
<add name="NullMinifier" type="BundleTransformer.Core.Minifiers.NullMinifier, BundleTransformer.Core" />
</minifiers>
<translators>
<add name="NullTranslator" type="BundleTransformer.Core.Translators.NullTranslator, BundleTransformer.Core" enabled="false" />
</translators>
</js>
</core>
</bundleTransformer>
<jsEngineSwitcher xmlns="http://tempuri.org/JavaScriptEngineSwitcher.Configuration.xsd">
<core>
<engines>
<add name="MsieJsEngine" type="JavaScriptEngineSwitcher.Msie.MsieJsEngine, JavaScriptEngineSwitcher.Msie" />
</engines>
</core>
</jsEngineSwitcher>
Remove from your code the following line:
cssBundle.Transforms.Add(cssTransformer);
This line is redundant and may cause errors when using the CustomStyleBundle class.
BundleTransformer only works while bundling. In other words, the *.less files are never actually used by the client, but rather, transformed into CSS and then combined and minified before actually being sent down. Requesting the *.less file directly won't work unless IIS has a mime-type to handle it, but even setting that doesn't really help you, because again, IIS is not typically serving this file.
I had my templates in simple HTML but when I put my templates, scripts and css in the Umbraco site. The fonts stopped being picked up.
At first I thought it was a path thing, but it wasn't. Whenever I try to type the URL of the referenced font I get an error.
Page not found No umbraco document matches the url
'localhost/.../bliss-heavy.otf'
umbraco tried this to match it using this xpath query'/root/*
[#urlName = "login"] | /root// [#urlName = "login"]')
I know my path is correct because when I try a slightly different path I get the obvious error:
Server Error in Application "LOCAL.DOTAGENCYLONDON.CO.UK"
Internet Information Services 7.5 Error Summary HTTP Error 404.0 - Not
Found The resource you are looking for has been removed, had its name
changed, or is temporarily unavailable.
In my web.config file I have:
<staticContent>
<remove fileExtension=".air" />
<remove fileExtension=".ttf" />
<remove fileExtension=".eot" />
<remove fileExtension=".svg" />
<remove fileExtension=".otf" />
<remove fileExtension=".woff" />
<mimeMap fileExtension=".air" mimeType="application/vnd.adobe.air-application-installer-package+zip" />
<mimeMap fileExtension=".ttf" mimeType="font/opentype" />
<mimeMap fileExtension=".eot" mimeType="application/vnd.ms-fontobject" />
<mimeMap fileExtension=".svg" mimeType="image/svg+xml" />
<mimeMap fileExtension=".otf" mimeType="font/otf" />
<mimeMap fileExtension=".woff" mimeType="application/x-woff" />
</staticContent>
What should I look for now?
You first error looks like when you try to preview or browse to an umbraco page that has no template selected - go to the properties tab of the page and see if there is a template chosen:
#amelvin, thanks for your answer. That happens because I have no template or even node for the the /login.aspx URL.
But why was site being redirect to /login.aspx? It turned out that the app pool user didn't have permission to read the font files.
Once I overwrote the app pool credentials with mine in the IIS website, it was solved.
I am using WIF SSO for authentication in my website. Everything works perfect in development environment. But on deployment I got issue
Message: The data protection operation was unsuccessful. This may have
been caused by not having the user profile loaded for the current
thread's user context, which may be the case when the thread is
impersonating. ExceptionStackTrace: at
System.Security.Cryptography.ProtectedData.Protect(Byte[] userData,
Byte[] optionalEntropy, DataProtectionScope scope) at
Microsoft.IdentityModel.Web.ProtectedDataCookieTransform.Encode(Byte[]
value)
Searching abt this issue leads me to this stackoverflow question
Is it possible to run WIF without LoadUserProfile = True
I added the code mentioned but now I am getting
Value cannot be null
I am getting e.ServiceConfiguration.ServiceCertificate ServiceCertificate null. My question is what kind of certificate is this and where can I define this in my config. Do I need to place the same certificate on ACS.
here is my config section
<microsoft.identityModel>
<service>
<audienceUris>
<add value="http://localhost:9494/" />
</audienceUris>
<federatedAuthentication>
<wsFederation passiveRedirectEnabled="true" issuer="https://devworks-sb.accesscontrol.appfabriclabs.com/v2/wsfederation" realm="http://localhost:9494" requireHttps="false" />
<cookieHandler requireSsl="false" />
</federatedAuthentication>
<applicationService>
<claimTypeRequired>
<!--Following are the claims offered by STS 'https://devworks-sb.accesscontrol.appfabriclabs.com/'. Add or uncomment claims that you require by your application and then update the federation metadata of this application.-->
<claimType type="http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name" optional="true" />
<claimType type="http://schemas.microsoft.com/ws/2008/06/identity/claims/role" optional="true" />
<!--<claimType type="http://schemas.xmlsoap.org/ws/2005/05/identity/claims/nameidentifier" optional="true" />-->
<!--<claimType type="http://schemas.microsoft.com/accesscontrolservice/2010/07/claims/identityprovider" optional="true" />-->
</claimTypeRequired>
</applicationService>
<issuerNameRegistry type="Microsoft.IdentityModel.Tokens.ConfigurationBasedIssuerNameRegistry, Microsoft.IdentityModel, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
<trustedIssuers>
<add thumbprint="BE9D0A516BEC2BC820C23D5C2EA79F068C094382" name="https://devworks-sb.accesscontrol.appfabriclabs.com/" />
</trustedIssuers>
</issuerNameRegistry>
</service> </microsoft.identityModel>
thanx
First thing you mentioned that the problem occurred after deployment, is that right? In your web.config have you changed the audienceUris to http://whatever_service_name.cloudapp.net?
<audienceUris>
<add value="http://localhost:9494/" /> <== This is wrong
</audienceUris>
Next your question about certificate is NULL at e.ServiceConfiguration.ServiceCertificate, please verify the following:
A. Endpoint is added in your application Service Definition:
B. Certificate thumbprint is set in Service Configuration
C. Certificate is set in web.config which is correct above
D. Finally added the following in your web.config so certificate can be search by thumbprint:
<serviceCertificate>
<certificateReference x509FindType="FindByThumbprint" findValue="CERT_THUMB" />
</serviceCertificate>
Study these two resources which will be very helpful:
http://www.jimandkatrin.com/CodeBlog/post/Troubleshooting-Azure-issues.aspx
http://blogs.msmvps.com/marcelmeijer/blog/2012/05/04/windows-azure-wif-access-control-acs/
The root cause is likely to be you’re using DPAPI (the default configuration of WIF). Please try to do a few modifications for the application to work in Windows Azure. I would like to suggest you to check http://msdn.microsoft.com/en-us/IdentityTrainingCourse_WIFonWAZLab2010 for a tutorial.
Best Regards,
Ming Xu.