查看: 927|回复: 4
|
.net 2.0 Dataset在localhost可以但是放上網就不能跑了﹖
[复制链接]
|
|
我create 了一個file dataset1.xsd,在自己電腦跑沒問題﹐但是放上webserver就出現以下的問題﹐有誰能幫幫忙給我一點意見嗎﹖謝謝
Server Error in '/mdownload' Application. The type specified in the TypeName property of ObjectDataSource 'ObjectDataSource1' could not be found. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.InvalidOperationException: The type specified in the TypeName property of ObjectDataSource 'ObjectDataSource1' could not be found.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. |
|
|
|
|
|
|
|
|
发表于 7-11-2007 04:51 PM
|
显示全部楼层
dataset1.xsd 是放在 App_Code 里吗? |
|
|
|
|
|
|
|

楼主 |
发表于 9-11-2007 09:40 AM
|
显示全部楼层
原帖由 阿牙木 于 7-11-2007 04:51 PM 发表 
dataset1.xsd 是放在 App_Code 里吗?
是.................. |
|
|
|
|
|
|
|
发表于 11-11-2007 08:45 PM
|
显示全部楼层
我找到这个,不懂能不能帮到你
Issue 5: Converting the Personal Web Site Starter Kit (Visual Basic)(This issue applies only when using Visual Basic.) When converting the Visual Basic version of the Personal Web Site starter kit to a Web application project, you will see a run-time error similar to the following:
Server Error in '/' ApplicationThe type specified in the TypeName property of ObjectDataSource 'ObjectDataSource1' could not be found
To resolve the error, you must add the project namespace to the TypeName property. Assuming your project namespace is "wap1", follow these steps.
- Open the Member_List.aspx page.
- Change the type name in the ObjectDataSource declaration to be fully qualified, as in the following example:
<asp:ObjectDataSource TypeName="wap1.MemberDetails" >
[ 本帖最后由 黑血球 于 11-11-2007 08:48 PM 编辑 ] |
|
|
|
|
|
|
|

楼主 |
发表于 12-11-2007 01:30 PM
|
显示全部楼层
|
|
|
|
|
|
| |
本周最热论坛帖子
|