Showing posts with label IT Solve Problem. Show all posts
Showing posts with label IT Solve Problem. Show all posts

Wednesday, March 19, 2014

Not able to send smtp email



Application that I create cannot send email, in this case =
- use Visual studio
- use System.Net.Mail reference file
- windows firewall in off condition
- failure to send email, account email, password and smtp port already declared

And if you use McAfee antivirus in your pc, this can be the issue, and how to solve it :

1. Open mcafee console from the sys tray. Right click on the McAfee icon and select VirusScan Console
2. View the properties under Task, Access Protection
3. Uncheck the rule that blocks outgoing messages on port 25 / 567 Test to confirm that the email notifications are now being sent.

image

 

 

Thursday, January 9, 2014

To Remove Filter Folder in Outlook


Here is the step to solve this issue:

1.On the View menu, point to Arrange By, and then click Custom.
2.Click Filter.
3.Click Clear All.


Tuesday, April 9, 2013

Solved Attach SQL database fail in SQL Server 2008

 

To solve this issue :

The file "D:\Databases\TwaDev.mdf" is compressed but does not reside in a read-only database or filegroup. The file must be decompressed.
Could not open File Control Bank (FCB) for invalid file ID 2 in database 'TwaDev'. Verify the file location. Execute DBCC CHECKDB.
Could not open new database 'TwaDev'. CREATE DATABASE is aborted. (Microsoft SQL Server, Error: 5118)


Solution :
1. Go to file .mdf and .ldf with window explorer
2. Right click that file and click advance button

image

3. Uncheck option “Compress contents to save disk space”

image

4. Re attach that file again with Ms. SQL Server Management Studio


Hope it will help you.

Saturday, September 17, 2011

Solve Error 2114: The Server service is not started

Today i learn about service problem, i had problem when my application access to the server, i got this information :

image

Error 2114: The Server service is not started
This server spec : Window Server 2003 Standard Edition SP2

And when i look forward for this issue i got this solution, and it worked for me. Here the steps to solve it :

1. Right click My Computer icon in your desktop, and click Manage.
image


2. Click Services and Applications.
image

3. Click Services.
image

4. Search name Server. If the Service status is Stopped,
click Start.

image

5. Set the Startup type to Automatic.

And i tried again to access to server, and it worked for me(solve my problem).

Now you can try it, when you had same problem like me.
Have a nice day friends.

Thursday, November 25, 2010

"Error reading from file when open source safe" - "the sourcesafe database has been locked by the administrator"





"Error reading from file when open source safe" - "the sourcesafe database has been locked by the administrator"

image

When i run this command on
C:\Program Files\Microsoft Visual SourceSafe

analyze -f <path to data folder>


After running this i got error like this “the sourcesafe database has been locked by the administrator”
To solve this look in the data\loggedin directory for *.lck files. Your bigger problem is that your database is probably corrupted at this point. Delete the .lck file and then see if you can open the database
Yes it solve my problem, have a nice try guys.

image

Thursday, February 4, 2010

Display & Delete Files with Batch Command

Looking forward this useful script, you can display files detail with specific date criteria.

You can this script on Windows Server 2003


Just create bat file –>  DisplayFile.bat
and the content of that file :

for help you can type this script on cmd prompt: forfiles /?

Format scripts







FORFILES [/p Path] [/s] [/d Date] [/m Mask] [/c Command]


Path   : Path to search  (default=current folder)

-s : Recurse into sub-folders

Date : This can be
+DDMMYY to select files newer than a given date
(filedate >=DDMMYY) or
-DDMMYY to select files older than a given date
(filedate <=DDMMYY) or
(Recent versions format the date mask as: +MM/DD/YY

+DD to select files newer than DD days ago or
-DD to select files older than DD days ago

Mask : Search mask (wildcards allowed) default=*.*
Command : Command to execute on each file. default="CMD /C Echo @FILE"



File Bat Contents


FORFILES /p D:\Folder2\ /m *.*  /d -2 /c "cmd /c echo @FILE  ###################  @FDATE"


pause



image 



if you want to delete file with date criteria, you can use this script




Delete file with batch command






FORFILES /p D:\Folder2\ /m *.*  /s /d -2 /c "cmd /c echo del "@path" & del "@FILE"""

pause



Reference : http://ss64.com/nt/forfiles.html






Tuesday, February 2, 2010

Running other application with VB.NET

When you develop application, perhaps you will need this code, this code will help you to run other application base on your application.

For example :
App_A.exe --->will run ---> Notepad.exe

you just need to add this code :
Shell("Notepad", AppWinStyle.NormalFocus)

Just try :D

Key Combination Event on Visual Studio – Vb.NET

When you create desktop application, you will need to create a form that handle keypress event, this functional will help you to trace event on your form application, interest for this event …



For Example when you press Ctrl-D button, application will set more width of your form, and this VB.NET code will help you :

The Step to do this :
1. Set form properties – KeyPreview = True

image

2. After that copy this code to your application

Private Sub frmMain_KeyUp(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles Me.KeyUp
        ' will expand the form - for expert tools
        If e.Control AndAlso e.KeyCode = Keys.D Then
            Me.Width = 500
        End If
        ' will collapse the form - for standard tools
        If e.Control AndAlso e.KeyCode = Keys.A Then
            Me.Width = 200
        End If
End Sub












Thursday, January 7, 2010

Can Not Debug With Visual Studio

One day i had problem with debugging my application with Visual Studio .NET 2005, it seem very annoyed me, i think something need to do.

This problem view like this … 

image

with error message like this :
System.ArgumentNullException was unhandled
Message="Value cannot be null.\r\nParameter name: activationContext"
Source="mscorlib"
ParamName="activationContext"
StackTrace:
at System.Runtime.Hosting.ApplicationActivator.CreateInstance(ActivationContext activationContext, String[] activationCustomData)
at System.Runtime.Hosting.ApplicationActivator.CreateInstance(ActivationContext activationContext)
at System.Activator.CreateInstance(ActivationContext activationContext)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssemblyDebugInZone()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
InnerException:


image 

Make me looking the answer about it, and i really need it as soon as possible, and fortunately i found the answer, the key is like this:

From solution properties, choose Security tab, and i found that default option value is checked : enable clickone secutity settings
, after i unchecked that option, and run application it allow me to run the application from Visual Studio again, so you can try it with the same problem that i had.

image

Tuesday, May 26, 2009

Problem No Return Type for a Stored Procedure in a Linq to SQL Data Layer

I use linq method on my web, when i want to use store procedure that have temporary table for selecting data, this mechanism do not return an auto generate return type, but for a simple store procedure that only select * from tableA, this mechanism running well, to solve complex sp, so i create sp that contain simple structure and after that i drag to dbml on vs 2008, after that i edit sp it again for next syntax, i think linq need to be update for this problem.


Related topic : http://forums.asp.net/p/1231821/2225086.aspx

Monday, May 25, 2009

Solve Problem on Crystal Report When Insert Store Procedure on Rpt

Today i get new experience, when i want to insert sp on rpt,
i get :

Problem :
Details:Error Code:0x
Source: ADODB.Connection
Description:Object or Provider is not capable of performing requested operation

Solution:
My database contain “.”  char, so i need rename it first and try to insert that sp again to rpt, and it work for me.

Thank Google

Hukum Tabur Tuai

Ingatlah hukum dasar ini, dalam kehidupanmu  Barang siapa yang menanam, dia pula yang akan menuai