"Which type of client-side component to create?" is missing "Extension" - yeoman

I am using Node.js 14.18.1 (x64) and npm.
When i run D:\extensionfullstack>yo #microsoft/sharepoint I got this :-
D:\>cd D:\extensionfullstack
D:\extensionfullstack>yo #microsoft/sharepoint
_-----_ ╭──────────────────────────╮
| | │ Welcome to the │
|--(o)--| │ SharePoint Client-side │
`---------´ │ Solution │
( _´U`_ ) │ Generator#1.13.0 │
/___A___\ /╰──────────────────────────╯
| ~ |
__'.___.'__
´ ` |° ´ Y `
Let's create a new SharePoint solution.
? What is your solution name? extensionfullstack
? Only SharePoint Online (latest) is supported. For earlier versions of SharePoint (2016 and 2019) please use the 1.4.1
version of the generator. SharePoint Online only (latest)
? Where do you want to place the files? Use the current folder
? Do you want to allow the tenant admin the choice of being able to deploy the solution to all sites immediately without
running any feature deployment or adding apps in sites? Yes
? Will the components in the solution require permissions to access web APIs that are unique and not shared with other c
omponents in the tenant? Yes
? Which type of client-side component to create?
> WebPart
Where "Extension" option is missing any advice?
Thanks

It seems you have selected "Yes" for the option "Will the components in the solution require permissions to access web APIs that are unique and not shared with other components in the tenant?" Yes.
This is "isolated" option.
The answer you selected is not compatible with "Extension", only "WebPart". You could answer "No" to this question to be able to select "Extension", or use a later version of the generator (1.14) that does not ask this question.

Related

How to add my app to the default apps list in Windows 11 settings?

I am working on an email application and I want to have the ability to select it as the default mail client and to handle clicks on mailto links.
I understand that I need to register it in the Windows registry, but I don't know what exactly I should do.
My application is based on electron and I use electron-builder to build it, and it uses nsis installer.
Can someone please provide me with steps to achieve this or share any relevant resources?
I tried to modify the registry the following way, but it didn't work.
Windows Registry Editor Version 5.00
; Infamous capabilities:
[HKEY_LOCAL_MACHINE\SOFTWARE\MyEmailClient\Capabilities]
"ApplicationDescription"="My Email Client Description"
"ApplicationIcon"="C:\\Users\\user\\AppData\\Local\\Programs\\MyEmailClient\\MyEmailClient.exe"
"ApplicationName"="MyEmailClient"
[HKEY_LOCAL_MACHINE\SOFTWARE\MyEmailClient\URLAssociations]
"mailto"="MyEmailClient.Url.mailto"
; Register to Default Programs
[HKEY_LOCAL_MACHINE\SOFTWARE\RegisteredApplications]
"MyEmailClient"="Software\\MyEmailClient\\Capabilities"
[HKEY_LOCAL_MACHINE\Software\Classes\MyEmailClient.Url.mailto\shell]
[HKEY_LOCAL_MACHINE\Software\Classes\MyEmailClient.Url.mailto\shell\open]
[HKEY_LOCAL_MACHINE\Software\Classes\MyEmailClient.Url.mailto\shell\open\command]
#="\"C:\\Users\\user\\AppData\\Local\\Programs\\MyEmailClient\\MyEmailClient.exe\" -- \"%1\""

Application Insights duplicated dependency logs

