My dog keep peeing surrounded by my house even though he's trained?

Well, my dog has peed a couple of times in my house although he is trained. He got neuter a month ago and I don't know if it had to do with that, but he be also throwing up earlier. Help!
If he is peeing all of the sudden it could be a UTI. Urinary Tract Infection. The throwing up good be anything.

Take him to you vet for a full check up.
My dog is trained too, but he will pee on the carpet if he is wacky at us.
If we have punished him for something else earlier in the morning, or he was locked up for too long or something of the like; he will come and pee right in front of us of late to tick us off.

Add to Super Bruin 2: Our dog was acting strangely when he was on the crap food Pedigree. Throwing up bile, runny poops, sleepiness. We switched his food and he have been awesome, no problems.
If it continues and he has high position food, then I would take him back to the vet to be examined.
sounds like he's not trained.
I dont know but maybe you're neglecting to take him external when he needs to pee. he's not just going to hold it in for your highness. If he keep throwing up, take him to a vet or change his food to QUALITY premium food, not that crap in a pod u buy from the grocery store
my dog go in the house when it's rainy or when it's cold outside.
There might be an incontinence problem due to being neuter. That or I would say it is a behavioral thing stemming from not enough attention, exercise, etc.
He might have a UTI
He's not resourcefully trained
Answers:    He may be Ill?
I have 2 Dogs and a House with a VERY Large courtyard. They don't even go in the Yard, I walk them 4 times a year, living near a big Greenbelt.
A few months ago my Female started doing the same and when i'd catch her she would own a 'sad' look, almost frightened, on her Face. She only could control it so far!
I brought her to the Vet.next afternoon .it Did turn out to be a Bladder Infection, a few days of Meds and no more peeing in the House.
ALSO, some Dogs 'may' do it for Attention!
its because your letting him or he really has to go run him to a vet why dont people just do that
Sometimes dogs will run to the bathroom because of the smells. you can get some kind of odor neutralizer that will eliminate adjectives traces of the urine smell. Another good way is to create a schedule that he will rely on. whip him outside at certain points in the daylight such as every other hour or so. He will get a feel for the times and eventually will learn that those are his times to travel out.
My dog have the sniffles and runny trunk, do you guess it's serious?   How can i train my dog to stop biting relations?   How do I attain my dog to stop destroying my house when I am not domestic?   Would it be alright for a dog to hold a vitamin C tablet?