Make sure the version of Windows and OS type of the machine that you are using for the application while implementing the impersonation and LogonUser functions in your application.
I faced this error before :-
"Could not load file or assembly 'System.Transactions......' or one of its dependencies. Either a required impersonation level was not provided or the provided impersonation level is invalid."
My application is installed in a pc with 32-bit OS, Windows Vista, etc. And I used LOGON32_LOGON_NETWORK value as logon type for LogonUser function. Finally I get the error above.
The problem is I used LOGON32_LOGON_NETWORK value as logon type for LogonUser function It is because for Windows Vista, the logon type for LogonUser function is not LOGON32_LOGON_NETWORK. LOGON32_LOGON_NETWORK is for using at machine Windows XP.
Therefore, for Windows Vista, the value for logon type should not be LOGON32_LOGON_NETWORK, and should change it to LOGON32_LOGON_NEW_CREDENTIALS. And it can be used also at machine Windows XP.
Click on LogonUser function here to read more details about it.
Tuesday, November 3, 2009
Monday, October 26, 2009
Compress VPC
1. Clean up the database (db). Shrink the db, data and its log file. If db's log file is still in large size, then detact, remove and attact the log file again for the db.
2. Clean up the VPC - may use CCleaner or Disk CleanUp to do so.
3. Disable Hibernation in Control Panel > Power Option.
4. Capture Virtual Disk Precompactor.ISO [in VPC host - C:\Program Files\Microsoft Virtual PC\Virtual Machine Additions\Virtual Disk Precompactor.iso].
5. Run the "Virtual Disk Precompactor.ISO" in VPC.
6. Shut down VPC.
7. In VPC Console, click File > Virtual Disk Wizard, then select option "Edit an existing virtual disk".
8. Select option "Compact" and select option "Replacing the original file" or "Save As...".
2. Clean up the VPC - may use CCleaner or Disk CleanUp to do so.
3. Disable Hibernation in Control Panel > Power Option.
4. Capture Virtual Disk Precompactor.ISO [in VPC host - C:\Program Files\Microsoft Virtual PC\Virtual Machine Additions\Virtual Disk Precompactor.iso].
5. Run the "Virtual Disk Precompactor.ISO" in VPC.
6. Shut down VPC.
7. In VPC Console, click File > Virtual Disk Wizard, then select option "Edit an existing virtual disk".
8. Select option "Compact" and select option "Replacing the original file" or "Save As...".
Monday, October 12, 2009
超级星光大道第5届
刚刚看到超级星光大道5总决赛的成绩,一直排在第 2 和第 3 的徐詠琳和李杰宇,即然在总决赛的第2场表现失常,分数一路滑落谷底,最后落到第 4 和第 5 名。真的没想到,原本排在第 4 和第 5 的劉明湘、梁曉珺,最后赶上,得到了亚军和季军。我觉得徐詠琳和李杰宇好可惜哦!我一直都很喜欢徐詠琳的,以为她可以得到第 2 名,怎么也没想到她突然会表现失常,好心痛哦!她的声音很好听,我觉得她是六强女生当中最好的。希望她有机会可以出唱片,好想再听到她唱的歌。
Thursday, October 1, 2009
我的缺点
10月1日。十月的第一天,原本是很开心,心情很好。怎知道,下午我又犯了同样的错 -- 忘记作东西!
我最大的缺点就是时常忘记事情!那段时间真的很讨厌自己,一直问自己,为什么会忘记呢?不是已记下来了吗?最糟糕的是我忘记的是工作上的事。 我忘了把那文件交给另一个同事, 害他在client那边受了罪。真的好对不起他啊!
从今天起,每天在project作了的事,都要写下,好让我不要再害人害己了!记事本,笔,准备好,我们要从新出发!
Today is first day of October, 01/10/2009. I felt very happy and having nice mood this morning, as today is first day of October, new month, new life. BUT, I did a very very wrong thing this noon which is I forgot to pass an important file to my colleague. This file is very important as my colleague, he want to show the file to Client. Because of my fault, he kena scold by Client. I felt very very sorry to him.
Why I always forget things? I always miss out, leave out something in work. I have to change, I have to pull out this bad habit from my body. From now on, I need to write down every thing in project, work that I have been done in notebook. Thus, I would not forget again. It's time to move on.
Let's do it!
by 最后一天忘东忘西的 LM ~~
我最大的缺点就是时常忘记事情!那段时间真的很讨厌自己,一直问自己,为什么会忘记呢?不是已记下来了吗?最糟糕的是我忘记的是工作上的事。 我忘了把那文件交给另一个同事, 害他在client那边受了罪。真的好对不起他啊!
从今天起,每天在project作了的事,都要写下,好让我不要再害人害己了!记事本,笔,准备好,我们要从新出发!
Today is first day of October, 01/10/2009. I felt very happy and having nice mood this morning, as today is first day of October, new month, new life. BUT, I did a very very wrong thing this noon which is I forgot to pass an important file to my colleague. This file is very important as my colleague, he want to show the file to Client. Because of my fault, he kena scold by Client. I felt very very sorry to him.
Why I always forget things? I always miss out, leave out something in work. I have to change, I have to pull out this bad habit from my body. From now on, I need to write down every thing in project, work that I have been done in notebook. Thus, I would not forget again. It's time to move on.
Let's do it!
by 最后一天忘东忘西的 LM ~~
Wednesday, September 30, 2009
Earthquake??
今天傍晚6点左右,在我工作的时候,我一度以为我太专注地看着电脑,所以觉得头晕。身体不断地前后摆动。但过后,看看四周围,同事们都不约而同地,互相对望,问对方同样的问题:"是earthquake 吗?,还是我自己头晕啊?我们需要逃走吗?"大家就这样聊了起来。一打开facebook,很多人都讨论这问题。同事们还上网向Miss Goo - Google 查个明白。
原来印尼Sumatra发生earthquake,7.9级,我们半岛都受到余震。大家都非常担心Tsunami会再次到来。幸好,一切无事。从网上的新闻得知,没有Tsunami的预兆,但Sumatra那似乎还蛮严重的。在前几天,美国才发生earthquake,菲律宾发生严重水灾,现在就到印尼earthquake。我们在马来西亚,算是很幸运了!
希望明天的新闻听到的是好消息,不是坏消息吧!明天会更好... by LM
原来印尼Sumatra发生earthquake,7.9级,我们半岛都受到余震。大家都非常担心Tsunami会再次到来。幸好,一切无事。从网上的新闻得知,没有Tsunami的预兆,但Sumatra那似乎还蛮严重的。在前几天,美国才发生earthquake,菲律宾发生严重水灾,现在就到印尼earthquake。我们在马来西亚,算是很幸运了!
希望明天的新闻听到的是好消息,不是坏消息吧!明天会更好... by LM
Subscribe to:
Posts (Atom)