i developed a project in which there are ..
1)Updating the database
2)Drawing a image using graphics and save the image in jpg format
when i run the project in my system , it works
but when i setup it and deployee in client system...
it is showing error that..
1)Unable to update the database bcoz it is in read only
2)A generic error occurred in GDI+
to solve the 2nd problem, i given all Full Control/Access permission
then it is solved
how to solve the first problem
the client is not providing the permissions bcoz all the other softwares developed by other vendors are working fine with out giving any Permissions
So, How can I get correct port list (without com3)?
You can give System.Management a try, I have used it before to enumerate hardware. I don't know for sure whether virtual com-ports are included, and I can't test it on my own machine (at least not without installing a new com-port). You'd need to add a reference to the assembly "System.Management" to use this functionality. The code would be something like this;
ManagementObjectSearcher searcher =
new ManagementObjectSearcher("SELECT Name FROM Win32_SerialPort");
foreach (ManagementObject mo in searcher.Get())
Alternatively, you could scan the registry. Open RegEdit and search for the friendly name of the COM-port
I am not able to execute oracle stored procedure in C# code.
requirement: execute oracle stored procedure which has 1 inout parameter in C#. and inout parameter type is string/varchar.
input: i am having a oracle stored procedure which had one INOUT parameter.
exception getting: when i am using below lines of code
OracleConnection con = new OracleConnection(StrConnectionString);
OracleCommand cmd = new OracleCommand("sapncdb.encrypt_field", con);
cmd.CommandType = CommandType.StoredProcedure;
OracleParameter inval = new OracleParameter("inval", OracleType.VarChar);
inval.Direction = ParameterDirection.InputOutput;
inval.Value = "13-4186423 ";
Response.Write("return value is "+ inval.Value);
i am getting invalid procedure exception. i am not able to find where the problem is..
if the above code is wrong, you please provide me correct way of fulfilling my requirement.