Charl Du Toit
|
| Posted: 06/19/2002, 5:55 AM |
|
Hi Guys
I get 2 errors and Im sure they are related. The one when i view the aspx
file and the other is when i run makeall.bat
Thanx in advance
C
C:\Inetpub\wwwroot\contact4>C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\csc
/w:
2 /t:library /out:bin\contact4.dll /define:ODBC_INSTALLED
/r:Microsoft.Data.Odbc
..dll /r:System.dll /r:System.Web.dll /r:System.Xml.dll /r:System.Data.dll
/recur
se:*.cs
Microsoft (R) Visual C# .NET Compiler version 7.00.9466
for Microsoft (R) .NET Framework version 1.0.3705
Copyright (C) Microsoft Corporation 2001. All rights reserved.
contact4\components\NewPage1DataProvider.cs(17,14): error CS0101: The
namespace
'contact4.NewPage1' already contains a definition for 'PageItem'
components\NewPage1DataProvider.cs(17,14): (Location of symbol related to
previous error)
contact4\components\NewPage1DataProvider.cs(28,14): error CS0101: The
namespace
'contact4.NewPage1' already contains a definition for
'PageDataProvider'
components\NewPage1DataProvider.cs(28,14): (Location of symbol related to
previous error)
Global.asax.cs(14,18): error CS0101: The namespace 'contact4' already
contains a
definition for 'Global'
contact4\Global.asax.cs(14,18): (Location of symbol related to previous
error)
NewPage1.aspx.cs(26,14): error CS0101: The namespace 'contact4.NewPage1'
already
contains a definition for 'NewPage1'
contact4\NewPage1.aspx.cs(26,14): (Location of symbol related to previous
error)
C:\Inetpub\wwwroot\contact4>REM _End MakeAll
C:\Inetpub\wwwroot\contact4>
Server Error in '/' Application.
----------------------------------------------------------------------------
----
Parser Error
Description: An error occurred during the parsing of a resource required to
service this request. Please review the following specific parse error
details and modify your source file appropriately.
Parser Error Message: Could not load type 'contact4.NewPage3.NewPage3'.
Source Error:
Line 1: <!--ASPX page @1-096B81C2-->
Line 2: <%@ Page language="c#" Codebehind="NewPage3.aspx.cs"
AutoEventWireup="false" Inherits="contact4.NewPage3.NewPage3" %>
Line 3: <%@ Import namespace="contact4.NewPage3" %>
Line 4: <%@ Import namespace="contact4.Configuration" %>
Source File: c:\inetpub\wwwroot\contact4\NewPage3.aspx Line: 2
----------------------------------------------------------------------------
----
Version Information: Microsoft .NET Framework Version:1.0.3705.0; ASP.NET
Version:1.0.3705.0
|
|
|
 |
Sanddy
|
| Posted: 06/19/2002, 6:49 AM |
|
Which version of CCS are you using ??
If you are not using the final version 1.0.6 (I guess) then get the final
version ...
The error seems to be due to the fact that there are multiple files being
generated ...
Do this ...
1) Go and delete all files where the project has been published ...
i.e. c:\inetpub\wwwroot\<web application directory>
(Caution this is not the directory where you have saved the project!!)
2) Then load the project in CCS, go to View menu -> Message Window, this
will display the project menu if its not already shown ...
3) Now Build the project from CCS, it will automatically publish and
*compile* your project... if there are any compilations errors they will be
shown in the Message window .. you do not need to manually run the
makeall.bat file ..
Let me know if this works for you ....
BTW: Which database are you connecting to ??
CCS Fan,
Sanddy
|
|
|
 |
Charl Du Toit
|
| Posted: 06/19/2002, 6:58 AM |
|
no go
i am using the lates ver of ccs. Sql 2000
Thanks for the help
Regards
"Sanddy" <e_sanddy@yahoo.com> wrote in message
news:aeq25c$51t$1@news.codecharge.com...
> Which version of CCS are you using ??
> If you are not using the final version 1.0.6 (I guess) then get the final
> version ...
>
> The error seems to be due to the fact that there are multiple files being
> generated ...
>
> Do this ...
> 1) Go and delete all files where the project has been published ...
> i.e. c:\inetpub\wwwroot\<web application directory>
> (Caution this is not the directory where you have saved the project!!)
> 2) Then load the project in CCS, go to View menu -> Message Window, this
> will display the project menu if its not already shown ...
> 3) Now Build the project from CCS, it will automatically publish and
> *compile* your project... if there are any compilations errors they will
be
> shown in the Message window .. you do not need to manually run the
> makeall.bat file ..
>
> Let me know if this works for you ....
>
> BTW: Which database are you connecting to ??
>
> CCS Fan,
> Sanddy
>
>
|
|
|
 |
Jaroslav Steigauf
|
| Posted: 06/19/2002, 7:11 AM |
|
I checking it on the base your steps and I have same problem,
I have the latest of ccs and sql 2000.
jaro
"Sanddy" <e_sanddy@yahoo.com> wrote in message
news:aeq25c$51t$1@news.codecharge.com...
> Which version of CCS are you using ??
> If you are not using the final version 1.0.6 (I guess) then get the final
> version ...
>
> The error seems to be due to the fact that there are multiple files being
> generated ...
>
> Do this ...
> 1) Go and delete all files where the project has been published ...
> i.e. c:\inetpub\wwwroot\<web application directory>
> (Caution this is not the directory where you have saved the project!!)
> 2) Then load the project in CCS, go to View menu -> Message Window, this
> will display the project menu if its not already shown ...
> 3) Now Build the project from CCS, it will automatically publish and
> *compile* your project... if there are any compilations errors they will
be
> shown in the Message window .. you do not need to manually run the
> makeall.bat file ..
>
> Let me know if this works for you ....
>
> BTW: Which database are you connecting to ??
>
> CCS Fan,
> Sanddy
>
>
---
Odchadzajuca sprava neobsahuje virusy.
Skontrolované antivírusovým systémom AVG (http://www.grisoft.cz).
Verzia: 6.0.371 / Vírusová databáza: 206 - dátum vydania: 13. 6. 2002
|
|
|
 |
Sanddy
|
| Posted: 06/19/2002, 9:26 AM |
|
By any chance are you using the "Live View" function in CCS ??
If so, can you perform a full *Build* and check the Web Application in
Internet Explorer ??
Since when you use Live View, only that single page is compiled (the one you
want to see), so if you navigate to any futher pages.. they won't show ...
When you perform a Build all pages are compiled....
CCS Fan,
Sanddy
|
|
|
 |
Jean
|
| Posted: 06/22/2002, 1:12 AM |
|
Sanddy,
I have the same problem, when you mention "Build" do you mean "Publish" in
CCS ? I couldn't find any Build function in CCS.
Thanks
Jean
"Sanddy" <e_sanddy@yahoo.com> wrote in message
news:aeqbbm$n0o$1@news.codecharge.com...
> By any chance are you using the "Live View" function in CCS ??
> If so, can you perform a full *Build* and check the Web Application in
> Internet Explorer ??
>
> Since when you use Live View, only that single page is compiled (the one
you
> want to see), so if you navigate to any futher pages.. they won't show ...
> When you perform a Build all pages are compiled....
>
> CCS Fan,
> Sanddy
>
>
|
|
|
 |
Sanddy
|
| Posted: 06/22/2002, 2:42 AM |
|
Opps .. sorry for the confusion ...
Yes, I meant "Publish" ...
Also remember you need to convert your output directory into a Virtual
Directory for ASP.NET applications to work !
CCS Fan,
Sanddy
|
|
|
 |
|