31. The read-only file "*****. *****" cannot be accessed.
Solution:
Add the "Everyone/write" permission to the file corresponding to the virtual directory.
32. Request failed due to HTTP status 401: Access Denied solution: on the IIS Information Server, hook anonymous access and allow IIS control password
33. There is an invalid selectedvalue because it is not in the project list
Cause:
(1) assign a value to dropdownlist1.selectedvalue before the dropdownlist is bound.
(2) The dropdownlist contains null values.
34. Unable to create/copy the file if "" already exists.
Solution: Re-compile the project (re-compile multiple projects), close vs, re-open the project, and restart the machine if necessary.
35. User 'C \ aspnet' failed to log on.
Exception details: system. Data. sqlclient. sqlexception: User 'coo \ aspnet' Logon Failed.
What's going on?
Because the connection string of your program to sqlserver is Windows integrated login, you can change to the database account and password to log on. The connection string is written as follows:
Server = localhost; uid = sa; Pwd = xxxx; database = master;
The server is the name or IP address of the database server. If it is the same machine, you can use localhost
UID is the database login account
PWD is the Database Password
Database is the initial owner name of the database.
Answer:
1. Right-click my computer on the desktop and select "manage ", double-click "group" under "local users and groups" in the "Computer Management" dialog box. In the right window, double-click the "Remote Desktop Users" group, in the displayed "Remote Desktop Users" attribute dialog box, click Add. In the displayed "Add User" dialog box, click "advanced", and then click "Search now, double-click ASPnet in the "Search" result (if it is iis6.0 "networ serverce") and click "OK" twice to add "user"
2. Click Start> All Programs> Microsoft SQL Server> Enterprise Manager and select the database in the console root directory, right-click "user" in the database and select "Create Database User ". In the "new user" dialog box, click the drop-down list box on the right of "Login Name" and select "new" to open the "New Login Dialog Box ". Click the ellipsis on the right of the name. In the displayed dialog box, select "Name of the Local Machine" in "name listed", and then select "Remote Desktop Users" in the Name box below ", click "member", double-click ASPnet (for iis6.0 "networ serverce"), and click "OK, in the "New Login Dialog Box", select the corresponding database name in the "Database" option set by default, and then select the corresponding database under the "database access" option and click OK, add the default anonymous user of Asp.net to SQL
36. User 'nt Authority \ Network service' Login Failed.
1> SQL Server and Windows Verification Mode
2>
(The following method is for reference only)
Step 1: Add 'nt Authority \ Network Service' to the Administrator Group
My computer --> right-click --> Manage --> local users and groups
Select "group" --> double-click "Administrators" --> click "add" --> click "advanced" --> click "find now" --> select a network service user from the list below --> click "OK" --> join twice.
Step 2 Add a netword service user to the Enterprise Manager
Open SQL Server Enterprise Manager --> select database instance --> open "security" node --> select "login" --> right-click the list on the right --> select "New login "--> on the "General" tab, click the button next to "name"... "--> select" Administrators "group --> click the" members "button below --> select" Network Service "--> click" add "--> click" OK ", return to the "New login" dialog box --> ensure that the authentication type is "Windows Authentication" and "Allow access" --> click "OK" --> close "Enterprise Manager"
Step 3
Run the Asp.net program again and select windows for the database connection string.
3> Add an account or iis_wpg workgroup to sqlserver
This method comes from http://www.cnblogs.com/677/archive/2006/11/03/549104.aspx
37. Failed to load view status.
The Control tree in which the view status is being loaded must match the control tree used to save the view status during the previous request. For example, when a control is added dynamically, the control added during the sending back must match the type and position of the control added during the initial request.
Cause: viewstate is used in Asp.net to save the control status. The server will restore the control status after the next post to the server. (The status of the control includes values and events .)
Solution:
(1) Change the viewstate of each usercontrol to false.
(2) add this:
This. Page. enableviewstate = false;
This method comes from: http://www.cnblogs.com/king_astar/archive/2005/06/01/165763.html
38. "The SQL Server user instance cannot be generated due to an error in the process of starting the user instance. The connection will be closed ."
Cause:
This is Microsoft's bug, and Microsoft has admitted, details are as follows: http://support.microsoft.com /? Id = 896613
The condition for this error is that you have used Remote Desktop Connection and installed sql2005 + vs2005, which may trigger this problem, microsoft said it will solve this problem in the future xp sp3.
Solution:
Http://forums.microsoft.com/MSDN/Sho. .. id = 128707 & siteid = 1
If you cannot understand English, I will tell you the solution:
Delete c: \ Documents and Settings \ [username] \ Local Settings \ Application Data \ Microsoft SQL server data \ sqlexpress directory. [username] is the Windows user name, such as administrator.
This problem comes with http://blog.csdn.net/xiong1000/
39. server application unavailable
The Web application you are attempting to access on this web server is currently unavailable. Please hit the "refresh" button in your web browser to retry your request.
Administrator Note: an error message detailing the cause of this specific request failure can be found in the application event log of the Web server. please review this log entry to discover what caused this error to occur.
Solution:
If you are running WINXP/IIS 5.1, in order to give the ASPNET working process the right to access your web project folder, please go to the directory where the website file is located, right-click the level-1 folder, select security-add-type "ASPnet" and click OK or check names. If the pop-up dialog box prompts "name not found", click locations to change the location to the name of the Local Computer and click OK, assign this user permission to "full control" and click OK.
Error changed:
You are not authorized to view this page
You do not have permission to view this directory or page using the credentials you supplied.
Solution:
In IIS, right-click this virtual directory-properties-Directory Security-edit-and select integrated Windows authentication.
40. The timeout has reached.
The timeout time has reached, but the connection has not been obtained from the pool. This may occur because all pool connections are in use and the maximum pool size is reached.
The possible reasons are as follows: concurrent operations, connection is not closed after use, or the datareader connection exclusive connection.
Solution:
1. modify several key pages or frequently accessed database access operations. Use dataadapter and dataset to obtain database data. Do not use datareader.
2. Use the data cache on the page for accessing the database. If the data on the page is not updated frequently (updated several minutes), the cache object can be used without accessing the database, this greatly reduces the number of connections.
3. modify the code and call dispose () after close.
4. We recommend that you modify Database Operations to create your own database operation proxy class, inherit from the system. idisposable interface, and forcibly release resources. In this way, there will be no insufficient connections.