a developer's notes – a semi-technical web development BLOG

March 30, 2014

Can’t Connect to SqlServer 2012 LocalDB

Filed under: SQL — Duy Nguyen @ 11:12 am
Tags: , , , , , , ,

I had trouble connecting my sql server to (LocalDB)\v11.0 with my Windows account. I ended up having to delete it and recreate it.

Open a cmd prompt

c:\sqllocaldb delete "v11.0"
LocalDB instance "v11.0" deleted.

c:\sqllocaldb create "v11.0"
LocalDB instance "v11.0" created with version 11.0

If the database is in use, stop MSSQL service and try again.

Advertisements

June 25, 2012

Unable to switch Sync Profiles in Xmarks with Firefox

Filed under: Daily Computing — Duy Nguyen @ 10:17 am
Tags: , , , , , , , ,

When you try to switch profiles with Xmarks, the drop down menu is grayed and is disabled.

1. With Firefox, disable the Xmarks add-on.
2. Restart browser
3. Enable Xmarks add-on
4. Try again.

June 20, 2012

Can’t connect to FTP server with External IP address on Verizon Fios with an Actiontec MI424WR router

Filed under: Daily Computing — Duy Nguyen @ 8:56 pm
Tags: , , , , , , , , , ,

ISSUE:

Unable to connect to a FTP site that is hosted on a PC, using the external IP Address. I am prompted with a authentication dialog box, but after you enter in the credentials, the web browser indicates that it is unable to connect.

BackGround:
1. Port forwarding on the Verizon Router has been configured to forward port 21 (TCP) to desktop
2. Internal IP address works ftp://192.168.1.5/
3. Using the external ip ftp://xx.xxx.xx.xx, prompts for credentials. After using the same credentials to log in, I get the following error:

IE: Internet Explorer cannot display the webpage

After speaking with an Actiontec rep, they told me the issue is that the MI424WR router does not support “loopback”. In other words, the router expects connections to the public
IP only from the external interface. It will ignore and drop traffic to the public IP from the internal interfaces, thus when you are attempting to access your machine with a public IP from within your LAN, the public IP is causing the local machine to contact the default gateway (your router) and your router is not forwarding that traffic back to your host machine.

When the tech attempted to connect to my FTP site with my external IP, he entered the ftp account and password and got right in. Basically, you can’t test this from within your home network, because of the non-loopback support. You will have to ask a friend or neighbor to test it for you. Or connect to another network OUTSIDE YOUR NETWORK to test.

I didn’t have this issue with Comcast, because Comcast only supplies you with a modem. I was using my own router. With Verizon Fios, they supply you with a router/modem in one device. So their router is made differently.

May 17, 2012

Creating a Windows Image Backup Fails on external 3TB Hard Drive

Filed under: Daily Computing — Duy Nguyen @ 11:23 pm
Tags: , , , , , , ,

I bought a brand new Seagate Expansion 3TB hard drive today! I was trying to back up my Windows 7 Hard Drive by creating a system image. But I got the following error:

“The request could not be performed because of an I/O device error. (0x8007045D)”

Could it be my drive is faulty? I ran check disk and it was ok. After a little research, this the problem:

New HDs have 4k bytes per section as opposed to the traditional 512 per sector.

Microsoft won’t be supporting this new hard drive formats for Windows 7 or Windows 2008.

“SBS 2011 is based on Windows 2008 R2 Server. Backup uses VHD (Virtual hard disk) format to store the data. The 4k Sector support is not available for VHD in Windows 2008 & R2 (VHD cannot be created on 4k sector size disks). Hence backup cannot provide support for 4k disks. In Windows 8, a new VHDX format is created that supports > 2 TB data storage and 4k sector disks. Therefore only in Win8 the backup is supporting 4k sector disks. When the Win8 based SBS systems will be launched then you can expect support for 4k.”

Western Digital has a utility that changes the Bytes per sector size on the 4k/4k drives so that it works for Windows Backup (will disable XP access). There is currently not a utility available for Seagate drives :/

I guess we will have to wait until Windows 8.

November 15, 2011

Mouse Scroll Wheel Issues With Visual Studio

Filed under: Daily Computing — Duy Nguyen @ 9:57 am
Tags: , , , , , ,

Check out this blog! It helped me fixed my scroll issues with Visual Studio.

http://thecurlybrace.blogspot.com/2010/08/mouse-scroll-whell-issues-with-visual.html#comment-form

September 5, 2011

There Is No Source Code Available For the Current Location

Filed under: ASP.NET — Duy Nguyen @ 2:25 pm
Tags: , , , , , , , , , , , , , ,

(Taken from:http://www.marvinpalmer.com/MarvinPalmer/post/There-Is-No-Source-Code-Available-For-the-Current-Location.aspx

When using trying to debug with Visual Studio and programming using .NET, you get a Visual Studio dialog that says “There is no source code available for the current location.”

1.The “Show Disassembly” button will be available. Click on it. You can step through the disassembly which does eventually take you into the code.
2. If you click “Show Disassembly” and then “Step Into” code (F11) just like you would have if the code window had loaded, you will see code mixed with other stuff.
3. When you see the code to debug, just right-click the window and choose “Go to Source Code” which opens up the code

Mouse or cursor dissapears in VMWare

Filed under: General Tips — Duy Nguyen @ 1:45 pm
Tags: , , , , , , ,

So I don’t know if anyone else every gets this scenario but if you open VMWare and Visual Studio, or any text editor for that matter, mouse over the main text editor window and your mouse disappears.

I found this very annoying.

Control Panel -> Mouse -> Pointers -> set the windows mouse scheme to black IN THE VMWARE SYSTEM not in the host PC.

Where is the app.config?

Filed under: General Tips — Duy Nguyen @ 1:19 pm
Tags: , , ,

App.config compiles into applicationName.config file. App.config is actually never used.

Blog at WordPress.com.