0
Posted on 1:49 AM by Softminer and filed under , , ,

Obfuscated code is source or machine code that has been made difficult to understand.

in other words its a way to encode the source code that would not be easy to decode. there is a famous free tool called .NET reflector which give the possibility to open compiled DLL or even EXE files of .NET project and see the source code.

to avoid this we have to obfuscate the source code.

Eazfuscator.NET
Eazfuscator.NET is a free obfuscator for .NET platform. The main purpose of obfuscator is to protect intellectual property of the software.

Skater .NET obfuscator
Skater .NET obfuscator is designed for both (x86 and x64) operating system platforms.

.NET Reactor
.NET Reactor is a powerful .NET code protection & licensing system which assists developers in protecting their .NET software.


for more discussion visit here
0
Posted on 2:26 AM by Softminer and filed under

I got this error on lanuching IIS 7.5

IIS Error: The process cannot access the file because it is being used by another process.

the problem was skype which was using port 80

with "netstat –ano" its possible to see the PID and the binded ports:

TCP 0.0.0.0:42 0.0.0.0:0 LISTENING 3540
TCP 0.0.0.0:53 0.0.0.0:0 LISTENING 1460
TCP 0.0.0.0:80 0.0.0.0:0 LISTENING 1336
TCP 0.0.0.0:81 0.0.0.0:0 LISTENING 3792
TCP 0.0.0.0:82 0.0.0.0:0 LISTENING 3792
TCP 0.0.0.0:88 0.0.0.0:0 LISTENING 452

then in TaskManager you can find the PID of the corresponding application:


Error in event Viewer:

System log Event: 1004 Source: IIS-W3SVC Error received when trying to start the stopped web site:

The process cannot access the file because it is being used by another process. (Exception from HRESULT: 0×80070020)

To verify nothing else is using the x.x.x.x:80 IP address and port (which would be a different issue), launch administrative command prompt and type:
0
Posted on 1:32 AM by Softminer and filed under ,

here I want to introduce some virtual machines:

virtual box (Oracle): the extension of images are .vdi than can be download from http://virtualboximages.com

I have tested android and chrome OS, the problem is that it can not be full screen :D


VMware: its really powerfull software to have virtual machine for desktop and for servers. there are many website to get "vmware appliance".


Virtual pc : its free from microsoft and you can even download the images from microsoft. I use it to test my layout design in IE7


Hyper-V: its a feature in windows server 2008 and even there is a windows server hyper-v which already has Hyper-v installed.

this video shows how to install hyper-v on windows server:

0
Posted on 3:05 AM by Softminer and filed under , ,

There are many source control software that can be used depend on the purpose for example :

Tortoise SVN
Source Gear (Vault)

fo visual studio

Microsoft Source Safe
Team Foundation Server

Source Safe can be used for small project because in source safe one user can just check out the source and the file is locked, but in TFS in can be edited by many users and then users can solve the conflict when they check-in.

Top features of TFS are :

  • Project Management (connecting to Agile)
  • Reporting (Based on .NET Framework)
  • Automated Builds
  • Process Templates
  • Code Branching
  • Web-Based Portal (Sharepoint)
  • Source Control
Here are some Tutorial about installing TFS on Windows Server :

Part 1
Part 2
Part 3
Part 4
0
Posted on 5:53 AM by Softminer and filed under ,

if you put this in .aspx code it will return back 0.0.0.0

  1.  <%= System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString()%>

you have to fill in either in controller or in Helper class:

here is how to fill it in helper class:

http://www.craftyfella.com/2010/01/adding-assemblyversion-to-aspnet-mvc.html
0
Posted on 6:15 AM by Softminer and filed under

This is the list of Dateformat in SQL 2008 with examples

Data typeOutput
Time12:35:29. 1234567
Date2007-05-08
Smalldatetime2007-05-08 12:35:00
Datetime2007-05-08 12:35:29.123
datetime22007-05-08 12:35:29. 1234567
Datetimeoffset2007-05-08 12:35:29.1234567 +12:15


as you see the new Datetimeoffset is useful for timezone in different countries.

Timestap is changed to rowversion (both are valid)

timestap Is a data type that exposes automatically generated, unique binary numbers within a database. timestamp is generally used as a mechanism for version-stamping table rows.

if you read a row and wants to edit it check the timestamp in update, if the timestamp is changed means during the update this row is changed by someone else.

furthermore, if you want to have a datetime column which automatically fills in insert and update by sql you should make a default value to GETDATE() function.

this default value will fullfill the insert and for update you need to add a trigger like this

CREATE TRIGGER KeepUpdated on Profiles
FOR UPDATE, INSERT AS
UPDATE dbo.Profiles
SET LastUpdate = GetDate()
WHERE Username IN (SELECT Username FROM inserted)
0
Posted on 5:42 AM by Softminer and filed under

after creating webapplication you should enable the http,net.tcp port.


windows communication foundation service should be enables in Windows component
WAS ( windows activation service) : when we add this then .svc will add to the handlers


then call this on IE
And then we have to call with
http://localhost/services/myservice.svc

when you call this the the MEX file will be created and then the net.tcp will work
then you can call service by WCF test client

WCF test client is in this address:
C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE

run it and add this service to it
net.tco://localhost/services/myservice.svc

PS: if it doesnt work please check if net.tcp protocol is in sitebinding
right click on (default website and click on edit banding)
if net.tcp is not in the list add it as follow: