C#+Web Runtime Error,这是社么问题啊?

zhouxiaochenchina 2003-09-29 05:54:10
我在本机调试不会有这个问题,一上服务器,就出现这种问题了
说 Runtime Error
...全文
73 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
sixitao 2004-02-20
  • 打赏
  • 举报
回复
我也遇到同样的问题
zhouxiaochenchina 2003-09-29
  • 打赏
  • 举报
回复
具体如下
Runtime Error
Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.

Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".


<!-- Web.Config Configuration File -->

<configuration>
<system.web>
<customErrors mode="Off"/>
</system.web>
</configuration>


Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.


<!-- Web.Config Configuration File -->

<configuration>
<system.web>
<customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
</system.web>
</configuration>


Beginning: Microsoft Visual C# 2008 0 About the Authors 9 Credits 10 Contents 12 Introduction 30 Who This Book Is For 30 How This Book Is Structured 31 What You Need to Use This Book 34 Conventions 34 Source Code 35 Errata 35 p2p.wrox.com 36 Part I: The C# Language 38 Chapter 1: Introducing C# 40 What Is the .NET Framework? 40 What Is C#? 45 Visual Studio 2008 46 Summary 48 Chapter 2: Writing a C# Program 50 The Development Environments 51 Console Applications 55 Windows Forms Applications 61 Summary 66 Chapter 3: Variables and Expressions 68 Basic C# Syntax 69 Basic C# Console Application Structure 71 Variables 73 Expressions 83 Summary 93 Exercises 94 Chapter 4: Flow Control 96 Boolean Logic 96 The goto Statement 106 Branching 107 Looping 115 Summary 127 Exercises 127 Chapter 5: More About Variables 130 Type Conversion 130 Complex Variable Types 140 String Manipulation 155 Summary 160 Exercises 161 Chapter 6: Functions 162 Defining and Using Functions 163 Variable Scope 175 The Main() Function 181 Struct Functions 184 Overloading Functions 185 Delegates 187 Summary 190 Exercises 191 Chapter 7: Debugging and Error Handling 192 Debugging in VS and VCE 193 Error Handling 213 Summary 221 Exercises 221 Chapter 8: Introduction to Object-Oriented Programming 222 What Is Object-Oriented Programming? 223 OOP Techniques 229 OOP in Windows Applications 240 Summary 243 Exercises 243 Chapter 9: Defining Classes 246 Class Definitions in C# 246 System.Object 253 Constructors and Destructors 255 OOP Tools in VS and VCE 260 Class Library Projects 266 Interfaces Versus Abstract Classes 270 Struct Types 272 Summary 275 Exercises 276 Chapter 10: Defining Class Members 278 Member Definitions 278 Additional Class Member Topics 291 Interface Implementation 294 Partial Class Definitions 299 Partial Method Definitions 301 Example Application 302 Summary 313 Exercises 313 Chapter 11: Collections, Comparisons, and Conversions 314 Collections 314 Comparisons 340 Conversions 363 Summary 365 Exercises 366 Chapter 12: Generics 368 What Is a Generic? 368 Using Generics 370 Defining Generics 388 Summary 405 Exercises 405 Chapter 13: Additional OOP Techniques 408 The :: Operator and the Global Namespace Qualifier 408 Custom Exceptions 410 Events 412 Expanding and Using CardLib 426 Summary 434 Exercises 435 Chapter 14: C# 3.0 Language Enhancements 436 Initializers 437 Type Inference 443 Anonymous Types 445 Extension Methods 449 Lambda Expressions 455 Summary 466 Exercises 467 Part II: Windows Programming 468 Chapter 15: Basic Windows Programming 470 Controls 471 The Button Control 477 The Label and LinkLabel Controls 480 The TextBox Control 481 The RadioButton and CheckBox Controls 491 The RichTextBox Control 498 The ListBox and CheckedListBox Controls 506 The ListView Control 512 The TabControl Control 523 Summary 528 Exercises 529 Chapter 16: Advanced Windows Forms Features 530 Menus and Toolbars 531 Toolbars 538 SDI and MDI Applications 549 Creating Controls 561 Summary 572 Exercises 572 Chapter 17: Using Common Dialogs 574 Common Dialogs 574 How to Use Dialogs 576 File Dialogs 577 Printing 596 Print Preview 612 FontDialog and ColorDialog 614 Summary 618 Exercises 619 Chapter 18: Deploying Windows Applications 620 Deployment Overview 620 ClickOnce Deployment 621 Visual Studio Setup and Deployment Project Types 634 Microsoft Windows Installer Architecture 635 Creating an Installation Package for the SimpleEditor 639 Building the Project 654 Installation 654 Summary 659 Exercises 660 Part III: Web Programming 662 Chapter 19: Basic Web Programming 664 Overview 665 ASP.NET Runtime 665 Creating a Simple Page 666 Server Controls 673 Event Handlers 674 Input Validation 679 State Management 683 Authentication and Authorization 689 Reading and Writing to an SQL Server Database 697 Summary 706 Exercises 707 Chapter 20: Advanced Web Programming 708 Master Pages 708 Site Navigation 716 User Controls 717 Profiles 720 Web Parts 725 JavaScript 738 Summary 744 Exercises 745 Chapter 21: Web Services 746 Before Web Services 747 Where to Use Web Services 748 Web Services Architecture 751 Web Services and the .NET Framework 754 Creating a Simple ASP.NET Web Service 757 Testing the Web Service 759 Implementing a Windows Client 761 Calling the Service Asynchronously 765 Implementing an ASP.NET Client 768 Passing Data 769 Summary 773 Exercises 774 Chapter 22: Ajax Programming 776 Ajax Overview 776 Update Panel 778 Timer Control 783 Update Progress 784 Web Services 786 Extender Controls 792 Summary 794 Exercises 794 Chapter 23: Deploying Web Applications 796 Internet Information Services 796 IIS Configuration 797 Copying a Web Site 800 Publishing a Web Site 802 Windows Installer 804 Summary 809 Exercises 810 Part IV: Data Access 812 Chapter 24: File System Data 814 Streams 815 The Classes for Input and Output 815 Serialized Objects 842 Monitoring the File Structure 847 Summary 855 Exercises 855 Chapter 25: XML 856 XML Documents 856 Using XML in Your Application 865 Summary 884 Exercises 885 Chapter 26: Introduction to LINQ 886 LINQ Varieties 887 First LINQ Query 887 Using the LINQ Method Syntax and Lambda Expressions 892 Ordering Query Results 895 orderby Clause 897 Ordering Using Method Syntax 897 Querying a Large Data Set 899 Aggregate Operators 902 Querying Complex Objects 905 Projection: Creating New Objects in Queries 909 Projection: Method Syntax 912 Select Distinct Query 912 Any and All 914 Ordering By Multiple Levels 916 Multi-Level Ordering Method Syntax: ThenBy 918 Group Queries 918 Take and Skip 920 First and FirstOrDefault 923 Set Operators 924 Joins 928 Resources and Further Reading 929 Summary 930 Exercises 930 Chapter 27: LINQ to SQL 932 Object -Relational Mapping (ORM) 933 Installing SQL Server and the Northwind Sample Data 933 First LINQ to SQL Query 935 Navigating LINQ to SQL Relationships 944 Drilling Down Further with LINQ to SQL 948 Grouping, Ordering, and Other Advanced Queries in LINQ to SQL 951 Displaying Generated SQL 954 Data Binding with LINQ to SQL 958 Updating Bound Data with LINQ to SQL 965 Summary 966 Exercises 967 Chapter 28: ADO.NET and LINQ over DataSet 970 What Is ADO.NET? 971 Overview of ADO.NET Classes and Objects 974 Reading Data with the DataReader 977 Reading Data with the DataSet 985 Updating the Database 989 Accessing Multiple Tables in a DataSet 1002 XML and ADO.NET 1010 SQL Support in ADO.NET 1014 Using LINQ over DataSet with ADO.NET 1022 Summary 1027 Exercises 1027 Chapter 29: LINQ to XML 1030 LINQ to XML Functional Constructors 1031 Saving and Loading an XML Document 1035 Working with XML Fragments 1039 Generating XML from LINQ to SQL 1041 How to Query an XML Document 1046 Summary 1053 Exercises 1053 Part V: Additional Techniques 1054 Chapter 30: Attributes 1056 What Is an Attribute? 1056 Reflection 1060 Built-in Attributes 1063 Custom Attributes 1075 Summary 1083 Chapter 31: XML Documentation 1086 Adding XML Documentation 1087 Making Use of XML Documentation 1105 Summary 1110 Exercises 1110 Chapter 32: Networking 1112 Networking Overview 1112 Networking Programming Options 1120 WebClient 1121 WebRequest and WebResponse 1123 TcpListener and TcpClient 1133 Summary 1141 Exercises 1142 Chapter 33: Introduction to GDI+ 1144 Overview of Graphical Drawing 1145 Drawing Lines Using the Pen Class 1156 Drawing Shapes Using the Brush Class 1159 Drawing Text Using the Font Class 1161 Drawing Using Images 1165 Advanced Capabilities of GDI+ 1175 Summary 1177 Exercises 1178 Chapter 34: Windows Presentation Foundation 1180 What Is WPF? 1181 Anatomy of a Basic WPF Application 1185 WPF Fundamentals 1197 Programming with WPF 1237 Summary 1249 Exercises 1250 Chapter 35: Windows Communication Foundation 1252 What Is WCF ? 1253 WCF Concepts 1254 WCF Programming 1258 Summary 1282 Exercises 1283 Chapter 36: Windows Workflow Foundation 1284 Activities 1288 The Workflow Runtime 1303 Data Binding 1310 Summary 1315 Index 1316

110,500

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Web++
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