现在的位置: 首页 > 综合 > 正文

发布asp.net website常见症状及其解决方法

2012年07月04日 ⁄ 综合 ⁄ 共 964字 ⁄ 字号 评论关闭

在发布asp.net开发的website的时候,总会遇到各种各样的问题,而这些问题在本机进行开发时候是不会出现的。下面几个是常见的问题

1.sympton

The page cannot be found

The page you are looking for might have been removed, had its name changed, or is temporarily unavailable.


 

Please try the following:

  • Make sure that the Web site address displayed in the address bar of your browser is spelled and formatted correctly.
  • If you reached this page by clicking a link, contact the Web site administrator to alert them that the link is incorrectly formatted.
  • Click the Back button to try another link.

HTTP Error 404 - File or directory not found.
Internet Information Services (IIS)

solution:
    可能是asp.net 的服务没有没有打开。只需要打开iis服务器,选择web services  extension s-> allow asp.net *.*服务即可。

2 symption: Writing data to Access or specified files will be denied!向指定的文件里面写入数据时候,会无法写入。例如Access数据库的更新等等。
    reason:
        iis如果采用anonymous登录方式的话,是使用了IUSER_<Machine_name>来进行的。而default的access acount是没有对文件进行write/update的权限的。这时,我们需要将website相关acount都赋予wirte/update的permission即可。具体操作如下:
        找到需要write/update所在文件夹/文件,点击右健--〉security,然后将相应acount添加到其用户租,并给与其write 权限即可

抱歉!评论已关闭.