简体   繁体   English

在mojoportal中传输数据库的正确方法是什么?

[英]What is the correct way to transfer database in mojoportal?

I have exported the database from the server and imported it on my local pc. 我已经从服务器导出数据库,并将其导入到本地PC中。 I have changed the connection string in my user.config file. 我已经更改了user.config文件中的连接字符串。 The database is the same. 数据库是相同的。 But after that when I visit any page in my mojoportal project, it shows me an error saying: 但是之后,当我访问mojoportal项目中的任何页面时,它显示出一个错误:

Guid should contain 32 digits with 4 dashes (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx) Guid应包含32个数字和4个破折号(xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx)

Description: An unhandled exception occurred during the execution of the current web request. 说明:执行当前Web请求期间发生未处理的异常。 Please review the stack trace for more information about the error and where it originated in the code. 请查看堆栈跟踪,以获取有关错误及其在代码中起源的更多信息。

Exception Details: System.FormatException: Guid should contain 32 digits with 4 dashes (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx).* 异常详细信息:System.FormatException:Guid应包含32个数字和4个破折号(xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx)。*

Can anyone tell me why this is happening? 谁能告诉我为什么会这样吗? Or how it can be solved? 或如何解决?

I hope you have changed connection string on right place ( Inside portal web.config). 我希望您在正确的位置(在门户网站web.config中)更改了连接字符串。 There are two connection string one for Authentication and another one is for your application. 有两个连接字符串,一个用于身份验证,另一个用于您的应用程序。
Please check that and if it wont work then get the path of error from Stack trace that will tell you which method is throwing an error after that you need to debug that. 请检查,如果它不起作用,则从堆栈跟踪中获取错误的路径,该路径将告诉您之后是哪种方法引发错误,您需要对其进行调试。 (Seems like uniqueidentier field is not properly defined/manged) (似乎uniqueidentier字段未正确定义/管理)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM