I've had the issue with my desktop for ages and now, after upgrading to Windows 10, my Asus laptop started to do the same - wake up during night w/o reason.
I followed this post to check:
powercfg –lastwake
powercfg -devicequery wake_armedand disabled wake-up settings for my mouse and network adapter. This didn't help.
Next I followed this post and disabled the wake-up settings of the task:
Problem solved at last :)
Monday, January 04, 2016
Monday, December 28, 2015
Asus G73JW and Windows 10 freezing
I've just updated my relatively old Asus G73JW to windows 10 (fresh install - I don't like upgrades). All seem well until the 1st restart, when I'd end up with black screen after reboot. Couple hard-resets later and trying to disable various start-up programs (I was suspecting display drivers from NVidia) and situation wasn't improving - sometimes I was able to log-in, but system would freeze randomly after couple seconds/minutes. Sometimes I'd end up with BOD with MACHINE_CHECK_EXCEPTION.
Next step was to boot into safe mode - interestingly, I couldn't get into "Safe mode with networking" (option 5) - that ended up with the BOD. Luckily, just "Safe mode" (option 4) worked fine and system wasn't freezing. This got me thinking that maybe it was the network card causing the problems. So I went to Device Manager and disabled the following:
This resolved my issues with both, BOD as well as freezing. I'm running on WiFi, so having the physical LAN disabled is not an issue for me, but there might be updated driver somewhere that might fix the issue as well.
Next step was to boot into safe mode - interestingly, I couldn't get into "Safe mode with networking" (option 5) - that ended up with the BOD. Luckily, just "Safe mode" (option 4) worked fine and system wasn't freezing. This got me thinking that maybe it was the network card causing the problems. So I went to Device Manager and disabled the following:
This resolved my issues with both, BOD as well as freezing. I'm running on WiFi, so having the physical LAN disabled is not an issue for me, but there might be updated driver somewhere that might fix the issue as well.
Thursday, April 24, 2014
Consuming WebService from BizTalk using message routing only
I've recently came across scenario, where I needed to consume webservice (svc) from BizTalk without the use of orchestrations.
Consuming is simple enough - in BizTalk Project, select the "Add Generated Items", select WCF and finish the wizard. Then delete the ODX file (we're not using orchestration). Deploy project to BT so that we have schemas in place and use one of the generated bindings to create the Send port.
Create a testing Receive port (don't forget to use XmlReceive pipeline on the location).
Send a test message and... Boom! BT tells you that the call has failed due to routing failure - missing subscriber.
If you inspect the error, you'll see that it's not the call TO the service, but rather the response FROM the service that is failing - and fair enough, we don't have subscriber for the response!
To correct this situation, create another Send port and set its Filter criteria to:
BTS.MessageType == http://yournamespace#MethodNameResponse
If you're not sure about the message type, just inspect the Routing Failure report and you'll find it there.
Consuming is simple enough - in BizTalk Project, select the "Add Generated Items", select WCF and finish the wizard. Then delete the ODX file (we're not using orchestration). Deploy project to BT so that we have schemas in place and use one of the generated bindings to create the Send port.
Create a testing Receive port (don't forget to use XmlReceive pipeline on the location).
Send a test message and... Boom! BT tells you that the call has failed due to routing failure - missing subscriber.
If you inspect the error, you'll see that it's not the call TO the service, but rather the response FROM the service that is failing - and fair enough, we don't have subscriber for the response!
To correct this situation, create another Send port and set its Filter criteria to:
BTS.MessageType == http://yournamespace#MethodNameResponse
If you're not sure about the message type, just inspect the Routing Failure report and you'll find it there.
Thursday, August 29, 2013
EF Code First AddOrUpdate puts null into referenced objects
I've ran into issue in my Seed() function, where I generate stub data.
This is my design:
public class AircraftModel
{
public Guid Id { get; set; }
public string Name { get; set; }
public Guid ManufacturerId { get; set; }
public virtual Manufacturer Manufacturer { get; set; }
}
This is my design:
public class AircraftModel
{
public Guid Id { get; set; }
public string Name { get; set; }
public Guid ManufacturerId { get; set; }
public virtual Manufacturer Manufacturer { get; set; }
}
Now, I tried following code to generate data:
context.AircraftModels.AddOrUpdate(m => m.Name
, new AircraftModel {
Name = "Global Express XRS",
Manufacturer = context.Manufacturers.Single(c => c.Name == "Bombardier Inc.")
}
);
It should work like charm I though, but it didn't. The problem was, that the Manufacturer was set to null after running AddOrUpdate - I guess because the ManufacturerId didn't match Manufacturer object.
When I changed to code to this, it worked fine:
context.AircraftModels.AddOrUpdate(m => m.Name
, new AircraftModel {
Name = "Global Express XRS",
ManufacturerId = context.Manufacturers.Single(c => c.Name == "Bombardier Inc.").Id
}
);
Ok, so there's obvious problem with syncing the Manufacturer object and the ManufacturerId.
I've decided to keep them in sync using following modification:
public class AircraftModel
{
private Manufacturer _manufacturer;
public Guid Id { get; set; }
public string Name { get; set; }
public Guid ManufacturerId { get; set; }
public virtual Manufacturer Manufacturer
{
get { return _manufacturer; }
set
{
if (value != null && value.Id != ManufacturerId)
ManufacturerId = value.Id;
_manufacturer = value;
}
}
}
{
private Manufacturer _manufacturer;
public Guid Id { get; set; }
public string Name { get; set; }
public Guid ManufacturerId { get; set; }
public virtual Manufacturer Manufacturer
{
get { return _manufacturer; }
set
{
if (value != null && value.Id != ManufacturerId)
ManufacturerId = value.Id;
_manufacturer = value;
}
}
}
Now this code works as expected. Not sure if it's a bug or "feature"?...
ASP.Net Telerik RadScriptManager causes Sys not defined error
I ran into issue where I was working on a website with page methods (svc) and so I was using ScriptManager to register them. All was working fine until I decided to include Telerik ASP.Net AJAX control as well. I switched from ScriptManager to RadScriptManager, added all the web.config settings, but when I loaded the page in browser, I was getting all sorts of "Sys is not defined" errors.
One thing in particular was puzzling - when I looked in browser's dev tools at the content of the "WebResources.axd?....", I was getting HTML code instead of JavaScript.
Finally I realized where the problem was - I was using Forms authentication and did not put the WebResource.axd to the exceptions list... doh!
So make sure you have the below in your web.config:
<location path="Telerik.Web.UI.WebResource.axd">
<system.web>
<authorization>
<allow users="*" />
</authorization>
</system.web>
</location>
One thing in particular was puzzling - when I looked in browser's dev tools at the content of the "WebResources.axd?....", I was getting HTML code instead of JavaScript.
Finally I realized where the problem was - I was using Forms authentication and did not put the WebResource.axd to the exceptions list... doh!
So make sure you have the below in your web.config:
<location path="Telerik.Web.UI.WebResource.axd">
<system.web>
<authorization>
<allow users="*" />
</authorization>
</system.web>
</location>
Friday, August 02, 2013
Asus G73JW and Windows 8
I've updated my Asus laptop G73JW to Windows 8 and found only three important things that needed to be installed from Asus.
1) To enable the "Fn" + ... buttons, I've had to install the "ATKACPI driver and hotkey-related utilities" found on asus support web-site under "Other". This enables the key functions (such as keyboard light, sound volume controls, etc.)
2) I had VERY annoying problem where while typing, cursor would randomly jump to a mouse-pointer location. Apparently wasn't the only one with the problem. I found the solution by installing the "Synaptics TOUCHPAD driver" found under the "Touchpad" section. In the settings, I've checked to "disable internal pointing device when external is connected" (found on last tab) - this disconnects the touchpad when I have my external mouse connected and the annoying mouse-jumping problem is solved.
3) Finally, I was able to connect WiFi with no problem, but the ethernet (Atheros AR8131) adapter would just stay disabled and not recognize LAN cable plugged in. Trying to enable would not do anything. Once again installing the driver "Atheros LAN Driver" from asus support section "LAN" fixed the issue.
1) To enable the "Fn" + ... buttons, I've had to install the "ATKACPI driver and hotkey-related utilities" found on asus support web-site under "Other". This enables the key functions (such as keyboard light, sound volume controls, etc.)
2) I had VERY annoying problem where while typing, cursor would randomly jump to a mouse-pointer location. Apparently wasn't the only one with the problem. I found the solution by installing the "Synaptics TOUCHPAD driver" found under the "Touchpad" section. In the settings, I've checked to "disable internal pointing device when external is connected" (found on last tab) - this disconnects the touchpad when I have my external mouse connected and the annoying mouse-jumping problem is solved.
3) Finally, I was able to connect WiFi with no problem, but the ethernet (Atheros AR8131) adapter would just stay disabled and not recognize LAN cable plugged in. Trying to enable would not do anything. Once again installing the driver "Atheros LAN Driver" from asus support section "LAN" fixed the issue.
Saturday, May 25, 2013
Server Side Include in IIS Express
To enable SSI in IIS Express, open configuration file:
C:\Users\%user%\Documents\IISExpress\config\applicationhost.config
and within it make sure that:
1) SSI is enabled - within "globalModules" section should be a tag: <add name="ServerSideIncludeModule" image="%IIS_BIN%\iis_ssi.dll" />
2) set a default document with "shtml" - within "defaultDocument" section add e.g. <add value="index.shtml" />
One more thing to note about SSI files. I was struggling a lot with includes breaking my page layout - adding empty line in every spot where #include was used. Apparently the problem is with encoding of the file. So instead of using "Unicode (UTF-8 with signature)", save your include files with "Unicode (UTF-8 without signature)" - in visual studio you can set this in menu File -> Advanced Save Options...
C:\Users\%user%\Documents\IISExpress\config\applicationhost.config
and within it make sure that:
1) SSI is enabled - within "globalModules" section should be a tag: <add name="ServerSideIncludeModule" image="%IIS_BIN%\iis_ssi.dll" />
2) set a default document with "shtml" - within "defaultDocument" section add e.g. <add value="index.shtml" />
One more thing to note about SSI files. I was struggling a lot with includes breaking my page layout - adding empty line in every spot where #include was used. Apparently the problem is with encoding of the file. So instead of using "Unicode (UTF-8 with signature)", save your include files with "Unicode (UTF-8 without signature)" - in visual studio you can set this in menu File -> Advanced Save Options...
Subscribe to:
Posts (Atom)

