w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
installing a console application as a windows service in windows server 2003
Now I want to install this console app using the installutil.exe as a service. You need to convert it to a Windows Service application instead of a console application. See the Walkthrough: Creating a Windows Service on MSDN for details. The other option would be to use Windows Task Scheduler to schedule the system to run your Console Application. This can behave very similarly to a service without actually creating a service, as you can schedule the application to run on any schedule you choose.

Categories : C#

Deploying MVC 3 website on Windows Server 2003 with Windows Authentication
What is the version of IIS you are using ? Could you try to force NTLM authentication and see whether it will change anything ? Followin technet article will tell you how to change to NTML http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/7258232a-5e16-4a83-b76e-11e07c3f2615.mspx?mfr=true. Please backup the server/iis configs before attempting any modifications to the metabase

Categories : Asp Net Mvc

sqlsrv error while connecting to mssql server 2008 on windows 2003 server
Two ways to try, first to check if the Native driver has the right version - is your server really a 32bit Version and not 84bit? The other thing is, to check if the extensions are actually loaded. To check that, create a file like "phpinfo.php" and put it in you folder for .htdocs. <?php // show phpinfo file phpinfo(); ?> The easy way is to search for it in the phpinfo-Page with Ctrl+F and "extension=php_sqlsrv_53_ts_vc9.dll"

Categories : PHP

Unable to make remote connection to Ms Sql Server 2008 R2 in windows 2003 server
MSSQL 2008 has a utility called a "Surface Area Configuration Manager" that actually blocks the TCP port to external network interfaces, by default. Check that out, and I'm betting it will solve your problem.

Categories : Sql Server

ASP Classic function appears to not work after migration from Windows Server 2003 to Server 2008
Have you run the query on the new server as straight SQL and got the correct results back? Have you performed a simple query using that connection string? Can you do a hello world asp classic example on the server?

Categories : Oracle

Nodejs on Windows Server 2003
Your firewall settings blocks incoming requests on port 1337 if its not configured. You may have do chances in firewall settings, you need to add firewall inbound rule on this port to allow access to it. Otherwise you may try changing the port to 8080 or 8000 which firewall mostly allows. (updated as per the suggestions form adam-stanley) If you want to look how to add port to firewall on Windows, here is the link

Categories : Windows

WPF:DataGridTemplateColumn on Windows server 2003/2008
Finally tested RelativeSource instead of ElementName. And after a day of time wasting worked fine on Win Server!! Solution !!: <DataGridTemplateColumn CellStyle="{x:Null}" Width="85" Header="{Extentions:DisplayName Type=Type:StandardClass, PropertyName=ProductKind}"> <DataGridTemplateColumn.CellEditingTemplate> <DataTemplate> <ComboBox ItemsSource="{Binding Path=DataContext.ProductKindCollection,RelativeSource={RelativeSource AncestorType=DataGrid}}" DisplayMemberPath="Title" Style="{x:Null}" SelectedValue="{Binding ProductKind, ValidatesOnDataErrors=True, ValidatesOnExceptions=True, Upd

Categories : Wpf

Get-ScheduledTask in PowerShell on Windows Server 2003
You'll find all the informations you need about the missing COM object in Working with scheduled tasks from Windows PowerShell. Using Windows Server 2012 you can use Scheduled Tasks Cmdlets in Windows PowerShell.

Categories : Powershell

WPF Visibility Issue Windows Server 2003
You are using different versions of .NET (4.5) on you dev machine, which is only impersontating 4.0 version. It turns out there are some incompatibilities between those two versions (errors which were fixed in 4.5 would not occur even if you are downtargetting 4.0). In my work with .NET 4.0 (which you are using on your 2003 server), I've found that sometimes StaticResource malfunctions in DataTemplates. This issue was fixed with 4.5 release, so thats why you do not get those problems. You should change: EDIT: Following is not working because Converter is not a dependency property. Visibility="{Binding ShowSearch, Converter={StaticResource Bvc}}" to Visibility="{Binding ShowSearch, Converter={DynamicResource Bvc}}"

Categories : C#

