Click here to Skip to main content
15,568,965 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Visual Studio Update 15.5.0 - MVC View editor comes up with just black text Pin
Richard Deeming8-Dec-17 2:28
mveRichard Deeming8-Dec-17 2:28 
GeneralRe: Visual Studio Update 15.5.0 - MVC View editor comes up with just black text Pin
jkirkerx8-Dec-17 7:20
professionaljkirkerx8-Dec-17 7:20 
AnswerRe: Visual Studio Update 15.5.0 - MVC View editor comes up with just black text Pin
jkirkerx10-Dec-17 11:33
professionaljkirkerx10-Dec-17 11:33 
QuestionConsuming a homemade rest service in asp.net webform Pin
wilcodk7-Dec-17 3:47
wilcodk7-Dec-17 3:47 
AnswerRe: Consuming a homemade rest service in asp.net webform Pin
Richard Deeming7-Dec-17 9:54
mveRichard Deeming7-Dec-17 9:54 
GeneralRe: Consuming a homemade rest service in asp.net webform Pin
wilcodk7-Dec-17 23:20
wilcodk7-Dec-17 23:20 
QuestionPopulating pdf on the server Pin
Michael Clinton6-Dec-17 8:49
Michael Clinton6-Dec-17 8:49 
AnswerRe: Populating pdf on the server Pin
Richard Deeming6-Dec-17 10:43
mveRichard Deeming6-Dec-17 10:43 
QuestionHow to disable gridview by checkbox? Pin
samflex4-Dec-17 8:56
samflex4-Dec-17 8:56 
AnswerRe: How to disable gridview by checkbox? Pin
jkirkerx4-Dec-17 9:02
professionaljkirkerx4-Dec-17 9:02 
GeneralRe: How to disable gridview by checkbox? Pin
samflex4-Dec-17 9:48
samflex4-Dec-17 9:48 
GeneralRe: How to disable gridview by checkbox? Pin
jkirkerx4-Dec-17 11:11
professionaljkirkerx4-Dec-17 11:11 
GeneralRe: How to disable gridview by checkbox? Pin
samflex4-Dec-17 11:32
samflex4-Dec-17 11:32 
QuestionHow can I use CimCredential in Web Page to get Printer Status ? Pin
David Mujica28-Nov-17 8:31
David Mujica28-Nov-17 8:31 
I have successfully implemented code which uses ManagementObjectSearcher to query and return the status of printers on one of our servers.

Now what I would like to do is use this code from an ASP.net web page so that my user community can view the status of those same printers. The problem is that the account that the webserver executes as does not have the appropriate permissions to retrieve the data.

My research seems to point to a method to get the data where I would pass credentials while executing the query.

The building blocks are:

1) Dim Credentials As New CimCredential(PasswordAuthenticationMechanism.Default, domain, username, securepassword)

2) Session = CimSession.Create(computer, SessionOptions)

3) session.QueryInstances("@root\cimv2", "WQL", "SELECT * FROM Win32_Printer")


However, I can't seem to find the proper reference to the Microsoft.Management.Infrastructure.dll

My development environment is VS2015 / Win10 and I plan to deploy the web application to a 7.5 IIS server.

Can someone help me find the correct dll location ?
Am I approaching this problem correctly ?

Thanks.
AnswerRe: How can I use CimCredential in Web Page to get Printer Status ? Pin
Richard Deeming28-Nov-17 9:36
mveRichard Deeming28-Nov-17 9:36 
GeneralRe: How can I use CimCredential in Web Page to get Printer Status ? Pin
David Mujica28-Nov-17 9:39
David Mujica28-Nov-17 9:39 
GeneralRe: How can I use CimCredential in Web Page to get Printer Status ? Pin
Richard Deeming28-Nov-17 9:48
mveRichard Deeming28-Nov-17 9:48 
QuestionIIS Rewrite rule: Attach country code with all hyperlinks in page Pin
Mou_kol23-Nov-17 1:53
Mou_kol23-Nov-17 1:53 
Rant[REPOST] IIS Rewrite rule: Attach country code with all hyperlinks in page Pin
Richard Deeming23-Nov-17 2:01
mveRichard Deeming23-Nov-17 2:01 
QuestionLooking for MCSD Web Applications sample test Q/A Pin
Mou_kol22-Nov-17 23:12
Mou_kol22-Nov-17 23:12 
AnswerRe: Looking for MCSD Web Applications sample test Q/A Pin
Richard MacCutchan22-Nov-17 23:55
mveRichard MacCutchan22-Nov-17 23:55 
AnswerRe: Looking for MCSD Web Applications sample test Q/A Pin
F-ES Sitecore23-Nov-17 2:18
professionalF-ES Sitecore23-Nov-17 2:18 
QuestionProblem with wrap text in a column in gridview and reportviewer Pin
Member 1351227419-Nov-17 15:33
Member 1351227419-Nov-17 15:33 
AnswerRe: Problem with wrap text in a column in gridview and reportviewer Pin
Richard MacCutchan19-Nov-17 22:54
mveRichard MacCutchan19-Nov-17 22:54 
QuestionDataTable in .Net Core looks plain Pin
sn_lorun19-Nov-17 15:21
sn_lorun19-Nov-17 15:21 

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.