域名为:http://www.haoweishiye.com,
用的是vs2008 开发的,连接数据库为虚拟主机上的mysql数据库
发布上去,现在打开首页就报错,显示是web.config配置出错。
不清楚是什么原因?
我在本地发布的时候都是正常的。
求解答!谢谢了  

解决方案 »

  1.   

    报的什么错?
    web.config 种的数据库连接字符串要配置到服务器的IP地址
      

  2.   

    原来是服务器用的framework版本太低而造成的!
      

  3.   

    现在就是页面css出错了,路径应该怎么写?本地的时候直接css/style.css 就行了 因为都是在根目录下面的       其他页面用了母版页  css的路径应该怎么写?
      

  4.   

    http://aspnet.4guysfromrolla.com/images/ChooseVersion.gif
      

  5.   

    现在页面CSS样式出错,本地都能正常显示的效果   上传上去,出现现在的效果了,全都乱了,应该怎么弄?
    <link href="http://www.haoweishiye.com/css/layout.css" rel="stylesheet" type="text/css" />
    CSS引用都已经这样写了   还会出错?
      

  6.   

    会不会是虚拟主机设置的原因,导致不能识别css样式中的div那些!
      

  7.   


    一般不会的,虚拟主机就是放网站的,如果连css都不能正确解析,那谁还用啊。
    一般情况下,都是自己的问题
      

  8.   

    先单独下载http://www.haoweishiye.com/css/layout.css看看能不能下载到正确的内容。
      

  9.   

    能下载到正确的内容的
    使用IE6.0就会出现兼容性问题  
    使用IE8.0或者FireFox就能正常显示了,怎样同时兼容IE6.0   IE8.0  FireFox?
    有高手能帮我CSS改一下吗?
    使它能同时兼容IE8.0和IE6.0@charset "utf-8";
    body { font-family:Verdana; 
    font-size:12px; /*documentС*/
    margin:0; 
    line-height:150%;}#container {margin:0 auto; 
    width:950px;}
    #header { height:150px; 
    background:#6cf; 
    margin-bottom:5px;}
    #menu { 
    }
    .menu{
    height:30px; 
    margin-bottom:5px;
    background-image : url(../images/header_bg.gif);
    background-repeat : repeat-x;
    color : #ffffff;
    text-align:center;
      line-height:30px;   
      overflow:hidden;  
    align:center;
    width:950px;
    height:30px; 
    font-size:13px; 
    font-weight:700; 
    padding:0px; 
    margin:0px; 
    position:relative; 
    z-index:99;
    }
    .menu ul ul {visibility:hidden;position:absolute;left:3px;top:23px; z-index:100;}   
    .menu table {position:absolute; top:0; left:0; z-index:100;}   
    .menu ul li:hover ul,.nav ul a:hover ul{visibility:visible;} 
    .menu ul{ padding:0px; margin:0px;list-style-type:none;}
    .menu a{ color:#333; text-decoration:none; display:block;}
    .menu a:hover{ color:#360; text-decoration:none;}
    .one{ 
    width:135px; 
    height:35px; 
    line-height:35px; 
    padding-bottom:2px; 
    text-align:center; 
    color:#fff; 
    float:left;
    }.one a{ 
    color:#fff;
    }
    .one a:hover{ 
    color:#333; 
    text-decoration:none;
    }
    #mainContent {}
    .sidebar { float:left; 
    width:220px; 
    margin-bottom:5px;
    border:0px solid #6699cc;
    }
    .sidebar_Border{
    border: 1px solid #6699cc;
    margin:0 auto;
    }.adminsidebar { float:left; 
    width:150px; 
    margin-bottom:5px;
    border:0px solid #6699cc;
    }
    .adminsidebar_Border{
    border: 1px solid #6699cc;
    margin:0 auto;
    }
    .content { float:right;
    width:720px; 
    background:#cff; 
    margin:0 auto;
    margin-bottom:5px;
    margin:0 auto;
    border:1px solid #6699cc;
    }/*Ϊǹ̶ȣҸЧie 3bug*/
    .admincontent { float:right;
    width:780px; 
    background:#cff; 
    margin:0 auto;
    margin-bottom:5px;
    margin:0 auto;
    border:1px solid #6699cc;
    }/*Ϊǹ̶ȣҸЧie 3bug*/#footer { 
    background:#6cf;
    width:100%;
    }
    .clearfloat { clear:both; 
    height:0; 
    font-size: 1px; 
    line-height: 0px;}
    .div_Title{
    text-valign:middle;
    background-image : url(../images/header_bg.gif);
    background-repeat : repeat-x;
    color : #ffffff;
    text-align:left;
     height:30px;   
      line-height:30px;   
      overflow:hidden;  
    }
    /*ģΧ߿*/
    .div_Border{
    border: 1px solid #6699cc;
    margin:0 auto;
    width:675px;
    }.div_body ul,ol{
    padding:4px 0;
    margin:0;
    overflow:hidden;
    }.div_body ul li{
    list-style:none; 
    margin-left:0px;
    padding:0;
    }
    a{
    text-decoration:none;
    }
    /*ʽ*/
    a:link{
    text-decoration:none;}
    /*ʽ*/a:hover{
    text-decoration:underline;
    }