41. Package loading failed
The package "Visual Web Developer Trident designer package" (guid =
{30ae7e28-6c02-496d-8e43-85f7a90aeff1 }. Contact the package supplier for help. We recommend that you restart the application because the environment may be damaged. Do you want to disable future loading of this package? You can use "devenv. reswetskippkgs" to re-enable package loading.
This prompt will be displayed every time you start vs2005...
So after Google, I found that many methods have been tried. Only one solution can be used.
The solution is as follows:
1. Set the system variable vslogactivity = 1
2. Create the activitylog. xml file in the % appdata % \ Microsoft \ visualstudio \ 8.0 \ folder.
3. Copy the gdiplus. dll file from winnt \ microsoft. Net \ framework \ v2.0.xxx to the Program Files \ Visual Studio 8 \ common7 \ packages folder.
4. Run devenv/resetskippkgs on the command line.
Note: this problem only occurs in Win2000, and win2003 does not.
42. User "XXX \ ASPnet Login Failed"
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 "Search now" --> select from the list below. network service user --> click "OK" twice --> join.
Step 2 Add the. network service user in 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" members "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.
For win2003
43. Unable to create/copy the file if "" already exists
Solution: Re-compile the entire project or restart the computer.
44. cocould not create an environment: ocienvcreate returned-1
Solution 1:
It is mainly to grant the read and write permissions of the Oracle main directory oracle \ To Asp.net, iuser _... And IWAM _..., and restart the computer.
Solution 2:
Open Web properties in IIS-home directory-Execute Permission [change to-script and executable file ];
-Change the application pool to-ms1_pointapppool and refresh OK;
Solution 3:
Folder permissions are not required.
The method for setting the ORACLE_HOME variable is as follows:
Control Panel> system> advanced> environment variables> system variables> New System Variables
Enter ORACLE_HOME as the variable name.
Add the actual ORACLE_HOME path to the variable value.
45. Unable to connect because the target machine is actively rejected
After adding the reference, replace all localhost: 2473 with localhost and re-compile.
46. View status can be loaded.
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 and receiving process must match the type and position of the control added during the initial request.
Solution: Add enableviewstate = "false" to the page entry.
46. The call between the following methods or attributes is unclear: "Method1" and "method2"
For implicit conversions, the compiler cannot call some form of the overloaded method. You can use the following methods to correct the error:
Specify the parameters of this method without implicit conversion.
Remove all overloading of this method.
Before calling a method, forcibly convert it to the correct type.
47. Register as allowdefinition = 'machinetoapplication' outside the application level'
Solution: Right-click the virtual directory corresponding to the website, select properties, and click Create after the application name.
[Sub-directories do not inherit the parent attributes, so you must set the Directory attribute of the aspx file correctly]
48. Unrecognized configuration section "connectionstrings"
Cause:
The Asp.net application developed with vs2005 needs to use. NET Framework 2.0, while the default. NET environment in IIS is 1.1. In this case, an unrecognized node will occur.
Solution:
Upgrade the. NET environment to 2.0, start-run-cmd-
C: \ windows \ Microsoft. NET \ framework \ v2.0.50727 \ aspnet_regiis.exe-I
49. Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool. This may have occurred because all pooled connections were in use and Max pool size was reached.
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. invalidoperationexception: timeout expired. the timeout period elapsed prior to obtaining a connection from the pool. this may have occurred because all pooled connections were in use and Max pool size was reached.
The main reasons may be:
1. When a connection pool is used, a large number of sqlconnections are used and the gate is forgotten, causing serious SQL usage. You can check the Stored Procedure exec sp_who.
2. Connection Pool connections are limited
Solution:
1. Release the connection pool and call the close () method of the connection object to close the database connection.
2. Use try catch finally to handle database connection exceptions. When the database cannot be connected, an exception is thrown and an error message is displayed, as shown in the catch code block. In this program, you can close the database connection through the Finally block regardless of whether an exception occurs, thus saving computer resources.
3. Include the sqlconnection object in the using block, so that the program will automatically call the dispose () method to release the system resources occupied by the sqlconnection object. You do not need to use the close () method of the sqlconnection object.
4. Specify the min pool size to indicate the minimum number of connections allowed by the connection pool (0 by default ). The following code specifies that the Max pool size of the sqlconnection object is 10, and the min pool size is 5.
Sqlconnection mysqlconnection = new sqlconnection ("Server = localhost; database = northwind ;")
50. An application error occurs on the server. The current custom error settings of this application Disable remote viewing of detailed information about application errors (for security reasons ). However, you can view it in a browser running on the local server computer.
Details: to enable others to view details of this specific error message on a remote computer, go to the "Web. create a <mermerrors> tag in the config file. Set the "Mode" attribute marked by <customerrors> to "off ".
<! -- Web. config configuration file -->
<Configuration>
<System. Web>
<Customerrors mode = "off"/>
</System. Web>
</Configuration>
Note: Modify the defaultredirect attribute of the <customerrors> Configuration tag of the application to point to the URL of the custom error page, you can use a custom error page to replace the current error page.
<! -- Web. config configuration file -->
<Configuration>
<System. Web>
<Customerrors mode = "remoteonly" defaultredirect = "mypage.html"/>
</System. Web>
</Configuration>
Solution:
Right-click the site and choose "permission", and add the iis_wpg group's read permission.
If you delete IIS and reinstall it, you need to re-register ASP. NET. as follows:
(1) Open CMD and enter c: \ windows \ Microsoft. NET \ framework \ v2.0.50727
(2) Input aspnet_regiis.exe-I
(3) If the problem "failed to create mutex" still persists. Perform the following steps:
A. Open the Start menu and click Run. Enter cmd and run the CD command to enter the c: \ windows \ Microsoft. NET \ framework \ v2.0.50727 directory.
B. Run c: \ windows \ microsoft. Net \ framework \ v2.0.50727> aspnet_regiis.exe-I to install
C. run c: \ windows \ Microsoft. net \ framework \ v2.0.50727> aspnet_regiis-ga administrator begins to grant administrator permissions to access IIS metabase and ASP. other directories used by. net.
51. Error: Why can't IIS be started after it is stopped, and cannot be restarted. An unexpected error occurs: 0x8ffe2704.
Solution:
(1) Check whether port 80 is used by other programs. If other programs are in use, configure another port for the program. Return port 80 to IIS.
(2) Check whether thunder and other download tools are started before IIS starts. If so, turn off thunder and other download tools and restart IIS.
52. Error: HTTP 401.1 HTTP 401.3
After the logon window is displayed, the following error occurs: HTTP Error 401.3-unauthorized: access to requested resources is denied due to ACL settings. Or an HTTP 401.1 error occurs.
Solution:
First, check whether the user password in "using the following Windows user accounts anonymously" in "authentication and access control" is correct, and check your website:
Right-click the application and choose "permission" from the shortcut menu.
If you try this method in the first method, you can check the folder permission settings and add the users permission on Windows.
53. Error: Garbled characters may occur when you browse your entire website.
Solution:
Add the Users Group read permission to drive C windows.
54. Compilation error: Compiler error message: cs0016
Note: An error occurs during compilation of resources required to provide services to this request. Check the following error details and modify the source code as appropriate.
Compiler error message: cs0016: failed to write the output file
"C: \ WINDOWS \ Microsoft. NET \ work \ v1.1.4322 \ temporary ASP. Net files \ Root \ 345513e7 \ 86f1794a \ fvmzvzp7.dll" -- "access is denied ."
Solution:
Add the Users Group's read, write, and modify permissions to temp on drive C windows.
55. Error: Compiler failure, error code 128
Note: An error occurs during compilation of resources required to provide services to this request. Check the following error details and modify the source code as appropriate.
Compiler error message: the compiler fails. The error code is 128.
Solution:
The read permission of the users group should be added to system32 on drive C windows.
Note:
When an ASP. NET error occurs, check whether the ASP. NET environment is correctly set up. For example:
1. Whether to install the corresponding version of the. NET Framework Program, and patch it.
2. Check whether IIS installation is normal, and whether the site path and ASP. NET version are correctly configured.
3. Whether ASP. NET extensions are allowed in IIS Web service extensions.
4. Is there any security protection software that prohibits writing files to Windows and temp folders, such as McAfee.
5. Run the ASP. Net probe to check whether the probe is correct and can meet the current web requirements.
6. Check that IIS is installed on your server, and then the. NET Framework framework is installed, or IIS is re-installed. In the. NET frameworkinstallation directory, find the corresponding. Net runtime framework folder and use aspnet_regiis.exe to register. NET Framework.
As follows:
C: \ windows \ Microsoft. NET \ framework \ v1.1.4322 \ aspnet_regiis.exe-I
If multiple versions of the. NET Framework are installed on the machine, you can use aspnet_regiis.exe to specify the version of the. NET Framework used by an Asp.net application. Take. NET Framework v2.0.50727 as an example.
As follows:
The position of aspnet_regiis.exe is c: \ windows \ Microsoft. NET \ framework \ v2.0.50727 \ aspnet_regiis.exe.
"Start" -- "" Run "--" input: % SystemRoot % \ Microsoft. NET \ framework \ v2.0.50727 \ aspnet_regiis-I
The prompt "Asp.net <2.0.50727> is displayed.