Asp.net| Solution
1 Error message: Request failed for HTTP State 401: Access Denied
Workaround: On the IIS information Server, anonymous access and allow IIS to control the password on the hook
2 The following code snippet error is prompted:
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);
To
DataTable dtsubreqinfo = new DataTable ();
Dtsubreqinfo = (DataTable) session[this.strsubreqsessionname];
DataSet Dssubreqinfo = new DataSet ();
DSSUBREQINFO.TABLES.ADD (Dtsubreqinfo.copy ());
3. Parser Error message: Failed to load Type: (excerpt: Sadier)
A. Workaround:
Please follow the steps below to resolve:
1. Look at the last time you modified the program, is not compiled through? If no compilation passes, modify the wrong code.
2. Delete the DLL file under the original bin (delete the DLL file generated by the program, do not delete the referenced DLL file)
3. In vs.net, select "Build"-> "Rebuild Solution". Then, rerun to see if it succeeds.
4. If you change the root namespace of the project, such as Xiaoniuge. Microcms, while the current project is in version management State, that should use Notepad to open the Global.asax file, the Microcms modified to Xiaoniuge.microcms can.
5. This error occurs when an. aspx or. ascx file in your project is excluded from the project, and some pages need to invoke the file, so you can include the file in the project and recompile it.
B. Workaround: Set the program directory to virtual directory
4. Error connecting Oracle 10G:
A. Unable to load DLL (oci.dll).
B.could not create a environment:ocienvcreate returned-1.
Solve one:
The main focus is to give asp.net or iuser_ the read and write permissions of the Oracle home directory oracle\. and IWAM_., restart the computer.
Original:
When you install your Oracle Client (whatever it might is) make sure to install the Administrator option. In 9.2.0.1.0, it is about MB. This is installs all the correct files for you need, including Oci.dll. This should is similar for most Oracle client versions.
After it's done, give Iuser/iwam this permissions on Oracle (for me, it being D:\Oracle\, no need to go any further):
* Read&execute
* List Folder Contents
* Read
Restart computer.
Solution Two:
Open Web Properties in IIS--Home directory--Execute permissions change to-scripts and executables;
-Application Pool "change to-mssharepointapppool", refresh OK;
Solve three:
Folder permissions can be used without control.
The method for setting the Oracle_home variable is as follows
Control Panel >> System >> Advanced >> environment variable >> system variable >> new system variable
Variable name write Oracle_home
The value of the variable adds the actual Oracle_home path, in the registry
This applies to operating system Win2000. XP may be a little different, but the method is the same.
5. Open asp.net project error, hint: http:/1.1 403 Forbidden
WORKAROUND: Re-register Iis,aspnet_regiis-i
6.ASP. NET Export Excel table error message: Unable to access read-only file "Excelfilename.xls".
The object that caused the error: Microsoft Excel
Information on the call stack: at Excel.WorkbookClass.SaveCopyAs (Object Filename)
Workaround: Add "everyone/write" permission to the file corresponding to the virtual directory.
7 Compiler Error Message: CS0006: Failed to find metadata file "c:\winnt\microsoft.net\framework\v1.1.4322\temporary asp.net files\lq_webui\39ec39c1\ A6fc1b27\assembly\dl2\832ab040\002db685_5b59c201\activereports.viewer.dll "
Workaround:
Execute Aspnet_regiis-i
8 Error message: Server error in '/lqsh ' application.
--------------------------------------------------------------------------------
Debugging is isn't supported under current trust level settings.
Workaround: "Debugging is isn't supported under current trust level settings" are what you'll get when you have installed Windows Sharepoint Services using the defaults and want to debug your Web application or service.
To solve this is you must the exclude of the Virtual Directory hosting the application from WSS management by using the WSS ad Ministration 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 DefaultAppPool.
9 Error message: Oci-22053:overflow error
Some error messages are due to the inability to perform division operations, resulting in data overflow.
WORKAROUND: Use the Oracle Trunc () function to truncate the extra decimal places.
10system.unauthorizedaccessexception: Access denied.
When implementing the data to Excel, call Microsoft's Excel component on the server side,
You must require that you install Excel on the server side, and require certain access permissions to give the Web directory writable permissions.
Workaround: You can try adding the following line to the Web.config to resolve the problem
<identity impersonate= "true" Username= "Youradminusr" password= "Youradminpwd"/>
11 when reading Excel using OLE DB if: System.Data.OleDb.OleDbException: Unspecified error
It is possible that there is a Web.config: <identity impersonate= "true"/>.
Note: When the read Excel file is stored in an NTFS partition, the error "No access" is read. Excel can be stored in the FAT32 partition.
12 error message: System.Data.OleDb.OleDbException:Microsoft Jet Database engine does not open file '. It has been opened exclusively by another user or does not have permission to view the data.