I have Application Insights configured for a production webapp. The nuget packages are installed, AppInsights.config and Web.config are configured (default configuration) and I don't have any changes in the codebase except setting the instrumentation key dynamically.
Is it normal to see the same dependency logged multiple times and why is it happening? And by "multipe times" I mean 15-20.
Example:
SQL Profiler shows only 1 SQL query so the problem is only with the logging.
The same happens with (AJAX) dependencies as well. Any idea what could be the source of the problem?
EDIT:
The data from analytics.applicationinsights.io shows that only the timestamps are different:
EDIT2:
https://pastebin.com/CAUQTGVi
{"name":"Microsoft.ApplicationInsights.INSTKEY.RemoteDependency","time":"2017-09-18T07:17:08.9288418Z","iKey":"INST-KEY","tags":{"ai.operation.parentId":"|cVw20.519d7d1f_","ai.session.id":"9U54e","ai.operation.id":"cVw20","ai.operation.name":"POST OrderItemTileBrowser/List","ai.location.ip":"::1","ai.cloud.roleInstance":"PC-JOHNDOE.Company.local","ai.user.id":"J9s5n","ai.internal.nodeName":"PC-JOHNDOE.Company.local","ai.user.authUserId":"iTos","ai.internal.sdkVersion":"rddf:2.4.0-32470"},"data":{"baseType":"RemoteDependencyData","baseData":{"ver":2,"name":"SQL\\PRODUCTION | SomeDatabaseName","id":"|2piZlu5+k1o=.519d7d46_","duration":"00:00:00.0012586","success":true,"type":"SQL","target":"SQL\\PRODUCTION | SomeDatabaseName","properties":{"_MS.ProcessedByMetricExtractors":"(Name:'Dependencies', Ver:'1.0')"}}}}
{"name":"Microsoft.ApplicationInsights.INSTKEY.RemoteDependency","time":"2017-09-18T07:17:08.9308469Z","iKey":"INST-KEY","tags":{"ai.operation.parentId":"|cVw20.519d7d1f_","ai.session.id":"9U54e","ai.operation.id":"cVw20","ai.operation.name":"POST OrderItemTileBrowser/List","ai.location.ip":"::1","ai.cloud.roleInstance":"PC-JOHNDOE.Company.local","ai.user.id":"J9s5n","ai.internal.nodeName":"PC-JOHNDOE.Company.local","ai.user.authUserId":"iTos","ai.internal.sdkVersion":"rddf:2.4.0-32470"},"data":{"baseType":"RemoteDependencyData","baseData":{"ver":2,"name":"SQL\\PRODUCTION | SomeDatabaseName","id":"|kI7U4BuILOs=.519d7d47_","duration":"00:00:00.0018574","success":true,"type":"SQL","target":"SQL\\PRODUCTION | SomeDatabaseName","properties":{"_MS.ProcessedByMetricExtractors":"(Name:'Dependencies', Ver:'1.0')"}}}}
...
The data sent to AI servers (captured using Fiddler, some sensitive info replaced with dummy placeholders)
The only related topic I found (which does not mention duplication of logged items), and definitely does not answer my question nor gives me an acceptable solution: https://social.msdn.microsoft.com/Forums/vstudio/en-US/97d9f0b0-9d1e-4261-b80f-c7b7f07ecfe2/telemetry-throttling-how-can-i-cut-back-on-telemetry-events-disable-dependancy-events?forum=ApplicationInsights

Swagger UI always enabled TIBCO BW 6

when my application is deploying in production enviroment, I can´t disable the Swagger documentation . This document is always active .
Please, how can I disable swagger documentation?
I have updated the Appnode/config.ini file with the property
"bw.rest.docApi.port=7777"
to
"#bw.rest.docApi.port=7777" but the swagger is active.
thanks and regards.
Can you please try adding the following to VM arguments (for studio design time) or java.extended.properties (in appnode TRA for runtime) to see if it helps?
-DBW_DISABLE_SWAGGER_UI=true

ZF2 Fatal error: Class 'Locale' not found in /home/...../Zend/I18n/Translator/Translator.php on line 228

