Umbraco7.7.7拉取项目后报‘umbracoUser’无效对象名问题求助
Hey there, let's work through this Umbraco + uSync issue you're facing—this is a super common pain point when setting up a team workflow, so I’ve got you covered!
That error pops up because your teammate’s local database doesn’t have the core Umbraco table structure yet. You created your project with a fresh Umbraco install, so your database has all the default Umbraco tables plus your custom document types—but your teammate just pulled the code and pointed to an empty database. Here’s how to fix it:
- First, make sure your teammate has an empty local database created, then update the connection string in
Web.Configto point to this empty DB. - Next, have them start the project. Umbraco will automatically launch its database setup wizard (just like the one you used when you first created the project). Let them walk through that—it’ll create all the core Umbraco tables (including
umbracoUser) that are missing. - Once the setup wizard is done, uSync will kick in (if it’s configured to auto-sync) or they can manually trigger a sync from the Umbraco backoffice. uSync will read the XML config files you committed to Bitbucket and push all your custom document types, data types, and other structure to their local database.
Absolutely not! Sharing a single database across a team is a recipe for disaster—you’ll run into conflicts, accidental data overwrites, and it ties everyone to the same environment. The whole point of using uSync is to let everyone work with their own local database while keeping the Umbraco structure consistent.
uSync acts as a bridge between your code repository and your Umbraco database for structural configuration (not dynamic content). It converts things like:
- Document types and data types
- Templates and partial views
- Media types and member types
- Dictionary items and language settings
into XML files that you commit to Bitbucket. When your teammates pull the code, uSync syncs those XML files into their local databases, so everyone has the exact same Umbraco structure without having to manually recreate everything or share a database.
A quick heads-up: uSync isn’t meant for syncing dynamic content like test pages or uploaded media. That kind of content should stay local to each developer’s database unless you need to migrate specific content to staging/production.
内容的提问来源于stack exchange,提问作者user3857731

