|
Can you tell us which line is associated with the error?
|
|
|
|
|
program run
when form opens i see this error
|
|
|
|
|
Put a breakpoint on the line "ReportDocument reportDocument = new ReportDocument();", and run the program with the debugger (F5).
After it stops on this line, hit F10 to execute one line at a time. (The highlighted line is the line that will be executed when you hit F10.)
Tell us which line produces the error.
|
|
|
|
|
i have error in this line:
paramField.Name = "@NoPersoneli";
thanks a lot
|
|
|
|
|
Does the ParameterField class have a Name member? If it doesn't, that may account for the error message.
|
|
|
|
|
Hi,
I am trying to figure out how to use the TreeView control to list the hard drive directories (My Computer, C:, D:, etc...). I cannot seem to find a way to do this can somebody please help? I'd appreciate it if somebody could give me some sample code, tutorials, etc... Lots of thanks in advance!
Regards,
Jason.
|
|
|
|
|
Have a look at this[^] article.
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia)
|
|
|
|
|
Hi,
I am using NHibernate to persist my objects. To delete an object from DB I have written the below code :
public void Delete<T>(T item)
{
try
{
using (ISession session = factory.OpenSession())
{
using (session.BeginTransaction())
{
session.Delete(item);
<b>session.Transaction.Commit();</b> //Code is breaking here.
}
}
}
catch (Exception e)
{
System.Windows.Forms.MessageBox.Show(e.Message);
System.Windows.Forms.MessageBox.Show(e.StackTrace);
}
}
The code is breaking at line session.transaction.commit(); with following error message
"Unexpected row count: 0; expected: 1"
Please let me know how to fix this.
Thanks in Advance
Regards
Puneet
|
|
|
|
|
I cant recall what I did to fix this, but this the reason I do not use NHibernate.
xacc.ide - now with TabsToSpaces support IronScheme - 1.0 alpha 4a out now (29 May 2008) ((lambda (x) `((lambda (x) ,x) ',x)) '`((lambda (x) ,x) ',x))
|
|
|
|
|
With a user name like that i bet you get a sh*t load of spam
Harvey Saayman - South Africa
Junior Developer
.Net, C#, SQL
you.suck = (you.Passion != Programming & you.Occupation == jobTitles.Programmer)
1000100 1101111 1100101 1110011 100000 1110100 1101000 1101001 1110011 100000 1101101 1100101 1100001 1101110 100000 1101001 1101101 100000 1100001 100000 1100111 1100101 1100101 1101011 111111
|
|
|
|
|
Are you sure the record exists?
|
|
|
|
|
Ya Record is there. Could you please let me know where I am going wrong.
Thanks for your efforts.
|
|
|
|
|
Good morning,
Does anybody know how to add/remove/list sites in IE's restricted site list via a c# app?
or any links that may be useful to me finding out how to do it?
I can see the changes it makes in the registry but i would rather not be changing it directly
Thanks
Mark
|
|
|
|
|
|
Hi,
Using c#, howe do read the folders inside the following path in the registry on a remote machine?
HKEY_CURRENT_USER\Printers\Connections
|
|
|
|
|
|
environmentKey returns null.
Any thoughts ?
This is what I have:
using System.IO;
using System;
using Microsoft.Win32;
using System.Security.Permissions;
string strRemotePC = "myMachineName";
RegistryKey environmentKey = RegistryKey.OpenRemoteBaseKey(
RegistryHive.CurrentUser, strRemotePC).OpenSubKey(
@"HKEY_CURRENT_USER\Printers\Connections");
|
|
|
|
|
Is the remote key actually opened? Make sure that "HKEY_CURRENT_USER\Printers\Connections" exists on the remote machine
|
|
|
|
|
Have you set
[assembly: RegistryPermissionAttribute(SecurityAction.RequestMinimum,
Read = @"HKEY_CURRENT_USER\Printers\Connections")]
[assembly: SecurityPermissionAttribute(SecurityAction.RequestMinimum,
UnmanagedCode = true)]
|
|
|
|
|
Hello,
I would like to loop through the connections keys which I can not at present (It is only looping through Printers). Any thoughts please?
Thanks
string strRemotePC = "myMachineName";
RegistryKey CURRENT_USER_Key_Printers = RegistryKey.OpenRemoteBaseKey(
RegistryHive.CurrentUser, strRemotePC).OpenSubKey(
@"Printers");
//HKEY_CURRENT_USER\Printers\Connections
foreach (string subKeyName in CURRENT_USER_Key_Printers.GetSubKeyNames())
{
if (subKeyName.ToLower().Trim() == "connections")
{
using (RegistryKey tempKey = CURRENT_USER_Key_Printers.OpenSubKey(subKeyName))
{
Console.WriteLine("\nThere are {0} values for {1}.",
tempKey.ValueCount.ToString(), tempKey.Name);
foreach (string valueName in tempKey.GetValueNames())
{
Console.WriteLine("{0,-8}: {1}", valueName,
tempKey.GetValue(valueName).ToString());
}
}
}
}
|
|
|
|
|
You haven't answered my question. Have you set the security permissions?
|
|
|
|
|
Pete O'Hanlon wrote: You haven't answered my question.
But he has asked the same question many time
|
|
|
|
|
It's as though he wilfully wants to disregard help. I suspect he just wants us to give him the full code, and I'm sick and tired of seeing a variation of the same post from him.
|
|
|
|
|
So am I
|
|
|
|
|