Batch File Cannot Execute command in Windows 2003 server
You need to either change to the proper drive and folder to execute sm first, or call it directly using a full path. In either case, you need to quote the path because it contains spaces. Changing drive and directory first: cd /d "D:Program Files(x86)PHCheck This 7.11ASDABC" sm -reportlic > D:srini est1.txt Using a full path: "D:Program Files(x86)PHCheck This 7.11ASDABC>sm" -reportlic > D:srini est1.txt

Categories : Batch File

Installing PHP 5 on Windows Server 2003 - %1 is not a valid Win32 application
Try running PHP directly from command line to see if you receive the same error. If it is, the issue may be that a dependency cannot be found. PHP has a dependency on the Visual C++ Redistributable - from http://windows.php.net/download/ : The VC9 builds require you to have the Visual C++ Redistributable for Visual Studio 2008 SP1 x86 or x64 installed. The VC11 builds require to have the Visual C++ Redistributable for Visual Studio 2012 x86 or x64 installed. if this doesn't help, run the Microsoft utility Depends.exe from http://www.dependencywalker.com/ to find out what might be the issue.

Categories : PHP

Windows 2003 Server Crash - Now on 2008 - MySQL IBData1 File Shows Default Tables Only
I'm not sure if I actually need to ask, but are you sure you're putting the files in the correct directory? The fact that you've replaced the IBData1 file and you've still got the old users after server restart... As far as I know too, information_schema and performance_schema are actually views built from non-file sources, so won't be part of the IBData1 file. Although I have more experience with Linux systems, I know MySQL is fussy about ownership and permissions of the data files. Also, I would move the log files away from the data dir (while the server is stopped) as the current ones will probably be no use anyway and new ones will be zero-filled on mysql start anyway. If you've already checked the permissions and ownership, also have a look at if innodb_file_per_table is set in

Categories : PHP

Sending PHP mail from Windows server
In a windows environment PHP uses SMTP insted of the Linux binary sendmail (or replacement) You need to edit php.ini according to this page to be able to send e-mail via the mail() function.

Categories : Email

Server 2003 to Server 2008 - Multiple-step OLE DB operation errors
I finally fixed this. The solution was found in the last post of this thread: https://forums.oracle.com/thread/80441 It seems if I was using ODBC, setting the precision and scale for all the numeric parameters would have resolved the issue, however, for OLE DB this did not fix the issue. Changing all numeric parameters from adNumeric to adDouble did fix the issue. For those not wanting to venture to the Oracle forums. The first way is done like this: Set Parameter = Command.CreateParameter("inRequestType", adNumeric, adParamInput, <length>, <value>) Parameter.Precision = 10 Parameter.NumericScale = 0 Parameters.Append Parameter Doing that did not fix my issue, I had to change adNumeric to adDouble (131 to 5).

Categories : Oracle

Most Efficient Way To Export Access 2003 Listbox RowSource (query) To Excel 2003
Try generating a XML file. Here an example: http://blogs.msdn.com/b/brian_jones/archive/2005/06/27/433152.aspx P.S. About first method. To avoid users clicks you can hide Excel. Also you can speed up Excel (see functions below). Use Prepare() before putting data and Ended() after it or in case of error. Public Sub Prepare() Application.ScreenUpdating = False Application.Calculation = xlCalculationManual Application.EnableEvents = False ActiveSheet.DisplayPageBreaks = False Application.DisplayStatusBar = False Application.DisplayAlerts = False End Sub Public Sub Ended() Application.ScreenUpdating = True Application.Calculation = xlCalculationAutomatic Application.EnableEvents = True ActiveSheet.DisplayPageBreaks = True Application.DisplayStatus

Categories : SQL

Detect windows 2003 and XP using batch file
try this: @echo off setlocal EnableDelayedExpansion ::Identify OS for /F "delims=" %%a in ('ver') do set ver=%%a set Version= for %%a in (95=95 98=98 ME=ME NT=NT 2000=2000 5.1.=XP 5.2.=2003 6.0.=Vista 6.1.=7 6.2.=8) do ( if "!Version!" equ "this" ( set Version=Windows %%a ) else if "!ver: %%a=!" neq "%ver%" ( set Version=this ) ) ::Identify bit if exist "%SYSTEMDRIVE%Program Files (x86)" ( set Type=64 bit ) else ( set Type=32 bit ) ::Display result echo %Version% %Type% goto :eof ::Goto right version goto %Version: =_% :Windows_8 echo Windows 8 :Windows_7 echo Windows 7 © Aacini

