我的网站域名是:http://www.tan_two.com
工程在本地测试没有任何的问题,但是上传到服务器就出问题了,叫服务器商解决人家说不在人家服务范围内,小弟只能求助各位了
下面是web.config的链接
<?xml version="1.0"?>
<!-- 注意: 除了手动编辑此文件以外,您还可以使用 Web 管理工具来
配置应用程序的设置。可以使用 Visual Studio 中的“网站”->“ASP.NET 配置”
选项。
设置和注释的完整列表在
machine.config.comments 中,该文件通常位于 \Windows\Microsoft.NET\Framework\v2.0.xxxxx\Config 中
-->
<configuration>
<appSettings>
<add key="TanTu" value="Data Source=61.155.154.168;Initial Catalog=TanTu;Persist Security Info=True;uid=WU146415 ;pwd=ljl43h"/>
<!-- 允许上传的图片格式类型 -->
<add key="ImageType" value=".jpg;.bmp;.gif;.png;.jpeg"/>
</appSettings>
<connectionStrings/>
<system.web> <!--
设置 compilation debug="true" 将调试符号插入已编译的页面中。
但由于这会影响性能,因此只在开发过程中将此值设置为 true。
-->
<compilation debug="false">
<assemblies>
<add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
</assemblies>
</compilation>
<!--
通过 <authentication> 节可以配置 ASP.NET 使用的
安全身份验证模式,以标识传入的用户。
-->
<authentication mode="None"/>
<!--
如果在执行请求的过程中出现未处理的错误,则通过 <customErrors> 节
可以配置相应的处理步骤。具体说来,开发人员通过该节可以
配置要显示的 html 错误页以代替错误堆栈跟踪。
-->
<customErrors mode="Off" defaultRedirect="~/isRow.htm"> <error statusCode="404" redirect="~/isRow.htm" />
<error statusCode="500" redirect="~/isRow.htm" />
</customErrors>
<!--
文字格式规定 utf-8 格式
-->
<globalization requestEncoding="utf-8" fileEncoding="utf-8"></globalization>
<!--
完全限定客户端重定向的 URL
有些移动设备要求对客户端重定向的 URL 进行完全限定。
-->
<httpRuntime useFullyQualifiedRedirectUrl="true"/>
<!--
指定无 Cookie 的数据字典类型
这将使字典内容出现在本地请求 url 查询字符串中。
这是在无 Cookie 的设备上进行 Forms 身份验证所必需的。
-->
<mobileControls cookielessDataDictionaryType="System.Web.Mobile.CookielessData"/>
<deviceFilters>
<filter name="isJPhone" compare="Type" argument="J-Phone"/>
<filter name="isHTML32" compare="PreferredRenderingType" argument="html32"/>
<filter name="isWML11" compare="PreferredRenderingType" argument="wml11"/>
<filter name="isCHTML10" compare="PreferredRenderingType" argument="chtml10"/>
<filter name="isGoAmerica" compare="Browser" argument="Go.Web"/>
<filter name="isMME" compare="Browser" argument="Microsoft Mobile Explorer"/>
<filter name="isMyPalm" compare="Browser" argument="MyPalm"/>
<filter name="isPocketIE" compare="Browser" argument="Pocket IE"/>
<filter name="isUP3x" compare="Type" argument="Phone.com 3.x Browser"/>
<filter name="isUP4x" compare="Type" argument="Phone.com 4.x Browser"/>
<filter name="isEricssonR380" compare="Type" argument="Ericsson R380"/>
<filter name="isNokia7110" compare="Type" argument="Nokia 7110"/>
<filter name="prefersGIF" compare="PreferredImageMIME" argument="image/gif"/>
<filter name="prefersWBMP" compare="PreferredImageMIME" argument="image/vnd.wap.wbmp"/>
<filter name="supportsColor" compare="IsColor" argument="true"/>
<filter name="supportsCookies" compare="Cookies" argument="true"/>
<filter name="supportsJavaScript" compare="Javascript" argument="true"/>
<filter name="supportsVoiceCalls" compare="CanInitiateVoiceCall" argument="true"/>
</deviceFilters>
</system.web>
</configuration>
这个弄不好,我上个公司老板不给我发工资
工程在本地测试没有任何的问题,但是上传到服务器就出问题了,叫服务器商解决人家说不在人家服务范围内,小弟只能求助各位了
下面是web.config的链接
<?xml version="1.0"?>
<!-- 注意: 除了手动编辑此文件以外,您还可以使用 Web 管理工具来
配置应用程序的设置。可以使用 Visual Studio 中的“网站”->“ASP.NET 配置”
选项。
设置和注释的完整列表在
machine.config.comments 中,该文件通常位于 \Windows\Microsoft.NET\Framework\v2.0.xxxxx\Config 中
-->
<configuration>
<appSettings>
<add key="TanTu" value="Data Source=61.155.154.168;Initial Catalog=TanTu;Persist Security Info=True;uid=WU146415 ;pwd=ljl43h"/>
<!-- 允许上传的图片格式类型 -->
<add key="ImageType" value=".jpg;.bmp;.gif;.png;.jpeg"/>
</appSettings>
<connectionStrings/>
<system.web> <!--
设置 compilation debug="true" 将调试符号插入已编译的页面中。
但由于这会影响性能,因此只在开发过程中将此值设置为 true。
-->
<compilation debug="false">
<assemblies>
<add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
</assemblies>
</compilation>
<!--
通过 <authentication> 节可以配置 ASP.NET 使用的
安全身份验证模式,以标识传入的用户。
-->
<authentication mode="None"/>
<!--
如果在执行请求的过程中出现未处理的错误,则通过 <customErrors> 节
可以配置相应的处理步骤。具体说来,开发人员通过该节可以
配置要显示的 html 错误页以代替错误堆栈跟踪。
-->
<customErrors mode="Off" defaultRedirect="~/isRow.htm"> <error statusCode="404" redirect="~/isRow.htm" />
<error statusCode="500" redirect="~/isRow.htm" />
</customErrors>
<!--
文字格式规定 utf-8 格式
-->
<globalization requestEncoding="utf-8" fileEncoding="utf-8"></globalization>
<!--
完全限定客户端重定向的 URL
有些移动设备要求对客户端重定向的 URL 进行完全限定。
-->
<httpRuntime useFullyQualifiedRedirectUrl="true"/>
<!--
指定无 Cookie 的数据字典类型
这将使字典内容出现在本地请求 url 查询字符串中。
这是在无 Cookie 的设备上进行 Forms 身份验证所必需的。
-->
<mobileControls cookielessDataDictionaryType="System.Web.Mobile.CookielessData"/>
<deviceFilters>
<filter name="isJPhone" compare="Type" argument="J-Phone"/>
<filter name="isHTML32" compare="PreferredRenderingType" argument="html32"/>
<filter name="isWML11" compare="PreferredRenderingType" argument="wml11"/>
<filter name="isCHTML10" compare="PreferredRenderingType" argument="chtml10"/>
<filter name="isGoAmerica" compare="Browser" argument="Go.Web"/>
<filter name="isMME" compare="Browser" argument="Microsoft Mobile Explorer"/>
<filter name="isMyPalm" compare="Browser" argument="MyPalm"/>
<filter name="isPocketIE" compare="Browser" argument="Pocket IE"/>
<filter name="isUP3x" compare="Type" argument="Phone.com 3.x Browser"/>
<filter name="isUP4x" compare="Type" argument="Phone.com 4.x Browser"/>
<filter name="isEricssonR380" compare="Type" argument="Ericsson R380"/>
<filter name="isNokia7110" compare="Type" argument="Nokia 7110"/>
<filter name="prefersGIF" compare="PreferredImageMIME" argument="image/gif"/>
<filter name="prefersWBMP" compare="PreferredImageMIME" argument="image/vnd.wap.wbmp"/>
<filter name="supportsColor" compare="IsColor" argument="true"/>
<filter name="supportsCookies" compare="Cookies" argument="true"/>
<filter name="supportsJavaScript" compare="Javascript" argument="true"/>
<filter name="supportsVoiceCalls" compare="CanInitiateVoiceCall" argument="true"/>
</deviceFilters>
</system.web>
</configuration>
这个弄不好,我上个公司老板不给我发工资
解决方案 »
- 求最人性化的防止SQL注入函数 在线等
- 发布网站时候编译器错误信息:CS2018无法找到信息文件' cscui.dll '
- 在chrome中无错!ie8中首次登陆出错,刷新后才能找到session!怎么解决呢?
- 动软代码生成器生成的程序运行不成功
- 页面绑定问题
- 加载配置文件时出错: 由于已经达到网络 BIOS 命令限制
- 在线等,急,用户自定义的问题?
- 有一个很怪的格式问题。。。很急
- 急!!!!!对于不返回任何键列信息的 SelectCommand 不支持 UpdateCommand 的动态 SQL 生成
- 问一个关于Timer控件的问题
- .net 下使用jquery
- 发布的网站 某些页面不能访问 运行后能访问
这些法出来不好吧......看不明白 那错了..
数据库选本机服务器
<add key="TanTu" value="Data Source=(local);Initial Catalog=TanTu;Persist Security Info=True;uid=WU146415 ;pwd=ljl43h"/>
你们试试ping他的IP看看
否则要吃官司的不是开发人员,而是他们所在的公司.
楼主赶紧联系CSDN删帖
再把uid,pwd两个简写完整写成UserId,Password
我试了下 是可以进入的 xp_cmdshell 权限是没有的。