Recently, the company used the latest Microsoft enterprise database 5.0 for its projects. during the development process, it often encountered a strange error. It is normal for some machines to have such errors, after the occurrence of several colleagues, the source code of the enterprise database is recorded as follows: the enterprise database itself cannot obtain its own resources, this situation does not occur on some machines or on some machines. It is also strange that the idea of having to change the enterprise database is gone, and the enterprise database has been changed, the original read resource is changed to the direct return value instead of reading. Share it with you. The changes are as follows:
Entlib50src \ blocks \ data \ SRC \ data \ properties \ resources. Designer. CS /// <Summary>
/// Looks up a localized string similar to Password =, Pwd =.
/// </Summary>
Internal Static String Password {
Get {
Return " Password =, Pwd = " ;
}
}
/// <Summary>
/// Looks up a localized string similar to user id =, uid =.
/// </Summary>
Internal Static String Username {
Get {
Return " User ID =, uid = " ;
}
}
Change the places where the two resources are retrieved to the above format and directly return the corresponding value. It is best to change all the resources here.
Otherwise, the errors reported here cannot be found in our project.