Click here to Skip to main content
15,885,216 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionPopulating pdf on the server Pin
Michael Clinton6-Dec-17 7:49
Michael Clinton6-Dec-17 7:49 
AnswerRe: Populating pdf on the server Pin
Richard Deeming6-Dec-17 9:43
mveRichard Deeming6-Dec-17 9:43 
QuestionHow to disable gridview by checkbox? Pin
samflex4-Dec-17 7:56
samflex4-Dec-17 7:56 
AnswerRe: How to disable gridview by checkbox? Pin
jkirkerx4-Dec-17 8:02
professionaljkirkerx4-Dec-17 8:02 
GeneralRe: How to disable gridview by checkbox? Pin
samflex4-Dec-17 8:48
samflex4-Dec-17 8:48 
GeneralRe: How to disable gridview by checkbox? Pin
jkirkerx4-Dec-17 10:11
professionaljkirkerx4-Dec-17 10:11 
GeneralRe: How to disable gridview by checkbox? Pin
samflex4-Dec-17 10:32
samflex4-Dec-17 10:32 
QuestionHow can I use CimCredential in Web Page to get Printer Status ? Pin
David Mujica28-Nov-17 7:31
David Mujica28-Nov-17 7: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 8:36
mveRichard Deeming28-Nov-17 8:36 
GeneralRe: How can I use CimCredential in Web Page to get Printer Status ? Pin
David Mujica28-Nov-17 8:39
David Mujica28-Nov-17 8:39 
GeneralRe: How can I use CimCredential in Web Page to get Printer Status ? Pin
Richard Deeming28-Nov-17 8:48
mveRichard Deeming28-Nov-17 8:48 
QuestionIIS Rewrite rule: Attach country code with all hyperlinks in page Pin
Mou_kol23-Nov-17 0:53
Mou_kol23-Nov-17 0:53 
Rant[REPOST] IIS Rewrite rule: Attach country code with all hyperlinks in page Pin
Richard Deeming23-Nov-17 1:01
mveRichard Deeming23-Nov-17 1:01 
QuestionLooking for MCSD Web Applications sample test Q/A Pin
Mou_kol22-Nov-17 22:12
Mou_kol22-Nov-17 22:12 
AnswerRe: Looking for MCSD Web Applications sample test Q/A Pin
Richard MacCutchan22-Nov-17 22:55
mveRichard MacCutchan22-Nov-17 22:55 
AnswerRe: Looking for MCSD Web Applications sample test Q/A Pin
F-ES Sitecore23-Nov-17 1:18
professionalF-ES Sitecore23-Nov-17 1:18 
QuestionProblem with wrap text in a column in gridview and reportviewer Pin
Member 1351227419-Nov-17 14:33
Member 1351227419-Nov-17 14:33 
AnswerRe: Problem with wrap text in a column in gridview and reportviewer Pin
Richard MacCutchan19-Nov-17 21:54
mveRichard MacCutchan19-Nov-17 21:54 
QuestionDataTable in .Net Core looks plain Pin
sn_lorun19-Nov-17 14:21
sn_lorun19-Nov-17 14:21 
AnswerRe: DataTable in .Net Core looks plain Pin
Richard Deeming20-Nov-17 2:14
mveRichard Deeming20-Nov-17 2:14 
GeneralRe: DataTable in .Net Core looks plain Pin
sn_lorun20-Nov-17 16:03
sn_lorun20-Nov-17 16:03 
QuestionHow to add country code or culture in url Pin
Mou_kol17-Nov-17 9:31
Mou_kol17-Nov-17 9:31 
QuestionLightbox questions based on a decision tree showed and updated in background Pin
Member 800771316-Nov-17 3:07
Member 800771316-Nov-17 3:07 
AnswerRe: Lightbox questions based on a decision tree showed and updated in background Pin
Richard MacCutchan16-Nov-17 3:17
mveRichard MacCutchan16-Nov-17 3:17 
GeneralRe: Lightbox questions based on a decision tree showed and updated in background Pin
Member 800771316-Nov-17 3:55
Member 800771316-Nov-17 3:55 

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.