|
Read the error message:
The provider is not compatible with the version of Oracle client
It means that the engine and client versions are not compatible: you are trying to access a newer DB with an older client (or possibly vice versa but it's unlikely).
Think about it: if your code is written for V1.0 of a file format, and you try to work with a V5.6 file you would corrupt the file or discard data.
That's what the error is saying: "it's too new for me, I don't understand the differences, so I'm not going to risk your data"
Google translate: Lisez le message d'erreur:
Le fournisseur n'est pas compatible avec la version du client Oracle
Cela signifie que les versions du moteur et du client ne sont pas compatibles: vous essayez d'accéder à une base de données plus récente avec un client plus ancien (ou peut-être l'inverse mais c'est peu probable).
Pensez-y: si votre code est écrit pour la V1.0 d'un format de fichier et que vous essayez de travailler avec un fichier V5.6, vous corrompriez le fichier ou supprimeriez des données.
C'est ce que dit l'erreur: "c'est trop nouveau pour moi, je ne comprends pas les différences, donc je ne vais pas risquer vos données"
In future, please use Google or Bing to translate French - this is an English language site!
Google translate: À l'avenir, veuillez utiliser Google ou Bing pour traduire le français - c'est un site en anglais!
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Bonjour,
Merci pour votre message.
Voici la version de base :
Oracle Database 11g Entreprise Edition Relase 11.2.0.4.0 - 46bit Production
Voici la version de driver ODAC112040Xcopy_32bit
avec l'ensemble de .dll :
oci.dll
ociw32.dll
Oracle.DataAccess.dll
oramts.dll
oramts11.dll
oramtsus.dll
orannzsbb11.dll
oraocci11.dll
oraociei11.dll
oraOps11w.dll
orasql11.dll
Le projet web service fonctionne tout seul et aussi lorsque j'ai inclu dans un autre projet.
Maintenant, je voulais déployer le web service pour que ceux qui veulent les utiliser alors ils peuvent le référencer à travers l'URL de ce web service.
Mais le même message d'erreur !!!
|
|
|
|
|
Once again: This is an English-lanugage site. Please post in English.
Ceci est un site en anglais. Veuillez poster en anglais.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Hello,
Thank you for your message.
Here is the basic version:
Oracle Database 11g Enterprise Edition Relase 11.2.0.4.0 - 64it Production
Here is the driver version ODAC112040Xcopy_32bit
with the set of .dll:
oci.dll
ociw32.dll
Oracle.DataAccess.dll
oramts.dll
oramts11.dll
oramtsus.dll
orannzsbb11.dll
oraocci11.dll
oraociei11.dll
oraOps11w.dll
orasql11.dll
The web service project works by itself and also when I have included it in another project.
Now, I wanted to deploy the web service so that those who want to use it so they can reference it through the URL of this web service.
But the same error message !!!
|
|
|
|
|
It looks like you are trying to mix 32-bit and 64-bit, which will not work.
|
|
|
|
|
So, you found an English site and decided to post in French?
Je voulais un chien de bbq. Avec une croissont.
You installed the wrong drivers. The error hints at it. Make sure the croissant warm
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
"If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.
|
|
|
|
|
Mon aéroglisseur est plein d'anguilles.
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Wenn ist das Nunstück git und Slotermeyer? Ja! Beiherhund das Oder die Flipperwaldt gersput!
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Romanes eunt domus?
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Now write the correct phrase, Romani ite domum, 100 times,
Wrong is evil and must be defeated. - Jeff Ello
Never stop dreaming - Freddie Kruger
|
|
|
|
|
Good day.I have a VS2017 C# solution (A) with 3 projects under this solution and the whole solution is in Git repository.
Now, I just created a small Windows form solution C# (B) with single project. How can I add this new solution(B) to the existing solution(A) so that at the end I can push the exisitng git repository(A) along with the new solution as part of it. I tried this way: Added solution folder of B to the solution folder of A. Now what? I can open up Team explorer in A or B. How can I achieve this in VS or in Git? Please advice an easy way.Thanks
|
|
|
|
|
Solutions do not contain other solutions.
A solution is a collection of Projects. So, you can open the Solution you're trying to add to and just add an existing project to it. Navigate to the .proj file in the project folder you want to add to the solution.
|
|
|
|
|
David is right - it's add the project to the solution, or create a new repository for your existing "spare" solution.
I use a separate repository for each solution, which is the most sensible way - adding unrelated projects to a solution doesn't keep them separated enough, and "bloats" solutions (which can slow things down considerably if you aren't careful).
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Hello all,
If you can please help me, I'm new to see sharp programming.
I need to display odd/even for each digit from a number like this:
4444
even
even
even
even
So, I extract each digit from the right - to the left (it was easy for me like this) and I have this code:
<pre> static void Main(string[] args)
{
string inputData = Console.ReadLine(); // the digit
int number = Convert.ToInt32(inputData);
int aDigit = number % 10000 / 1000;
int bDigit = (number % 1000) / 100;
int cDigit = (number % 10);
int dDigit = (number % 100) / 10;
}
<pre lang="c#">
To get odd/even from each digit I use the concatenate method, and combine each digit with the string name odd/even and in console I get eveneveneveneven (for 4444). Is there a way to get like a block or list with concatenate method.
Or is there with if/else function and display the odd/even result with if (aDigit %2 ==0). and return in console writeline even/odd like a list.
Thank you for your time.
|
|
|
|
|
Try this:
private static string GetOddAndEvens(int val)
{
StringBuilder sb = new StringBuilder(120);
Stack<int> digits = new Stack<int>();
val = Math.Abs(val);
while (val > 0)
{
int digit = val % 10;
digits.Push(digit);
val /= 10;
}
while (digits.Count > 0)
{
int digit = digits.Pop();
string evenOdd = digit % 2 == 0 ? "even" : "odd";
sb.AppendLine($"{digit} - {evenOdd}");
}
return sb.ToString();
}
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
I try but is not working in visual studio, I'm getting here:
StringBuilder sb = new StringBuilder(120);
Stack<int> digits = new Stack<int>(); a code error.
Do I have to set a new class or a new namespace or something else?
Thank you for your time, I really appreciate that you help me.
|
|
|
|
|
Put your mouse over the type with the red line under it.
A small dropdown will appear below and to the left.
Open the dropdown, and it will offer a range of solutions for fixing the problem: the top one will probably be "using System.Text" for StringBuilder and "using System.Collections.Generic" for the Stack.
Click on that, and it'll add the required using line for you.
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
string s = "1234";
foreach ( char ch in s ) {
Console.WriteLine( $"{ch}: {( ch % 2 == 0 ? "even" : "odd" )}" );
}
Console.ReadKey();
It was only in wine that he laid down no limit for himself, but he did not allow himself to be confused by it.
― Confucian Analects: Rules of Confucius about his food
|
|
|
|
|
Thank you! ...I was looking for a complicate solution for a simple problem
|
|
|
|
|
You're welcome! The Char class has a lot of useful methods: .IsDigit(), .IsLetter(), etc.
It was only in wine that he laid down no limit for himself, but he did not allow himself to be confused by it.
― Confucian Analects: Rules of Confucius about his food
|
|
|
|
|
Based on this document from apple : https://developer.apple.com/business/documentation/MDM-Protocol-Reference.pdf
Quote: I am trying to fetch mobile identifier by running provisioning profile on the device.
Here, I am able to get these identifiers: -
UDID
IMEI
ICCID
VERSION
PRODUCT
But this Identifier i.e. DeviceCapacity is not getting fetch.
Please find below is my code:
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>PayloadContent</key>
<dict>
<key>URL</key>
<string>https://xyz.com/home/checkin/?udi={0}</string>
<key>DeviceAttributes</key>
<array>
<string>UDID</string>
<string>IMEI</string>
<string>ICCID</string>
<string>VERSION</string>
<string>PRODUCT</string>
<string>SERIAL</string>
<string>MEID</string>
<string>DEVICECAPACITY</string>
</array>
</dict>
<key>PayloadOrganization</key>
<string>cellderetail-pro-new.cellde.com</string>
<key>PayloadDisplayName</key>
<string>Profile Service</string>
<key>PayloadVersion</key>
<integer>1</integer>
<key>PayloadUUID</key>
<string>9CF421B3-9853-4454-BC8A-982CBD3C907C</string>
<key>PayloadIdentifier</key>
<string>com.cellderetailpronewprovisioning</string>
<key>PayloadDescription</key>
<string>This temporary profile will be used to extract your current device's identifiers.</string>
<key>PayloadType</key>
<string>Profile Service</string>
</dict>
</plist>
Below is is the code for installing provisioning profile on ios device
var contentDisposition = new System.Net.Mime.ContentDisposition
{
FileName = "device-information.mobileconfig",
Inline = false
};
var path = Configuration.MobileConfigPath;
logger.LogMessage("MobileConfigPath" + path, FileLogger.MessageType.Info);
string mobileConfigPlist = System.IO.File.ReadAllText(path);
if (isHeadless)
udi = string.Format("{0}-hls-{1}-{2}-{3}-{4}-{5}-{6}", udi, storeId, StoreType, EnterpriseID,Session["TechName"],Session["Capacity"],Session["Model"]);
var plistWithUdiUrl = mobileConfigPlist.Replace("{0}", udi);
var bytes = getSignedContent(plistWithUdiUrl);
logger.LogMessage("Signed Content Bytes", FileLogger.MessageType.Info);
Response.AppendHeader("Content-Disposition", contentDisposition.ToString());
Response.AppendHeader("Cache-Control", "public, no-store, max-age=0");
return File(bytes, "application/x-apple-aspen-config");
As kind of help / suggestion are welcomed
|
|
|
|
|
The fields you're querying require different access rights, including "Device Information" access rights.
It was only in wine that he laid down no limit for himself, but he did not allow himself to be confused by it.
― Confucian Analects: Rules of Confucius about his food
|
|
|
|
|
Hi, friends. I want to create e User Control that contains two components: a textbox and a combobox. Both must be connected to a database (SqlServer, for instance). I know how to connect the combobox, also inside the UC, but in an instance of the UC I don’t. What I want is to add this new component to a form application and to make the connection, but different tables at a time. Can anybody help me?
Thanks.
|
|
|
|
|
You'll need to either provide a Constructor or a Property that allows you to pass the table name into the UserControl when it is created, and provide methods to connect and disconnect the instance - almost certainly, a property is a better idea as you can't call a parameterized constructor from the VS designer (even creating a parameterized constructor will break the designer!)
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
You can have parameterized constructors if you also have a default constructor for the designer. I use parameterized constructors when I add UC's on the fly, and sometimes add a private default constructor so it can only be used on the fly.
It was only in wine that he laid down no limit for himself, but he did not allow himself to be confused by it.
― Confucian Analects: Rules of Confucius about his food
|
|
|
|