开发者

Access denied creating App_Data subdirectory

开发者 https://www.devze.com 2023-03-19 03:53 出处:网络
I\'ve created a user from the ASP.NET Configuration I\'m using sql server but I haven\'t created any database for membership.

I've created a user from the ASP.NET Configuration I'm using sql server but I haven't created any database for membership.

I did add this to the config file:

<authentication mode="Forms">
  <forms loginUrl="Login.aspx"></forms>
</authentication>
<authorization>
  <allow users="admin" />
  <deny users="?" />
</authorization>

where admin is the user I did creat. and it works very well localy.

after I have uploded my website I got an error that I have to create an App_Data folder with write permission and add it to my application folder, now I get this :

A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instan开发者_C百科ce Specified)

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.


The above error message that you are getting will only occur on a remote call. It may work locally fine. This is due to the fact that the remote connections are not enabled on the SQL Server surface Area configuration. To accomplish this, please follow below steps:

Make sure your database engine is configured to accept remote connections: • Start > All Programs > SQL Server 2005 > Configuration Tools > SQL Server Surface Area Configuration • Click on Surface Area Configuration for Services and Connections • Select the instance that is having a problem > Database Engine > Remote Connections • Enable local and remote connections • Restart instance

Alternatively, if you are using a named SQL Server instance, make sure you are using that instance name in your connection strings in your ASweb P.NET application • Usually the format needed to specify the database server is machinename\instancename • Check your connection string as well

**

**

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号