No application encryption key has been specified occurs randomly while work with datatable - environment-variables

No application encryption key has been specified error occurs randomly in laravel. I specified application key in .env , but when i work with datatable it randomly gives this error.

Related

SQL Developer connections not opening and TNS file not being read correctly

I am facing 2 issues with my SQL Developer (Version 19.1.0.094) since the last 3 days. Everything was fine before that. And system variables in my local look OK to me.
Issues
When I click to connect to a database using an existing/saved connection on the left Connections pane, I get an error pop-up message : Invalid connection information specified. Verify the URL format for the specified driver. Vendor code 0. File attached below
The other one is, even though the folder for tnsnames.ora is configured correctly, and the application was reading from that file properly 3 days ago, now its not showing up the full list of tns entries. When I tried to add a new connection using "TNS" from the "connection type" drop-down, the list shown is no where near what I have in the tnsnames.ora file.
Any idea what may have caused this ? Re-install will take time unfortunately :(

ASP.NET MVC on IIS 7.5 problem when create files with size over 1MB

I'm facing this strange problem: I've deployed an ASP.NET MVC project in which you have to set the start date, the end date and press a button to get the results in a file. The button executes a sql stored procedure, the results are saved in a .xlsx file with OLEDB and the file is returned to the client.
All works fine in test (with IIS Express), but when I release into the production environment (IIS 7.5), i get the issue:
for example in test, setting the dates with a difference of a year between them, i got a file result of 5MB filled but if i try the same in the production environment than i got back an empty file with 10KB size.
But if i reduce the difference between the dates and get a returned file from test with size lower than 1MB, in production the file result will be filled correctly and with the same size and values as in test.
No error is returned from the IIS and the server has enough disk space and memory.
I've tried to deploy the project to another server (always with IIS 7.5) but I get the same results.
The query takes 2 seconds to complete, and all the process ends in 20 seconds.
I don't know what to do nor what to check, can anyone help me?
Has IIS some kind of size limits on file written on server?
Solved,
the problem was not IIS but the user that runs the site who doesn't had the permissions to access to the Temporary Internet Files folder as this thread explains:
Microsoft ACE OLEDB connection creating empty Excel when there are 166,110 rows
Thank you all for the help

Application Settings in Azure Portal not Overwriting Generic Values

This is my process for setting some connection strings in my Azure hosted app:
When debugging, the strings are stored in Web.Config as normal, and this is encrypted with aspnet_regiis to hide them in the version control.
At publish, these are set to some generic values in Web.Release.Config:
<add xdt:Transform="Insert" name="SPsvcUsername" connectionString="username"/>
<add xdt:Transform="Insert" name="SPsvcPassword" connectionString="password"/>
I then go into the App Service on the Azure portal and under Application Settings -> Connection Strings I add the actual values required, just using the same name, e.g. SPsvcUsername. This overwrites the generic values and everything is fine and dandy.
This has always worked since I started doing it and I have had 0 issues apart from ocasionally I would have to wait a couple of minutes for it to update.
However, today it just doesn't apply the settings that I input in Azure Portal.
When I go into the command prompt and call
more web.config
I can see that the connection string scontains the generic values username and password
What gives? Why did this suddenly stop working? Was there an update that addressed this that I haven't read about?
Any advice is much appreciated. Including anything on whether my original process actually makes any sense.
They are replaced at runtime, not in the file.
So when you access the connection string via:
string username = ConfigurationManager.ConnectionStrings["SPsvcUsername"].ConnectionString;
It will have the value from the Application Settings blade.

anti-forgery token could not be decrypted

Some forms in my asp.net website cause "anti-forgery token could not be decrypted" exception. I tried some of the solutions but they did not work:
I dont't have duplicate #Html.AntiForgeryToken() in my form.
I dont't use web farm but I tried adding machineKey. I used AutoGenerate but it has no effect.
I added fixed machine key value with IsolateApps but it complains "Decryption key specified has invalid hex characters".
I removed IsolateApps and application pool stopped.
What else I can do? Why this happens?
Thanks.

Recaptcha error

I have a problem with Recaptcha gem. I'm using Ubuntu on a virtual machine (VirtualBox). It uses bridged network interface card, so I have internet access there and I can see this Ubuntu from my host computer.
When I run rails s and than go to
127.0.0.1:3000 on virtual machine everything is fine.
192.168.0.103:3000 on host machine there is an error with recaptcha box.
Input error: Invalid referer is where the box is supposed to be.
Why is it like that and how to fix this?
But, when we tried to host the same application to any server with the same pair of keys, it will not generate an error but, it will display like "input error - invalid referer" instead of captcha in your form.
Because, when we are getting the pair of keys from Google API, we will specify the domain name there. In that, to use those keys in your local system, we will enter domain as "localhost". But, these pair of keys will not work when we deploy that application in any server.
So, for the application to work in the remote host, we should get the pair of keys from Google API with the domain name, where we are going to deploy your application. And use them in your application.
Note:
We can have a new pair of keys for recaptcha using following link:
http://www.google.com/recaptcha/whyrecaptcha

Resources