vs2010中运行正常,IIS中运行出错!(急)
在数据库 'master' 中拒绝了 CREATE DATABASE 权限。
尝试为文件 D:\wwwroot\App_Data\MYDB.MDF 附加自动命名的数据库,但失败。已存在同名的数据库,或指定的文件无法打开或位于 UNC 共享目录中。
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Data.SqlClient.SqlException: 在数据库 'master' 中拒绝了 CREATE DATABASE 权限。
尝试为文件 D:\wwwroot\App_Data\MYDB.MDF 附加自动命名的数据库,但失败。已存在同名的数据库,或指定的文件无法打开或位于 UNC 共享目录中。
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
大家帮我看看什么问题?