GEMMA
|
| Posted: 02/18/2002, 8:53 PM |
|
i just started working with asp.net.But the gerated code by cc is not running in my xp server. it gives error " Server Error in '/' Application." in web.config in Line 37: <authentication mode="None" />
Secondly if i remove this from web.config
it still gives error in default.aspx
Parser Error Message: 'Ledger.Default' is not a valid type.
Source Error:
Line 1: <%@ Page language="c#" Codebehind="Default.cs" AutoEventWireup="false" Inherits="Ledger.Default" %><%@ Register TagPrefix="CC" TagName="Header" Src="Header.ascx" %>
I m using .NET beta 2
plz help me.
|
|
|
 |
atif
|
| Posted: 02/18/2002, 9:05 PM |
|
I hav exactly the same problem
any one having little idea about that error
|
|
|
 |
Saurabh
|
| Posted: 02/19/2002, 12:33 AM |
|
There are a couple of things that you need to keep in mind before you start working on ASP.NET applications..
1) Currently CC generates code as per .NET Beta2 .. you need to have ASP.NET Beta2 installed on the server.
2) Each directory you output your code to should be converted into a Virtual Directory. For example if you generate your project to c:\InetPub\wwwroot\MyApp
Then, you should convert the MyApp directory into a Virtual Directory. Go to Control Panel -> Administrative Tools -> Internet Information Manager and then Select "Create New Virtual Directory". Compelete the Wizard, with default options and it should be enough for general applications.
3) After you 'Generate' the code from CC you need to compile the code, since CC uses the ASP.NET's recomended CodeBehind way of generating ASP.NET applications, you need to compile the application. Go to the directory where you generated the project and you will find a batch file called 'makeall.bat'. Run this file and it will auto-compile the assemblies for you. In case you have Visual Studio.NET (VS.NET), CC also by default output's code in VS.NET format, so that you can click on the <ProjectName>.csproj file to open the project in VS.NET and then build it.
Once you compelete the above steps your applications should work correctly!!
|
|
|
 |
|