zoukankan      html  css  js  c++  java
  • 发布asp.net website常见症状及其解决方法

    在发布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 权限即可

  • 相关阅读:
    087 类的继承
    086 一切皆对象
    085 对象的绑定方法
    在菜鸟教程学 HTML(一)
    生成输出 URL(16.2)
    创建分部视图(7.6.3)
    显示页面链接(7.5.1)
    NuGet 控制台代码
    浏览器对应用程序的根URL发出请求时所发生的情况(结合 DI)
    第 6 章 —— 依赖项注入(DI)容器 —— Ninject
  • 原文地址:https://www.cnblogs.com/Winston/p/1225803.html
Copyright © 2011-2022 走看看