How to manage a connection with powershell using visual studio with C#
Hi
I want to manage a connection with powershell for a web app using visual studio with c#. and also run command with pipeline
Plz give a some suggestions..
Hi Raj_Kumar_Saini,
To make things clear, could you please clarify these thing?
1. Do you mean you want to execute some PowerShell scripts from C# language? These blogposts may give you some ideas:
Executing PowerShell scripts from C#
Powershell Automation and Remoting (a c# love story)
Execute PowerShell from a ASP.NET Web Application
2. Is your question related to Visual Studio Integration? Do you want to build a Visual Studio Extension?
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.
Similar Messages
-
How to create demand management workflow using visual studio
Hello all,
I need to create demand management workflow (Project server 2013) using visual studio 2012. I need to understand how we can write code in it. Any references??Hi Shanila,
Here are some of the articles you can use for designing workflows using Visual Studio.
Getting started Project Server 2013 Workflows :
http://msdn.microsoft.com/en-us/library/office/ee767694(v=office.15).aspx
Using workflow for Demand Management:
http://technet.microsoft.com/en-us/library/dn458861(v=office.15).aspx
Creating Project Workflows using Visual studio 2012:
http://blogs.msdn.com/b/project_programmability/archive/2012/11/07/creating-project-workflows-using-visual-studio-2012.aspx
Thanks,
Phani -
Using Visual Studio as an HTML editor with SharePoint's Design Manager
I'm building a master page using Design Manager. I've mapped a network drive so that I can access the MasterPage.html file with an HTML editor.
I'd like to use Visual Studio 2012 as my HTML editor. But, when I modify MasterPage.html in VS, it creates a MasterPage.html~RF9158aed.TMP file alongside the MasterPage.html and MasterPage.master files, which breaks the master page in SharePoint.
I can modify MasterPage.html successfully with NotePad. I can also modify an html file, that is not associated with a folder in SharePoint via a networked drive, with VS.
Can I use Visual Studio as an HTML editor in this scenario? If so, what am I doing wrong?
Your help would be much appreciated.
Thanking you in anticipation.
Roger
rogerwithnellThe TMP file is used by VS to save off changes in the file your working on, so you can perform Undos for instance. If you shut down VS it should clean those up for you. However, this can be a challenge if you're still working on the file.
I would just make a copy of the MasterPage and place it in a folder outside the mapped folder. Then you can simply copy and paste it back into the mapped folder.
FYI, don't do this with any OOTB MasterPages! Please make a copy and rename one that comes with SP, you don't want to change those in case you need to revert back.
Good luck!
Brandon Atkinson
Blog: http://sharepointbrandon.com -
How open a report with Viewer 2008 without using Visual Studio and Java
Hi,
There is a way to open a report (with parameters) save in a web server with Crystal Report Viewer 2008 without using Visual Studio or Java ?
I've an asp page and i want to open this report using some command (I know asp, vbscript and html)
In the past it was very easy because we use CR 9, but now it's already many days im looking for a solution but seem impossible.
I know the craxdrt.dll is not included with Crystal Reports 2008.
It seem me i can use OpenDocument, but i'm not sure. Someone has some easy example to help me ?
Remember i have only Crystal report viewer 2008 on the server and on the clients.
Thanks in advanceIf you are looking to create a web application or view report through a web server using only Crystal Reports then you do have to either use Java, or .NET.
If you have Crystal Reports server or Business Objects Enterprise you can use OpenDocument to view managed reports but this does require one of our server products.
Trevor. -
How can I have a single cursor using elements 9 with Windows 7?
Currently the cursor on my screen is 3 small boxes in place of the single arrow. I am using Photoshop Elements 9 With Windows 7. I have loaded the patch files currently in the Adobe system without any success.
Thank-you that solved the issue.
In a message dated 4/20/2014 8:57:10 P.M. Eastern Daylight Time,
[email protected] writes:
Re: How can I have a single cursor using elements 9 with Windows 7?
created by Barbara B. (http://forums.adobe.com/people/Barbara+B.) in
Photoshop Elements - View the full discussion
(http://forums.adobe.com/message/6315096#6315096) -
Hi All,
We are trying to execute coded UI scripts without Visual Studio installed. We are using “Visual Studio Test Agent 2010” for executing coded UI scripts without VS2010 in Windows 7, it is working fine. Also we verified executing the same script with VS2010
Premium, it works fine as well.
Here the challenge we are facing is with the Test execution time.
When we run the coded UI script with IE11-Windows 7 OS-Visual Studio 2010 Premium it takes
3min 36sec to complete the execution whereas with IE11-Windows 7 OS-Visual Studio Test Agent 2010 it takes
6min 40sec for the same script to execute (which is almost double the time it takes while executing using VS2010).
My question is what may be the reason for this difference? and how we can reduce the test execution time when running from Test Agent 2010?
Kindly let us know what is the best practice to execute the coded UI scripts with least test execution time in Windows 7 Operating system using Visual Studio Test Agent 2010 without VS2010
installed.
Looking forward for your positive response.
Thanks in advance..!!Tina-Shi, Thanks for the information.
As you mentioned, we tried to execute the coded UI test using Mstest.exe in command on VS2010 Premium and checked on the execution
time, there was a slight difference.
Please find below execution time.
Using Mstest.exe in command on VS2010 Premium/Win7 – 3.47 minutes
Using VS2010 Premium/Win7 – 3.53 minutes
Using Test Agent/Win7 – 7.3 minutes
Also, I closed all the other processes in Task manager before starting up the execution.
Still , I am facing the same Issue. Could you please suggest any other way to reduce the scripting time of coded UI script execution
through Test agent 2010.
Looking forward for your earliest response. -
How to get string value from database table using Visual Studio 2005?
Hi,
Im developing plugin in illustrator cs3 using visual studio 2005. I need to get the values eneterd in database. Im able to get the integer values. But while getting string values it is returning empty value.
Im using the below code to get the values from database table
bool Table::Get(char* FieldName,int& FieldValue)
try
_variant_t vtValue;
vtValue = m_Rec->Fields->GetItem(FieldName)->GetValue();
FieldValue=vtValue.intVal;
CATCHERRGET
sprintf(m_ErrStr,"Success");
return 1;
Im using the below code to get the values.
AIErr getProjects()
char buf[5000];
int i;
std::string catName;
::CoInitialize(NULL);
Database db;
Table tbl;
errno_t err;
err = fopen(&file,"c:\\DBResult.txt","w");
fprintf(file, "Before Connection Established\n");
//MessageBox(NULL,CnnStr,"Connection String",0);
if(!db.Open(g->username,g->password,CnnStr))
db.GetErrorErrStr(ErrStr);
fprintf(file,"Error: %s\n",ErrStr);
fprintf(file, "After Connection Established\n");
if(!db.Execute("select ProjectID,ProjectName from projectsample",tbl))
db.GetErrorErrStr(ErrStr);
fprintf(file,"Error: %s\n",ErrStr);
int ProjectID;
int UserID;
int ProjectTitle;
char ProjectName[ProjectNameSize];
if(!tbl.ISEOF())
tbl.MoveFirst();
ProjectArrCnt=0;
for(i=0;i<128;i++)
buf[i]='\0';
int j=0;
while(!tbl.ISEOF())
if(tbl.Get("ProjectID",ProjectID))
fprintf(file,"Project ID: %d ",ProjectID);
ProjectInfo[ProjectArrCnt].ProjectID = ProjectID;
sprintf(buf,"%d",ProjectID);
//MessageBox(NULL, buf,"f ID", 0);
j++;
else
tbl.GetErrorErrStr(ErrStr);
fprintf(file,"Error: %s\n",ErrStr);
break;
//if(tbl.Get("ProjectTitle",ProjectName))
if(tbl.Get("ProjectName",ProjectName))
MessageBox(NULL,"Inside","",0);
fprintf(file,"ProjectTitle: %s\n",ProjectName);
//catName=CategoryName;
ProjectInfo[ProjectArrCnt].ProjectName=ProjectName;
//sprintf(buf,"%s",ProjectName);
MessageBox(NULL,(LPCSTR)ProjectName,"",0);
else
tbl.GetErrorErrStr(ErrStr);
fprintf(file,"Error: %s\n",ErrStr);
break;
ProjectArrCnt++;
//MessageBox(NULL, "While", "WIN API Test",0);
tbl.MoveNext();
//MessageBox(NULL, ProjectInfo[i].ProjectName.c_str(),"f Name", 0);
::CoUninitialize();
//sprintf(buf,"%s",file);
//MessageBox(NULL,buf,"File",0);
fprintf(file, "Connection closed\n");
fclose(file);
for(i=0;i<ProjectArrCnt;i++)
sprintf(buf,"%i",ProjectInfo[i].ProjectID);
//MessageBox(NULL,buf,"Proj ID",0);
//MessageBox(NULL,ProjectInfo[i].ProjectName.c_str(),"Project Name",0);
return 0;
In the above code im geeting project D which is an integer value. But not able to get the project name.
Please some one guide me.As I said in the other thread, this really isn't the place to ask questions about a database API unrelated to the Illustrator SDK. You're far more like to find people familliar with your problem on a forum that is dedicated to answering those kinds of questions instead.
-
Release management with Azure and Visual Studio Online (Cloud TFS)
What strategy would you use to manage the releasing of versioned software to Azure cloud services (web and worker roles)? We are not looking for continuous integration. We are using Visual Studio 2013 and Visual Studio Online (Cloud TFS).
At one point, we were releasing straight from Visual Studio using the Azure Cloud Project Publish tool. This is really bad practice in my opinion as you can never be sure what you are really releasing. Additionally, there is no automated control on the labeling
or branching of code, or the running of unit tests and code analysis checks.
Next, we employed Release builds on Visual Studio Online. Before deployment, one would edit the appropriate Build Definition (whether it be for Test or Production by and filling in the code label (under the "Get Version" build property) that is to
be released. This would then get the appropriate code (by the label specified), build it, and release it to whatever cloud service is specified in the targeted Cloud Project profile (this is using the AzureContinuousDeployment.11.xaml template).
There is still a degree of manual intervention involved. Also, the fact that a version of code is built every time before it is released is not ideal (as far as I understand it would be better if it was packaged once).
Microsoft Release Management tools
look ideal for the job, but are not supported with Visual Studio Online.
Is there a better way of handling our releases?/waves hand.. These are not the tools you seek. You are looking for continuous integration.
Although CI has the word continuous in there, it does not mean "all the time, every checkin". It can easily refer only to those bits you want to release - -and the way to tell the system which bits you want released is to merge them to a Releases
branch.
If you do this, not only do you get all the joy of controlled CI, but you guarantee what you release is exactly what is controlled in your SCM - under the Releases branch, preferably tagged or otherwise noted as a particular release. That means you can also
rollback to a previous release by simply reverting to a previous release in your SCM!
Of course you don't have to let it happen automatically, you can set it up to build 'continually' and then remove the check on the SCM to see if any changes have been committed. You can replace this with the manual build button. -
How I can use Visual Studio 2013 to create lists or libraries via remote?
Hello guys,
I use visual studio on my machine and try to create a list, but the sharepoint server is on another machine. It is possible to run a program on my computer and then create a list on the sharepoint server. If yes, how can I achieve this?
Best regards
MatthiasYou can create and manage lists and libraries using SharePoint Designer. To use Visual Studio you would have to create a SharePoint project, create a feature, define the list, etc. then create a Solution package and deploy that to the server. If you just
want to manually add a list then use Designer.
Mike Smith TechTrainingNotes.blogspot.com
Books:
SharePoint 2007 2010 Customization for the Site Owner,
SharePoint 2010 Security for the Site Owner -
How create Windows Services in Azure using Visual Studio 2012
Hi,
I have a need to write a Windows Service (Batch Job), which would execute everyday at a specified time, say 4:00AM. This job will do some processing and will send out an email to predefined users. I am using Visual Studio 2012 for the development.
Based on some research, it looks like that Azure doesn't have a concept of Windows Service. Rather, we need to create WorkerRole to achieve the same.
I wrote the code to implement the WorkerRole. The problem, I am facing is that
1. How to prevent the continuous looping of the code below? I want the task to be executed only once a day at 4:00AM
2. How do I schedule this functionality in Azure?
Any help will be highly appreciated. I have provided the code sample below.
Thanks.
public class WorkerRole : RoleEntryPoint
public override void Run()
while (true)
SendNewsEmail();
Thread.Sleep(10000);
private void SendNewsEmail()
/*Email Logic Goes Here*/
public override bool OnStart()
// Set the maximum number of concurrent connections
ServicePointManager.DefaultConnectionLimit = 12;
return base.OnStart();HI
I think JuneT's answer is what you want.
However it's for Azure website.
If you still want to use a workerRole, you need much harder work.
You can use Timers Class to do such things:
http://stick2basic.wordpress.com/2013/02/22/how-to-schedule-a-c-windows-service-to-run-a-method-daily/
How do I schedule this functionality in Azure
I suggest you save the settings file in a cloud table, and notify your webrole using WCF service to let the service get the new settings when your changed it.
My Blog
Please use Make as Answer if my post solved your problem and use
Vote As Helpful if a post was useful. -
How to use Visual Studio IDE in IAR compiler?
Hi
I want to use visual studio IDE in IAR like external editor. but I do not know how do that?Hi,
Thank you for posting in MSDN forum.
As you said the IAR, it seems that it is a third-party tool and we are not support it. So I suggest you can post this issue directly to the IAR official website:
https://www.iar.com/Support/technical-support/ , maybe you will get better support.
Thanks for your understanding.
Best Regards,
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
I have VMware Fusion installed on my computer along with windows 7. I’m able to use Visual Studios 2012 & 2013; however, when I try to install SQL Server is says I don’t have a valid installation folder. So I guess my question is, can you install SQL Server to a MAC?
Thanks!Make sure you have the right version...
Camera Raw plug-in | Supported cameras
Camera Raw-compatible Adobe applications -
Can't pair my Ipad2 with Iphone6 using personal hotspot with IOS 8.0.2. Is this no longer possible?
Hi MEH19,
I have an article for you that will help you address this issue that you seem to be experiencing with your personal hotspots:
iOS: Troubleshooting Personal Hotspot
http://support.apple.com/kb/ts2756
Thanks for being a part of the Apple Support Communities!
Cheers,
Braden -
Using Deploy Studio with 10.7.4
Hi,
I have been trying to use deploy studio with 10.7.4 on Macbook Pro and it never seems to be working. It can see the network and get to the spinning earth but nothing past there. Is any one else having trouble with this? Is there some checked box or something that you think might be holding up the process? Any thoughts are appreciated.Hi hello
I have The same problems, hâve you found à solution ?
Thanks -
How to put if condition by using visual studio 2012 for project server 2013 worflow
Hi,
If Project Data:Funding Required equals Yes
Go to s2- Lead Approval
Else
Go to End of Workflow
above condition is used it in sharepoint designer. I want same condition used in visual studio 2012.
Please help me how to get fields of project server in visual studio 2012.
Thanks in Advance in helping us.
Thank you
VinayHi Vinay,
I can't help you for the code, but the IF THEN ELSE statement is pretty well documented in the article below:
http://msdn.microsoft.com/en-us/library/752y8abs.aspx
Hope this helps,
Guillaume Rouyre, MBA, MCP, MCTS |
Maybe you are looking for
-
GetDefaultJavaVMInitArgs(void *) structures? which one do I use?
Environment: Windows XP sp1 J2SDK 1.4.1_01 P4 - 512meg ram Microsoft Visual C++ 6.0 sp5 Question: I'm writing a program that creates a Java Virtual Machine and launches a static method from a class. It works good so far. Going through the limited doc
-
As the title states, I used the app "Duplicate Cleaner for iPhoto" to get rid of 6 GB of duplicate pictures. However, now when I go to view a video in iPhoto, I get the error message "A necessary data reference could not be resolved." I am able to
-
Link Smart-Object Filter mask to transformation of Smart object
Often it would be very nice, if you could link the filtermask of a smart object to the smart object itself. So that when you transform the SM (rotate, scale etc) the filtermask of the smartfilter is transformed, too.
-
Can´t reinstall or uninstall NAM (Firewall)
I had a problem with nvidia´s nic, it dissapeared but i had recovered it. Now i can´t open the web page of the firewall, it send me to a nonaccesspermlocal page. I can´t uninstall it and I can´t repair or reinstall over it other version, newer, same
-
Wifi works on Windows laptop but not macbook - help please!!
Hi! I'm a new customer to Verizon having just moved to the US from the UK. We have the DSL service with the 7500 Westell router. I've set up the wireless and it works fine on my husband's laptop (IBM thinkpad with Windows XP) but my MacBook just will