I have a console job that I'am migrating to Azure WebJobs. It runs fine on the Server it was running on before (Windows 2012 R2) but as soon as I zip it up and deploy it to WebJobs it can't see any of the settings in the local app.config for the WebJob, even more so It can't refer back to any of the application settings setup in the portal either. I've been back and forth on it but can't figure out whats truly going on.
Related
I am working on a web app in .net core and deployed it on Azure (App Service). As a part of the app, I am creating AWS RDS MySql db. The code works well on my machine but not on the Azure. Following code snippet which is exposed as a REST API is causing a problem.
logger.LogInfo("In AWSRDS.cs->PushToCloud()");
AmazonRDSClient client = new AmazonRDSClient(awsAccessKeyId:"xxxxxxxxxxxxxx",
awsSecretAccessKey:"xxxxxxxxxxxxx");
logger.LogInfo("In AWSRDS.cs-> client created");
The above lines are wrapped with try-catch block. I get first line in the log file and nothing thereafter. No processing, no exception.
I alrady tried
re-deployments
restarting the app a few times
manually installing dotnet package via console on the Azure web app (even if the DLL exists)
Created another Azure web app (with linux hosting) only to observe same behaviour
Any clue will be greatly appreciated.
Not sure why you aren't getting any error message but I suspect the SDK is failing to resolve what AWS region to make requests to. When running in AWS the compute environment will be configured for the region the code is running and I suspect locally you have a default region configured.
Can you switch to the constructor that takes in a region enum and pass in the region you want to connect to?
I have a UAT ENVIRONMENT where I am using NServiceBUS endpoints. Everything works. Then when we moved to Production, the method we used to make the environment was to make an IMAGE of the UAT server and restore on a new AWS server instance
We reinstalled RAVENDB but on Windows authentication page in manage server, we are seeing the authentication from the old server. I have removed the RavenSITE folder and uninstalled RavenDB, restarted the server and tried installing again, but the old authentication line items are still coming up. Where are these getting stored? So I can go delete them.
The endpoints are also not registering with the instance and the databases are not getting created for each endpoint
Please assist!
These are stored in the System database.
I'm a beginner in Java EE development.
I try to make a REST web service using Netbeans 8.0.2 with a Glassfish Server 4.1 and a MySQL database which contains my tables.
So I create a new Web Application, then I create a new package in the folder Sources Package of the web application, and I create a new web service in that package, this web service is a RESTful web services from database.
In the Services tab, I click on Databases, then I register my MySQL server and I create a new connection to my database on my MySQL server, it works.
During the creation of the RESTful web service, it connects to my database.
But when I run my project, I have this error :
nbproject/build-impl.xml:1046: The module has not been deployed. See the server log for details.
BUILD FAILED
I don't know how to resolve it.
The Glassfish server doesn't show log, I'm surprised because there isn't any log.
I go to the Services tab in Netbeans, and under Servers I right click on my Glassfish server and I click on View Domain Server Log but nothing occurs, so I open a command interface, and I go to the directory of the log of my Glassfish server and there is nothing
The tab which have the same name of my project shows this output :
NetBeansProjects\WebApplicationGlassfish2\nbproject\build-impl.xml:1046: The module has not been deployed.
See the server log for details.
BUILD FAILED (total time: 1 minute 53 seconds)
Just a couple of ideas in case you haven't check it.
If you are using the Glassfish server be sure the MySQL driver is installed on the server. You can check this in the documentation
Second, it's not enough to configure the DB in your Netbeans, in your project you should create the proper configuration in your persistence.xml file (usually, unless your are using jdbc manually). You should create your datasource or, at least, register the connection properties.
I hope it helps.
I have a WSO2 Application Server, version 5.0.1 installed on my local machine.
I created a JAX-RS service and tested it locally.
The WAR file was built and deployed to the local Application Server successfully. When I log in to the local Application server Admin console, I see it displayed under Applications as type JaxWebApp with 'Find Services' listed under the Actions column.
I have a StratosLive subscription and I am trying to ADD/UPLOAD this JAX-RS service as a WAR file to the StratosLive Application Server. The Admin Console for the StratosLive Application Server is different. On the Main tab, It displays Web Applications and Web Services rather than the Applications and Services on the Admin console for the 5.0.1 Application Server I am running locally.
Consequently, I do not see an option to ADD/UPLOAD my JAX-RS service as a WAR file. The only option is to add a Web Application WAR file (I tried this and it does not work properly - thinks it's a web app) or JAX-WS Web Service as a annotated JAR file.
It looks like the StratosLive Application Server I am using may be a different version (earlier maybe) than the 5.0.1 I am using locally.
Has anyone else been able to ADD/UPLOAD a JAX-RS service to a StratosLive Application Server?
Usually it takes small time to upgrade StratosLive version of a product to latest standalone product version. Now StratosLive has been upgraded to latest Application Server version and you should able to run above use case on StratosLive without any issue.
I am using WCF for the first time. I Have successfully created the service and it works fine on my local machine. I want to know the steps involved for deploying the service to the client environment (including changes to the config file, IIS settings) and any other miscellaneous settings.
http://msdn.microsoft.com/en-us/library/aa751792.aspx
There you go - the how to from Microsoft
Right click the service project in VS, select Copy Website.
Specify the IIS path. (may need to connect)
Moves / sync all files.
You can also deploy a WCF service to a windows service host. This is desirable in many situations which are outlined here:
IIS WCF service hosting vs Windows Service