Categories : Batch File

MySQL Error Number 2003 on windows 8
The server not starting mostly happens with permission issues or installation errors. Please check if there is any permission issues or try to reinstall mysql. Please check the following link for more info Can't connect to [local] MySQL server

Categories : Mysql

ODP.NET 32 bit on Win 7 64 bit and Win Server 2003 64 bit
IMO There are a few options: Compile for x86 and install the 32 bit Oracle Client on your 64bit server (could run side by side if you change the ORACLE_HOME, TNS_ADMIN, ... system variables); Compile for x86 and pack all DLL's for a 32 bit Oracle Instant Client together with your binaries (make sure the TNS_ADMIN system variable is set otherwise you won't be able to use LDAP or tnsnames); Compile your application for Any CPU but create a different set of dll's for x64 and x86 bit (Oracle.DataAcess.dll is compiled for a specific architecture, there is a version for x64 and one for x86); Oracle is working on a managed Oracle driver, no Oracle client is required anymore, most codebases can converted easily but be aware that it's not feature complete yet and only supports Oracle 11+ database

Categories : C#

Warning: mail(): SMTP server response: 550 This is a submission only port. You must authenticate before sending mail in
php.ini & SMTP= - how do you pass username & password PHP mail() command does not support authentication. Your options: ...

Categories : Email

Switched exchange servers, kept the same e-mail but some incoming mail is still going to the old server
I'm assuming that you changed the MX records for your domain, so that they now point to Microsoft 365's mail servers, correct? If so, it may take a day or two for the DNS changes to propagate.

Categories : Email

Unable to get emails sent by PHP mail function because of another mail server
The first thing to establish is how you are sending emails (sendmail or SMTP). Then, whether your emails are a) not sent at all or b) getting rejected by the destination mail server. I'd check all available logs (source and destination mail servers and daemons). See if mail() itself is erroring. Try using sendmail/smtp directly. If its the destination server rejecting the mail based on its spam score, try setting SPF records to enable the web server to send mail legally.

Categories : PHP

VBScript Cannot Find file Specified Server 2003
Most likely the Open method of Office 2003 doesn't support wildcards in the path. You'll have to enumerate the files in that folder: Set app = CreateObject("Excel.Application") Set fso = CreateObject("Scripting.FileSystemObject") For Each f In fso.GetFolder("Y:Billing_Commonautoemail").Files If LCase(fso.GetExtensionName(f)) = "xls" Then Set wb = app.Workbooks.Open(f.Path) ... wb.Close End If Next

Categories : Excel

Import into SQL Server 2003 from a CSV file Error
It might not be that SQLServer is complaining about losing data when importing but when reading. For instance, the DT_DBTIMESTAMP type expects the format yyyy-mm-dd hh:mm:ss[.fff]. If your data is not formatted correct in any dimension (say your mm > 12 or dd > 31) that may be the problem. Like @Pondlife suggested I'd bring everything into a varchar(max) field and then run TSQL to see if all rows can convert to DBTIMESTAMP data type is a simple convert statement.

Categories : Sql Server

Connect to mysql on Amazon EC2 from a remote server - ERROR 2003
SOLVED the problem: i have in the iptables this line REJECT all -- anywhere anywhere reject-with icmp-host-prohibited and this line only append the rule to the end of the list so the reject catch it first sudo iptables -A INPUT -i eth0 -p tcp -m tcp --dport 3306 -j ACCEPT to solve it i needed to put the rule higher in the chain, i.e. use -I switch like this: sudo iptables -I INPUT -i eth0 -p tcp -m tcp --dport 3306 -j ACCEPT

Categories : Mysql

