ASP. NET debugging error:

Source: Internet
Author: User

1Error message: request failed due to HTTP status 401: Access Denied
Solution: on the IIS Information Server, hook anonymous access and allow IIS control passwords

2The following code snippet error prompt is:
Exception details: system. argumentexception: datatable already belongs to another Dataset
Datatable dtsubreqinfo = new datatable ();
Dtsubreqinfo = (datatable) session [This. strsubreqsessionname];
Dataset dssubreqinfo = new dataset ();
Dssubreqinfo. Tables. Add (dtsubreqinfo );
Changed:
Datatable dtsubreqinfo = new datatable ();
Dtsubreqinfo = (datatable) session [This. strsubreqsessionname];
Dataset dssubreqinfo = new dataset ();
Dssubreqinfo. Tables. Add (dtsubreqinfo. Copy ());

3. Analyzer error message: failed to load type :( from: sadier)
A.Solution:
Follow these steps:
1. Check if the program you modified last time has not been compiled? If the code is not compiled, modify the error code.
2. Delete the DLL files under the original Bin (delete the DLL files generated by the program, do not delete the referenced DLL files)
3. In vs. net, select "generate"> "regenerate SOLUTION ". Then run the task again to check whether the task is successful.
4. if the root namespace of the Project is changed, for example, xiaoniuge. microcms, and the current project is in version management status, you should use NotePad to open global. in the asax file, change the microcms to xiaoniuge. microcms.
5. when. aspx or. when the ascx file is excluded from the project and some pages need to call this file, this error is also generated. In this case, you can include this file in the project, then you can recompile it.
B.Solution: Set the program directory to a virtual directory

4. Oracle 10g connection error:
A. Unable to load DLL (OCI. dll ).
B. 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.
Original article:
When you install your Oracle client (whatever it might be) Make sure to install the Administrator option. in 9.2.0.1.0, it was about 500 mb. this installall the correct files you need, including OCI. DLL. this shoshould be similar for most Oracle client versions.

After it is done, give iuser/IWAM these permissions on Oracle (for me, it was D: \ oracle \, no need to go any further ):
* Read & Execute
* List folder contents
* Read

Restart 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.

The above applies to the operating system win2000. XP may be somewhat different, but the method is the same.

5. An error occurred while opening the ASP. NET project. The error message is "http:/1.1 403 Forbidden ".
Solution: Re-register IIS, aspnet_regiis-I

6An error occurred while exporting an Excel table in. ASP. NET. error message: you cannot read only files. excelfilename.xls ".
The object that caused the error: Microsoft Excel
Information on the call Stack: at Excel. workbookclass. savecopyas (Object filename)
Solution: Add the "Everyone/write" permission to the file corresponding to the virtual directory.

7Compiler error message:Cs0006: the metadata file "C: \ winnt \ microsoft.net \ framework \ v1.1.4322 \ temporary Asp.net files \ lq_webui \ 39ec39c1 \ Users \ Assembly \ dl2 \ 832ab040 \ Users \ activereports. viewer. DLL"

Solution:
Execute aspnet_regiis-I

8Error message: Server Error in '/lqsh' application.
--------------------------------------------------------------------------------

Debugging is not supported under current trust level settings.

 Solution:"Debugging is not supported under current trust level settings"Is what you will get when you have installed Windows SharePoint services using all the defaults and want to debug your web application or service.

To solve this you must first exclude the virtual directory hosting the application from WSS management by using the WSS administration tool. then insert <trust level = "full" originurl = ""/> in your web. config.

We can also go to IIS and change the application pool from mssharepointapppool to defaappapppool.

9Error message: OCI-22053: overflow error
Some error messages are caused by data overflow because Division operations cannot be performed.
Solution: Use the Oracle trunc () function to remove unnecessary decimal places.

10System. unauthorizedaccessexception: access is denied.
When importing data to excel, you must call Microsoft Excel components on the server side,
The server must be required to install Excel, and certain access permissions must be required to grant the write permission to the web directory.
Solution
: You can try to add the following line in Web. config to solve this problem.
<Identity impersonate = "true" username = "youradminusr" Password = "youradminpwd"/>

11When using oledb to read excel, if the following error occurs: system. Data. oledb. oledbexception: unspecified error
It is very likely that the following sentence is added in Web. config: <identity impersonate = "true"/>.
Note: When an Excel file is stored in an NTFS partition, the system reports "no access permission ". You can store the Excel file in the FAT32 partition.

12Error message: system. Data. oledb. oledbexception: the Microsoft Jet Database Engine cannot open the file ''. It has been opened exclusively by another user or has no permission to view data.

13Error: the project you are trying to open is a web project. You need to specify its "url" path to open it.
Solution:
1. If the project contains the file project name. csproj. webinfo, use the note to open it. Modify
<Visualstudiouncweb>
<Web urlpath =Http: // localhost/project folder name/Project. csproj "/>
</Visualstudiouncweb>
2. If the project does not contain the file project. csproj. webinfo, create a notepad and copy the following code.
<Visualstudiouncweb>
<Web urlpath = http: // localhost/project folder name/Project. csproj "/>
</Visualstudiouncweb>
Modify the suffix to project. csproj. webinfo.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.