Deleted yiiAssets and cannot recreate it

While trying to fix a caching issue I accidentally deleted the entire yiiAssets directory (/Website/htdocs/yiiAssets). I recreated the directory, gave it all the correct permissions, but I still get the following error on every page:

CAssetManager.basePath "/foo/bar/baz/Website/src/config/../../htdocs/yiiAssets" is invalid. Please make sure the directory exists and is writable by the Web server process.

I’m unsure how to fix the problem. The site runs on Yii 1.1. Thanks for the help.

May be you missing the assets folder in your web root, And if it’s there just set the permissions 777 to writable.

protected/runtime and assets directories must be writable by web server process. If you are using Linux you can chmod 777 these directories