ERROR 2003 (HY000): Can't connect to MySQL server on 'hostname' (111)
Simply check your my.cnf and change from bind-address = 0.0.0.0 to bind-address = 127.0.0.1 if you don't have that parameter just add it. Binding to the 0.0.0.0 let your mysql being available on every IP configured cause you can't bind just on two or three IP on the server, the config can be: localhost or everything. Then check your /etc/hosts file and be sure that the line 127.0.0.1 localhost contains also your server hostname, as example: my hostname is "db01", my /etc/hosts is 127.0.0.1 localhost db01 Keep in mind that after the install process via yum (I don't know if CentOS do this automagically for you, I just know that Gentoo does not) you have to execute mysql_install_db and then configure the password for the root user, be absolutely sure that you'd set up a password

Categories : Mysql

ERROR 2003 (HY000): Can't connect to MySQL server on localhost (10061)
Well that could have some reasons. THe first one is that the MySQL server/service not started. If he is started you should check out the logfiles, and make sure there are no problems. You could also uninstall the MySQL service and install XAMPP. With XAMPP it is easier to manage this services.

Categories : Mysql

My database is fetching duplicate records when i am working with server 2003 in mysql
SELECT EMPID,e.CUR_VC_FIRSTNAME_NN,d.DEPTNAME,LTID,FROMLEAVEDATE,FROMLEAVETYPE,TOLEAVEDATE,TOLEAVETYPE,NUM_LEV_DAYS FROM lmsdb.leaves l, lmsdb.department d, lmsdb.emp_pas_data e WHERE l.EMPID=e.cur_c_empno_pk AND d.DEPTID=e.CUR_C_DEPT_CD_CFK AND e.uni_vc_unit_desc_nn='Hyderabad') AND LEV_STATUS='2' AND TOLEAVEDATE>'2013-06-27' AND FROMLEAVEDATE<'2013-07-28' ORDER BY d.DEPTNAME,EMPID ASC; Your query looks correct. You should check duplicate rows in either table lmsdb.leaves or in lmsdb.emp_pas_data

Categories : SQL

What is the point of adding "IP domain.tld" to the ( /etc/hosts ) file if the server is not gonna be used as a mail server?
/etc/hosts file is an alternative to DNS host name resolution. It has nothing specifically to do with mail servers. But, to use a mail server it has to be found on the network. /etc/hosts is a local lookup file that computer uses as specified in /etc/nsswitch.conf. DNS is a network service provided for each domain. For example, BIND. Domain zone files are configured and hosted on the domains primary DNS servers. You can configure domain searches in /etc/resolv.conf.

Categories : Linux

Why is Azure deployment slower on Windows 2012 Server than on Windows 2008 Server
http://social.msdn.microsoft.com/Forums/windowsazure/en-us/7cf664b0-5876-4d6a-b54d-fda46c544c6f/azure-deployment-slower-with-w2012-server-than-w2008-server-or-w2008-server-r2?forum=windowsazuretroubleshooting: 'I tried with .NET 4.5 with the same results. I think is something related to Azure SDK 1.7 & 2.0 Programmatically configure Azure cache client' Answer by Jordi Torra It seems to be a problem with the Azure SDK 1.7 & 2.0.

Categories : Asp Net

MX Records for Google Apps for Businesses Server + Another Mail server
To anyone seeing this post, I'll answer my own question: yes it's possible. You need to set up "Split delivery" in your Google Apps account. More about this here: http://support.google.com/a/bin/answer.py?hl=en&answer=173534

Categories : Misc

How to send emails from my server with a mail server and nodejs
I just had to do this as well, but I am running my node server on an Azure virtual Ubuntu Linux server. I imagine the same steps would work from your home server if you're running Ubuntu. Here is what I found worked: I installed the postfix email server using this guide: https://help.ubuntu.com/community/Postfix It looked like a lot of work at first, but it worked for me pretty easily. I found the easiest way to send the outgoing email from node.js was to use emailjs: http://github.com/eleith/emailjs.git I found that emails sent often end up being marked as spam. To help avoid this, you can go to wherever you manage your domain name (I use enom) and then configure an SPF record to help make your outgoing email look legit. Here is my node.js module to send emails using emailjs:

Categories : Javascript