I have a project in my localhost, already running, after modifying the php.ini of my XAMPP server [running on Windows 7] (adding: extension=php-intl.dll).
But when i upload this project to my GoDaddy hosting, it doesn´t works and get the following error:
Fatal error: Class 'Locale' not found in /home/content/41/9674641/html/library/zend.2.0.4/Zend/I18n/Translator/Translator.php on line 228
GoDaddy hosting details:
Php version 5.3
Operating system: Linux
i386-redhat-linux-gnu
Zend Framework details:
Zend Library: 2.0.4
I´ve tried what they say on the following links:
http://support.godaddy.com/help/article/1085/can-i-add-a-php-initialization-file-to-my-hosting-account?locale=en
http://support.godaddy.com/help/article/5647/why-isnt-my-phpini-file-taking-effect?locale=en&ci=46061
Also, i´ve called to 24/7 goDaddy support and they suggested me to create a php5.ini file in the root directory, then, they told me to stop all web services (Cpanel/Stats & Monitors/System Processes/end web), but they didn´t told me what do i need to include in the php5.ini file.
I was reading some links and, as my localhost is a windows one, adding the extension=php-intl.dll to the php.ini file worked. So i´ve tried to include in my godaddy linux server: extension=php-intl.so but doesn´t works (neither extension=php-intl.dll).
The problem with the goDaddy hosting began when i started using ZF2 FORMs.
Updates:
1) I´ve got access to the php5.ini of the goDaddy server (i have made a copy on the root of my hosting) using PUTTY: cp /web/conf/php5.ini /var/chroot/home/content/41/9674641/html
Then i have read it and i could not find the "intl" extension, instead of this, i only could find:
; Windows Extensions
; Note that ODBC support is built in, so no dll is needed for it.
; Note that many DLL files are located in the extensions/ (PHP 4) ext/ (PHP 5)
; extension folders as well as the separate PECL DLL download (PHP 5).
; Be sure to appropriately set the extension_dir directive.
;extension=php_mbstring.dll
;extension=php_bz2.dll
;extension=php_curl.dll
;extension=php_dba.dll
;extension=php_dbase.dll
;extension=php_exif.dll
;extension=php_fdf.dll
;extension=php_filepro.dll
;extension=php_gd2.dll
;extension=php_gettext.dll
;extension=php_ifx.dll
;extension=php_imap.dll
;extension=php_interbase.dll
;extension=php_ldap.dll
;extension=php_mcrypt.dll
;extension=php_mhash.dll
;extension=php_mime_magic.dll
;extension=php_ming.dll
;extension=php_mssql.dll
;extension=php_msql.dll
;extension=php_mysql.dll
;extension=php_oci8.dll
;extension=php_openssl.dll
;extension=php_oracle.dll
;extension=php_pgsql.dll
;extension=php_shmop.dll
;extension=php_snmp.dll
;extension=php_sockets.dll
;extension=php_sqlite.dll
;extension=php_sybase_ct.dll
;extension=php_tidy.dll
;extension=php_xmlrpc.dll
;extension=php_xsl.dll
2) goDaddy response to my formal support request (ticket):
Thank you for contacting Online Support
I understand you are wanting to get Internationalization extension on
to your hosting account. At this time these are not supported in our
systems at this time. We are going to review this with our developers
to more information. You may receive an email us down the road with
addition information about this.
Please let us know if we can assist you in any other way.
Now i'm thinking that i have two problems:
A) Include the line to enable the extension (i don't know how):
Maybe could be:
extension_dir=/var/chroot/home/content/41/9674641/html/library/extensions/php-intl/usr/lib64/php/modules
extension="intl.so"
B) Include the extension in some location inside my hosting (but i don´t know how):
Maybe i could put the extension files inside: /var/chroot/home/content/41/9674641/html/library/extensions/php-intl
Also, i don't know where to acquire the extension files
C) Is there any known update on ZF2 (skeleton, library ..) that solve this issue ?
Please, i need help as soon as possible.
You can manage PHP modules by using the "Change PHP version" feature of the cPanel interface. Select any version other than "native" and a list of checkboxes will appear.
http://support.godaddy.com/help/article/3937/viewing-or-changing-your-php-language-version?pc_split_value=2
Of course, their support might not immediately mention this solution, which should have been in their knowledge base in the first place.

Symfony Shared Library Upgrade

I have a symfony version 1.0.16 application that I want to upgrade to symfony 1.4. Symfony is currently installed as a shared library on my server. How can I convert from a server wide shared library to a domain specific symfony library?
I work every day on Symfony projects and one of the best practice i've adopted is:
Always embbed the symfony vendor libraries inside the applicacion (its the recommended by symfony when having non related projects hosted on same server).
So, steps to take in order to change from wide to local:
Create a vendor folder on $sf_root/lib/
Download and uncompress a symfony version inside $sf_root/lib/vendor/symfony folder
replace the symfony script on $sf_root/ with the one on ($sf_root/lib/vendor/symfony/data/bin/symfony)
Modify the ProjectConfiguration.class.php on config to start using the lib/vendor/symfony libraries. It should look something like this:
require_once dirname(__FILE__).'/../lib/vendor/symfony/lib/autoload/sfCoreAutoload.class.php';
sfCoreAutoload::register();
class ProjectConfiguration extends sfProjectConfiguration{
.....}
Rebuild all classes
Verify your code. Plugins not always work with every symfony versions. Also if you created administrator modules (like the ones generated by propel), check if the configuration.yml it's still consistent.
Also this could be helpful (its a different version but could give ideas if something breaks) Upgrade symfony project

Resources