Pages

Showing posts with label error. Show all posts
Showing posts with label error. Show all posts

Saturday, February 4, 2017

using Entity Framework or EF to copy an Object.

using Entity Framework or EF to copy an Object.
This can be used to avoid Error : PK cannot be modified :
"The property 'MyPrimaryKey' is part of the object's key information and cannot be modified. "
we can use this query :
var item = _context.MyTableName.First(z => z.Name == "Ardi");
var newItem = (MyTableName)_context.Entry(item).GetDatabaseValues().ToObject();
newItem.MyPrimaryKey = "Generated_" + DateTime.Now.ToString();
_context.SaveChanges();


Friday, July 29, 2011

ASP.NET WebService Error

An Error was Found : 
An endpoint configuration section for contract 'TempConvert.TempConvertSoap' could not be loaded because more than one endpoint configuration for that contract was found. Please indicate the preferred endpoint configuration section by name.

You should : 
Open your web.config or app.config
Find Binding ...
Then, on your SoapClient
Replace
TempConvertSoapClient svc = new TempConvertSoapClient();
with
TempConvertSoapClient svc = new TempConvertSoapClient("TempConvertSoap");

Friday, June 17, 2011

IIS unexpected error 0x8ffe2740

buka cmd
run netstat -a -o -n





cari local address dengan Port 80 , cari PID
lalu pada task manager,
pilih tab Processes, lalu pilih View >> Select Columns >> Check PID
Cari proses dengan PID yg terdapat pada command prompt
Klik kanan, End Proses Tree

Monday, January 18, 2010

Computer Error

if there is a text when you restart your computer :
" reboot and select proper boot device or insert boot media in selected boot device and press a key "

but there is no "bib" ,etc.
anyone know what it is means?
thx ...

ShareThis