Preheat oven to 400ºF (200ºC).
Melt the butter in a saute pan over medium heat, add the onions and celery, saute until they begin to soften, then add mushrooms.
Cook until all the vegetables have softened, remove from the heat, and set aside.
Place the cubed bread into a large bowl, then add the mushroom mixture, and mix well.
Add the chicken stock, cranberries, dill weed, thyme, sage, parsley, pepper and salt.
Mix all ingredients well and pour into a 9 inch casserole dish, and bake in a preheated oven for 30 minutes.