Click here to Skip to main content
16,004,919 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: iframe height problem Pin
venu65630-Mar-09 21:43
venu65630-Mar-09 21:43 
GeneralRe: iframe height problem Pin
Rajeesh MP31-Mar-09 0:44
Rajeesh MP31-Mar-09 0:44 
QuestionHow do i call esc key dynamicaly(VB.NET Win forms) Pin
Rajeesh MP30-Mar-09 19:34
Rajeesh MP30-Mar-09 19:34 
AnswerRe: How do i call esc key dynamicaly(VB.NET Win forms) Pin
sunram_ram30-Mar-09 19:48
sunram_ram30-Mar-09 19:48 
GeneralRe: How do i call esc key dynamicaly(VB.NET Win forms) Pin
Rajeesh MP30-Mar-09 20:50
Rajeesh MP30-Mar-09 20:50 
AnswerRe: How do i call esc key dynamicaly(VB.NET Win forms) Pin
Christian Graus30-Mar-09 19:57
protectorChristian Graus30-Mar-09 19:57 
AnswerRe: How do i call esc key dynamicaly(VB.NET Win forms) Pin
Abhijit Jana30-Mar-09 20:03
professionalAbhijit Jana30-Mar-09 20:03 
Questionpowershell command automation Pin
deepak__sharma30-Mar-09 18:22
deepak__sharma30-Mar-09 18:22 
I m trying to run the following code on Exchange Server 2007 on a 64 bit server through asp.net 3.5 :-

private bool fncCreateForwarding(string ruleName, string recipientEmaillID, string forwardingEmailID)
{
/*
* New-JournalRule -Name "Discovery Journal Recipients" -Recipient
* discovery@contoso.com -JournalEmailAddress "Journal Mailbox"
* -Scope Global -Enabled $True
*/
bool _created = false;
try
{
string _command = string.Empty;
_command = "New-JournalRule";
string _result = string.Empty;
Runspace myRunspace = RunspaceFactory.CreateRunspace();
myRunspace.Open();
RunspaceConfiguration rsConfig = RunspaceConfiguration.Create();
PSSnapInException snapInException = null;
PSSnapInInfo info = rsConfig.AddPSSnapIn("Microsoft.Exchange.Management.PowerShell.Admin", out snapInException);
Runspace myRunSpace = RunspaceFactory.CreateRunspace(rsConfig);
myRunSpace.Open();
Pipeline pipeLineEnable = myRunSpace.CreatePipeline();
Command myCommand = new Command(_command);
myCommand.Parameters.Add("Name", ruleName);
myCommand.Parameters.Add("Recipient", recipientEmaillID);
myCommand.Parameters.Add("JournalEmailAddress", forwardingEmailID);
myCommand.Parameters.Add("Scope", "Global");
myCommand.Parameters.Add("Enabled", true);
pipeLineEnable.Commands.Add(myCommand);
Collection commandResults = pipeLineEnable.Invoke();
_created = true;
}
catch (Exception ex)
{
Logger.LogError(ex);
}
return _created;
}

I have set the Active Solution Platform as Any CPU from the configuration manager.

The problem is that nothing happens. The code executes without throwing any exception. But the Journaling Rule does not get created. Although when I run the command via Exchange Management Shell the command executes and creates Journaling rule.

I would also like to tell that the same code is running perfectly on the other exchange server, but not on the Production server.

What can be the problem?

Warm regards
Deepak Sharma
AnswerRe: powershell command automation Pin
deepak__sharma31-Mar-09 20:06
deepak__sharma31-Mar-09 20:06 
Questionerror in coding .... plz solve it Pin
nagu4u30-Mar-09 17:14
nagu4u30-Mar-09 17:14 
AnswerRe: error in coding .... plz solve it Pin
N a v a n e e t h30-Mar-09 17:21
N a v a n e e t h30-Mar-09 17:21 
GeneralRe: error in coding .... plz solve it Pin
nagu4u30-Mar-09 18:25
nagu4u30-Mar-09 18:25 
GeneralRe: error in coding .... plz solve it Pin
Christian Graus30-Mar-09 18:45
protectorChristian Graus30-Mar-09 18:45 
GeneralRe: error in coding .... plz solve it Pin
Eytukan30-Mar-09 19:01
Eytukan30-Mar-09 19:01 
AnswerRe: error in coding .... plz solve it Pin
Christian Graus30-Mar-09 18:25
protectorChristian Graus30-Mar-09 18:25 
QuestionSQL CE | SSCE | 3.5 SP1 | Unable to find the requested .Net Framework Data Provider. It may not be installed. Pin
Glen Harvy30-Mar-09 16:03
Glen Harvy30-Mar-09 16:03 
Question2 questions on an asp.net application with multiple subdomains? Pin
Goalie3530-Mar-09 13:29
Goalie3530-Mar-09 13:29 
AnswerRe: 2 questions on an asp.net application with multiple subdomains? Pin
Colin Angus Mackay30-Mar-09 13:35
Colin Angus Mackay30-Mar-09 13:35 
QuestionHiding <div> OnSelectedIndexChanged Pin
asipo30-Mar-09 12:27
asipo30-Mar-09 12:27 
AnswerRe: Hiding <div> OnSelectedIndexChanged Pin
Goalie3530-Mar-09 13:52
Goalie3530-Mar-09 13:52 
GeneralRe: Hiding <div> OnSelectedIndexChanged Pin
asipo30-Mar-09 14:54
asipo30-Mar-09 14:54 
GeneralRe: Hiding <div> OnSelectedIndexChanged Pin
Mogaambo30-Mar-09 19:13
Mogaambo30-Mar-09 19:13 
AnswerRe: Hiding <div> OnSelectedIndexChanged Pin
i gr830-Mar-09 21:26
i gr830-Mar-09 21:26 
QuestionManejo de frame en ASP.net Pin
viviana charcas cortez30-Mar-09 11:41
viviana charcas cortez30-Mar-09 11:41 
AnswerRe: Manejo de frame en ASP.net Pin
Yusuf30-Mar-09 11:58
Yusuf30-Mar-09 11:58 

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.