Locate machine.config (try C:\WINNT\Microsoft.NET\Framework\v1.0.3705\CONFIG). Open machine.config in Notepad or other text editor. Search for this string: "<processmodel" In the processModel element, change userName="machine" to userName="SYSTEM" //这个有些出入,我实际的操作是allowDefinition="MachineToApplication" Save the file and exit. In the Run box (Start > Run) execute this command: iisreset.exe .
Locate machine.config (try C:\WINNT\Microsoft.NET\Framework\v1.0.3705\CONFIG). Open machine.config in Notepad or other text editor. Search for this string: "<processmodel" In the processModel element, change userName="machine" to userName="SYSTEM" //这个有些出入,我实际的操作是allowDefinition="MachineToApplication" Save the file and exit. In the Run box (Start > Run) execute this command: iisreset.exe . ============对,我试过了~~
Open machine.config in Notepad or other text editor.
Search for this string: "<processmodel"
In the processModel element, change userName="machine" to userName="SYSTEM" //这个有些出入,我实际的操作是allowDefinition="MachineToApplication"
Save the file and exit.
In the Run box (Start > Run) execute this command: iisreset.exe .
不过现在解决了,谢谢大家的参与。
我还有个问题,我在对datagrid进行分页的时候,
运行的时候出现“无效的 CurrentPageIndex 值。它必须大于等于 0 且小于 PageCount”,我用调试发现CurrentPageIndex是16进制的,怎么会这样呢
Open machine.config in Notepad or other text editor.
Search for this string: "<processmodel"
In the processModel element, change userName="machine" to userName="SYSTEM" //这个有些出入,我实际的操作是allowDefinition="MachineToApplication"
Save the file and exit.
In the Run box (Start > Run) execute this command: iisreset.exe .
============对,我试过了~~