E-mail app/filter that copies E-mail from the body of the letter and auto replies to that e-mail
I would suggest checking out Google Apps Script. You can create a script just like you would create any other Google Document in Drive by adding the Scripts module from the app store (Scripts is free and created by google). You can also use the gmail API to do the same thing. Both are very well documented and provide a surprisingly high level of access to your emails and their content.

Categories : Email

Why I send a mail with PHP, but receiver get a mail with attachment named "mail.html"?
Did you use any headers? $headers = 'MIME-Version: 1.0' . " "; $headers .= 'Content-type: text/html; charset=iso-8859-1' . " "; // Mail it mail($to, $subject, $message, $headers); Don't use foxmail so no clue if it works...but if you didn't send headers it's worth a try.

Categories : PHP

Reading Mail in Windows form Using C#
Why you Quit before getting your email from stream? Server returns content of email right after RETR command. i ran your code, and it looks for classic scheme of logging in: sw.WriteLine("USER user@gmail.com"); // Refer to RFC 1939 // sent to server sw.Flush(); strTemp = reader.ReadLine(); sw.WriteLine("PASS password"); sw.Flush(); strTemp = reader.ReadLine(); You should get OK right now with ie. +OK. Welcome. Now you should be able to pop messages. To get message content (from your code): sw.WriteLine("RETR 1"); sw.Flush(); strTemp = reader.ReadLine(); while ((strTemp = reader.ReadLine()) != null) { // find the . character in line if (strTemp == ".") { break; } if (strTemp.IndexOf("-ERR") != -1) { break; } str += strTemp; } complete

Categories : C#

Sending mail with Powershell Windows 7
This could be due to many reasons, but one issue that I had seen this exact same error was because an anti-virus program was blocking Powershell from sending the email. Check if this is the case by looking at your anti virus logs. Beyond that, you might want to check if firewall is fine, you can connect to the SMTP server etc.

Categories : Email

Windows phone 8 - Sending Mail in background
You can't send an email from the user's email account without his approval. What you can do is use your own server and php script which you can then call from the app to send the email for you, like it's done for error reporting services.

Categories : Windows Phone 8

PHP + mail server
On most cPanel hosts, you can set a forwarder to forward an email to a script when it is received. As long as your email is managed on the same cPanel account, it will work great ... When you create the forwarder, you will set the forward to address as |/home/username/path/to/script.php Then the first thing you need to do in the script is receive the email from stdin: //Receive the email from stdin ... $fd = fopen("php://stdin","r"); $data = ''; while(!feof($fd)){ $data .= fread($fd,1024); } fclose($fd); //process email data ... I've done this on a number of cPanel hosts with great success.

Categories : PHP

How to setup a mail server?
Install and configure an SMTP server. SMTP servers can usually be configured quite extensively, what to do with mails that should be deliverd locally. One such option would be to deliver the mail locally by invoking a ruby script. Popular SMTP servers are postfix, courier and qmail. The details about how to setup the mail server depends on which one you use.

Categories : Ruby

Setting up mail server in pc
PHPMailer is a full featured email transfer Class for PHP supporting SMTP and POP3. So you not need to setup mail server on your pc. It works on localhost too. Class Features Probably the world's most popular code for sending email from PHP! Used by many open-source projects: Drupal, SugarCRM, Yii, Joomla! and many more Integrated SMTP support - send without a local mail server Send emails with multiple TOs, CCs, BCCs and REPLY-TOs Multipart/alternative emails for mail clients that do not read HTML email Support for 8bit, base64, binary, and quoted-printable encoding SMTP authentication with LOGIN, PLAIN, NTLM and CRAM-MD5 mechanisms Native language support Compatible with PHP 5.0 and later Much more! Githup Repo and more about it

Categories : Email

A simple mail server in C++
POP3 is a protocol (read RFC 1939), so you have to implement it in order use it. After connecting, the other side won't send you anything until you send the greeting message ("+OK your message here"). After that, you must establish a POP "conversation" with the remote client. Also, POP is used for retrieving messages from a server, so a client will connect to your proccess and try to download messages. You have to implement the SMTP protocol (read RFC 5321) in order to receive messages sent to you. SMTP is also a protocol, so you must implement it if you want the other side to send you the data.

Categories : C++



© Copyright 2017 w3hello.com Publishing Limited. All rights reserved.