Unable to access web extension in Hybris - spring

I have created my Web extension by extending ycommercewebservices extension but upon build I could not able to access any of the API from my custom extension(Error-404).
Entry in a extensioninfo.xml already available ::
<webmodule jspcompile="false" webroot="/myCustomExtension"/>
Also I could see my extension in Hac -> Extension but unable to access any of the API.
I have checked the logs and there is no any error as such w.r.t extensions.
Can someone please point out if I am missing anything.

Related

IDP failing on test page

I have installed a simplesamlphp instance, and set it up for facebook login with success on the mysite.org/simplesaml interface.
I was wanting to get linkedin and twitter configured too. I followed the instructions for creating an app on the 3rd party site, and have triple checked my settings with regard to the keys and secrets on authsources.php. I have created an enable file in the relevant module directories.
When I test the authentication source, I get redirected to a blank page with, for example simplesaml/module.php/core/authenticate.php?as=linkedin as an address.
How can I troubleshoot this? I can not find any logs, and no error messages appear on the page. I have enabled showerrors and debug of saml and backtraces in the config/templates/config.php
I have tried disabling the facebook login (which still works fine) incase it was a problem with more than one module active at a time, but this did not help.
If SSP can't find a sspmod_* class than either that module is not installed or not enabled. Based on the class name sspmod_oauth_Consumer I know it is looking in the modules/oauth folder, and I know the oauth module is include (but not enabled) by default.
To enable the module you can do touch modules/oauth/enable

Unable to generate Elmah.axd file of Elmah logging with Web API

I have created Web API only. In that I want to use Elmah Logging. I have installed Nuget package of it. But when I try to access Elmah.axd file from browser it gives me an error : 404 Not Found. And that file is not generated. I have followed this link.
Do I need to do anything additional to generate/access this file?
I'm the author of the tutorial you have linked to. I just created a new Web API project and installed ELMAH. /elmah.axd is available. I would be very interested in seeing your web.config if you can update the question with that? Also, you can try to validate your web.config using the ELMAH Configuration Validator here: https://elmah.io/tools/configvalidator

WebMatrix 2 site problems on upload to host

I have developed a Web Pages 2 website for my company using WebMatrix 2 that includes a simple SQL Compact Edition (.sdf file) database. Sounds simple. Runs perfectly on my local development box.
However, upon FTP to my Web host, it's a no-go. The first error I received was this:
Server Error in '/' Application.
Unable to find the requested .Net Framework Data Provider. It may not be installed.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.ArgumentException: Unable to find the requested .Net Framework Data Provider. It may not be installed.
Source Error:
Line 1: #{
Line 2: WebSecurity.InitializeDatabaseConnection("Omniflow", "UserProfile", "UserId", "Email", true);
Line 3: }
I have searched and searched and searched the Internet, trying to find out what the source of this problem is and how to fix it. I haven't found the answer yet. I gather than apparently some needed assemblies/dlls are not being uploaded with the application. I have tried both FTP and the Web Deploy method with no fix.
Is this the root of the problem? And why does WebMatrix not upload all its dependencies? If it cannot, why is there nothing in the online literature from Microsoft--and it should come from Microsoft--or anyone else describing this issue?
Are you using one of the hosting sites listed on the Microsoft WebMatrix page: http://www.microsoft.com/web/webmatrix/ ? I know that when I deployed my WebMatrix site to a generic IIS server, it took some extra DLL's in the bin directory, and a couple of settings to be fine tuned before it worked.
While publishing check whether your have selected Database file( .sdf file ) or not.If not then select it and publish.
Hope it will work for you.
Ensure that you have all the SqlCE DLLs required for accessing the SqlCE database.
They should be present in the bin\, bin\x86\ and bin\AMD64\ folders.
You can try creating a new site using Site from Template -> Empty Site (ASP.NET) and checking the bin folder to see which all dlls are present.
If you don't already have them in your site, add them. That should solve your problem.

Create an EVENT SOURCE using web setup project

I am developing a website using MVC 3,
I have a web setup project for installing it to my localhost.
Now what I want is to create an EVENT SOURCE ( where I will later on log using my website ) using this very setup.
Is this possible?
I have been following this link:
http://msdn.microsoft.com/en-us/library/ms998320.aspx#paght000015%5Feventlogaccess
I earlier tried creating an EVENT SOURCE programmatically, but my web app threw security exceptions, similar to the error the user in this post was getting: System.Security.SecurityException when writing to Event Log
Thanks in advance
Yasser
After a lot of struggle I myslef managed to answer my question
I first had to create a seperate installer class, which had code to install an event source.
Next in my web setup project, under custom action in INSTALL, I simply added the output of the above project which was a single dll.
and thats it!
Now whenever my web setup runs, the installer dll is also activated and run and my event source gets created.
Now that was not too difficult was it ? ;)

Accessing NuGet functionality from behind a corporate firewall

When I right mouse click on the References folder in the Solution Explorer window and selecct "Add Package Reference Library", I get teh error
The package source named "NuGet official package source https://go.microsoft.com/fwlink/?LinkId=206669 is eiether invalid or not available and thus is unreachable"
When I use IE directly to access this URL, I am redirected to http://packages.nuget.org/v1/FeedService.svc/ and see an XML response.
I suspect that my company's security is preventing me from accessing this site. I'd like to request that they make an exception. What specifically should I request that would enable me to access it?
And similarly, I would like to access the Extnsion Manager functionality from within VS but I get a more vague "An error occured error" ..
This seems to be a known issue with NuGet. I've been getting the same error and I updated to the latest version of NuGet but still get the error when using the proxy, but everything works when the proxy is disabled. I'm not sure when they will have this resolved.

Resources