I am logged in as the administrator when I installed an application named pdflatex.exe on my server. This application works as a converter from LaTeX input file to Pdf file. I host an Asp.net MVC 3 application running under an Application Pool Identity with Load User Profile = True. The Asp.net MVC 3 code contains a code that executes pdflatex.exe using System.Diagnostic.Process instance as follows:
Process p = new Process(); p.EnableRaisingEvents = true; p.Exited += new EventHandler(p_Exited); p.StartInfo.Arguments = "-interaction=nonstopmode " + inputpath; p.StartInfo.WorkingDirectory = @"c:mydomain.comworking"; p.StartInfo.UseShellExecute = false; p.StartInfo.FileName = "pdflatex.exe"; p.Start(); p.WaitForExit();
From the scenario above, the web application runs under a restricted acount but it executes an external application under a default account that I don't know. Can an application running under a less privileged account start a process executing another application under an administrative account?
while send email from asp.net code, When i am sending mail to other than gmail then its work fine , but when i try to send an email to gmail account its not working Send To : info@[URL] is my gmail account email address When i send email to info@[URL] its not working when i use another email Like Send To: awakeel@[URL] its work fine and i recieve the email
This works if I send it to something like my domain, but if I try this to gmail it will give me something like "secure connection required" I've tried a few different ports. I've tried 587 and it gives me the same thing. If I turn enablessl=true ports 587 and 25 will tell me secure email no supported. If I try it on port 465 it will time out.
there's a thing called "Collaboration Data Objects for Windows 2000" using System.Web.Mail, but I don't want to do that because I'm using System.Net.Mail and microsoft also when I try and compile the CDO objects it says it's now unsupported plus it doesn't work anyway. It times out when I try this:
Code: Dim smtpServer As String = "xxxx" Dim userName As String = "xxx" Dim password As String = "xxx" Dim cdoBasic As Integer = 1
Can we use gmail account to send email in asp.net website from *localhost * (local machine) ? I am trying but badly unsuccessful. It works fine on hosting but donot work on my machine.
I have windows server 2003 on my machine, I have added port 587 and 465 in firewall in exceptions. In my gmail account I also have enabled POP and IMAP. Some people to use port 465 and others say port 587 should be used. I tried both and below was my result:
Using port 465 it take time and finally give message that the opration has timed out. falure Using port 587 it dont take time, show message "failuer sending email" with an inner expection "No connection could be made because the target machine actively refused it 188.8.131.52:587"
I want to create a login page in asp .net .... The username and password are same as my gmail account username and password. When I enter the username and password it go to gmail server and check the username and password are available or not available means redirect a new page
sir i have develop page for sending news letter to my memebers ,in this i have uploaded flash banner .with root path of these where these stored in my site but in gmail account i am not able to see these flash banners ; but images are properly visible. one thing more if i send it to my company mail id then it is ok and every thing is visible. is there any security issue regarding to gmail or yahoo and if yes then what kind of code we have to attach with our html
I am using gmail for sending email in my asp.net application. Email works fine if I send email on server but if I try to send emails on local machine it give error. I placed break poin in code and when send method is called it shows error box with heading "Smtp exception was unhandled by user code" and in detail it says "Faliur sending mail". If I continued on browser it shows error page with these details:
An existing connection was forcibly closed by the remote host Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host
Can we send email form local host using gmail smtp? I am trying and getting error The operation has timed out. I am trying to send email from local host from last 3 days. It works fine if I send emails from my hosting server using gmail but it is not working on localhost. I have disabled firewall anti virus but even then unlucky. have u ever used gmail for sending emails from localhost (without any server involved) If it is possible.
I read "Import Contacts from Google Gmail Account in ASP.Net using C# " article [URL] .....
Its very nice, i follow all steps as per article, it working fine. But i face one problem, through this we get only 10 contacts. I need to fetch all contacts present in my email account. What should i do.
The below code working fine but I dont want to pass the username and pwd at NetworkCredential. Is there any way to avoid passing username and password ? Is it mandatory that we should pass from username and password in NetworkCredential ?
SmtpClient _SmtpClient = new SmtpClient("smtp.gmail.com"); MailAddressCollection _MailAddressCollection = new MailAddressCollection(); MailMessage _message = new MailMessage(); _message.From = new MailAddress("firstname.lastname@example.org");
I am trying to send an email from our web server to a gmail account via System.Net.Mail but am failing miserably receiving this error message:
Mailbox name not allowed. The server response was:
that domain isn't in my list of allowed rcpthosts (#5.7.1) Using this code I am able to send emails to other email addresses on our Outlook email server:
So I know I am capable of sending email to Gmail with port 587 and using the proper credentials of my own Gmail account. That is not the problem.
The problem is I want to be able to have the mail sent from my application from whatever the user puts in the FROM (Email address): text box to a Gmail account. When I use the above code, the address that the email is sent from is my own.
So the question is: Is there any way to configure this to be able to send from an Outlook email server to a Gmail account without having to use my Gmail account to actually do it (using my credientials). Therefore showing the email as sent from whatever the user puts in the txtEmail text box, and having it sent from the Outlook server?
I know my SMTP uses the port 25 for outgoing mail and I am pretty sure that the Gmail settings block port 25 for incoming mail, which makes sense, but what doesnt make sense is I can compose a message in Outlook and send it to a gmail account, but I cannot automate this through my programming, which makes me feel certain its my programming.
I have a requirement for building an instant messenger application for the selected user.
I have googled for the solution but without any sucess.My requirement is once a user initiates a chat with another user,the another user needs to get a popup of the chat window,where the two users can start chatting.
I am using asp.net 3.5 with C#.I want to integrate gmail into my site, just like any widget so that, people can login there and can access their gmail account. Actually gmail is blocked in my organisation & I want to access it via proxy that I can integrate in my website.
Often, out of sheer desperation I will end up enabling "Everyone" access on a folder that a web app is accessing (perhaps for file creation, reading, etc) because I can't figure which user account to enable access on.
Obviously, this is a very bad thing to do. Is there a way to determine what account IIS is using at that exact moment to access folders (and perhaps other resources like SQL Server, etc)?
Are there logs I can look at that will tell me? Or perhaps some other way? I usually use Windows Auth without impersonation. Not sure if that information is relevant.
I have seen this error many times in past and what all I used to do was to add aspnet account to the directory and provide it with read and write access. But this time I am trying to run an application in Windows 7(64 bits) - I had to manually enable the IIS from windows feature in Control Panel.
But I dont see any aspnet account in 'security' tab of any of the directories (in its properties). I even ran aspnet_regiis -i in v2.0.50727 and v4.030319 directories. How do I get aspnet user account to show up in any folder?