Click here to Skip to main content
15,894,825 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
QuestionBind Grid to DataSet [modified] Pin
PritiP30-Dec-08 20:25
PritiP30-Dec-08 20:25 
AnswerRe: Bind Grid to DataSet Pin
Aman Bhullar31-Dec-08 6:12
Aman Bhullar31-Dec-08 6:12 
GeneralRe: Bind Grid to DataSet Pin
PritiP1-Jan-09 17:44
PritiP1-Jan-09 17:44 
GeneralRe: Bind Grid to DataSet Pin
Aman Bhullar2-Jan-09 1:18
Aman Bhullar2-Jan-09 1:18 
GeneralRe: Bind Grid to DataSet Pin
PritiP4-Jan-09 23:25
PritiP4-Jan-09 23:25 
QuestionOutlook AddIn - CommandBarComboBox Events Pin
Prasad J30-Dec-08 18:33
Prasad J30-Dec-08 18:33 
QuestionDouble line in Crystal Report Pin
froxy29-Dec-08 23:01
froxy29-Dec-08 23:01 
QuestionRemote connection using WMI getting error "Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)) Pin
S.Rekka29-Dec-08 2:51
S.Rekka29-Dec-08 2:51 
Hi all,
How to connect windows xp sp2 from windows server 2008?They are all on the same network (a workgroup, not domain), with no firewalls in between (excepting Windows Firewall, which I have disabled on windows xp sp2)this is my code.Remote access is success for server 2008 from windows xp sp2.but i can't access windows xp sp2 from windows server 2008.can any one help me? how to solve the problem?

ConnectionOptions connection = new ConnectionOptions();
connection.EnablePrivileges = true;
ManagementScope scope = null;

connection.Authority = "NTLMDomain:" + domain;
connection.Username = "userName";
connection.Password = " password";

//Local Machine

if (compName.ToUpper() == Environment.MachineName.ToUpper())
{
scope = new ManagementScope(@"\root\cimv2", connection);
}
else //Remote Machine
{
scope = new ManagementScope(@"\\" + compName + @"\root\cimv2", connection);
}

scope.Options.EnablePrivileges = true;
scope.Connect();//Getting the error here. Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))

//

ObjectQuery query = new ObjectQuery("SELECT * FROM Win32_OperatingSystem");
ManagementObjectSearcher objsearcher = new ManagementObjectSearcher(scope, query);
ManagementObjectCollection objcol = objsearcher.Get();
AnswerRe: Remote connection using WMI getting error "Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)) Pin
Dave Kreskowiak29-Dec-08 3:46
mveDave Kreskowiak29-Dec-08 3:46 
GeneralRe: Remote connection using WMI getting error "Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)) Pin
S.Rekka29-Dec-08 19:39
S.Rekka29-Dec-08 19:39 
QuestionNeed to compile WITHOUT linking - "CompileOnly" option not working Pin
reshmi_r29-Dec-08 2:50
reshmi_r29-Dec-08 2:50 
QuestionMASH UP APPLICATION Pin
sudhantheone29-Dec-08 1:52
sudhantheone29-Dec-08 1:52 
AnswerRe: MASH UP APPLICATION Pin
Lev Danielyan29-Dec-08 4:36
Lev Danielyan29-Dec-08 4:36 
QuestionNHibernate Cache Problem in C# .Net Desktop Application Problem Pin
jispat28-Dec-08 22:43
jispat28-Dec-08 22:43 
QuestionForums Pin
ranjithselvaraj28-Dec-08 22:12
ranjithselvaraj28-Dec-08 22:12 
AnswerRe: Forums Pin
Brij29-Dec-08 2:10
mentorBrij29-Dec-08 2:10 
GeneralRe: Forums Pin
Jon_Boy30-Dec-08 4:12
Jon_Boy30-Dec-08 4:12 
AnswerRe: Forums Pin
Navneet Hegde30-Dec-08 3:26
Navneet Hegde30-Dec-08 3:26 
Questionasp.net Pin
senthil050528-Dec-08 4:56
senthil050528-Dec-08 4:56 
AnswerRe: asp.net Pin
Mark Salsbery28-Dec-08 5:02
Mark Salsbery28-Dec-08 5:02 
AnswerRe: asp.net Pin
Lev Danielyan28-Dec-08 5:05
Lev Danielyan28-Dec-08 5:05 
AnswerRe: asp.net Pin
Colin Angus Mackay28-Dec-08 8:36
Colin Angus Mackay28-Dec-08 8:36 
Questionstuck with WebRequest Pin
Evgeni5728-Dec-08 3:11
Evgeni5728-Dec-08 3:11 
AnswerRe: stuck with WebRequest Pin
Mark Salsbery28-Dec-08 5:18
Mark Salsbery28-Dec-08 5:18 
GeneralRe: stuck with WebRequest Pin
Evgeni5728-Dec-08 7:10
Evgeni5728-Dec-08 7:10 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.