CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> .NET

 ASP.NET 2.0

Print topic Send  topic

Author Message
cvboucher

Posts: 191
Posted: 05/17/2007, 9:03 PM

I'm trying to upgrade my CodeCharge Studio app from ASP.NET 1.1 to 2.0 but when I generate my app it doesn't seem to compile my .NET code. Under 1.1 I would get the following after generation:

  
Generating Common Files  
Running  
C:\PROGRA~1\CODECH~1\CCResGen.exe \compile C:\DOCUME~1\Craig\LOCALS~1\Temp\~PIECE~3\strings.txt   
=======================================  
Read in 98 resources from 'C:\DOCUME~1\Craig\LOCALS~1\Temp\~PIECE~3\strings.txt'  
Writing resource file...  Done.  
  
=======================================  
Running  
C:\DOCUME~1\Craig\LOCALS~1\Temp\~PIECE~3\MakeAll.bat C: C:\DOCUME~1\Craig\LOCALS~1\Temp\~PIECE~3\  
=======================================  
  
C:\Program Files\CodeChargeStudio3>REM _MakeAll @1-FF3D3F62   
  
C:\DOCUME~1\Craig\LOCALS~1\Temp\~PIECE~3>C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\vbc /rootnamespace:PieceCounter  /t:library /debug- /optimize+ /out:bin\PieceCounter.dll  /imports:System.Data.OracleClient /r:System.Data.OracleClient.dll /imports:Microsoft.VisualBasic,System,System.Web,System.Xml,System.Data,System.Drawing /r:Microsoft.VisualBasic.dll,System.dll,System.Web.dll,System.Xml.dll,System.Data.dll,System.Drawing.dll /recurse:*.vb /res:strings.resources,PieceCounter.strings.resources   
Microsoft (R) Visual Basic .NET Compiler version 7.10.6001.4  
for Microsoft (R) .NET Framework version 1.1.4322.2032  
Copyright (C) Microsoft Corporation 1987-2002. All rights reserved.  
  
  
C:\DOCUME~1\Craig\LOCALS~1\Temp\~PIECE~3>REM _End MakeAll   
Output  
  
  
=======================================  
Build finished  
Publish Project - 0 critical error(s), 0 error(s), 0 warning(s)  

Under 2.0 I get the following (no call to vbc):

  
Generating Common Files  
Running  
C:\PROGRA~1\CODECH~1\CCResGen.exe \compile C:\DOCUME~1\Craig\LOCALS~1\Temp\~PIECE~2\App_GlobalResources\strings.txt   
=======================================  
Read in 98 resources from 'C:\DOCUME~1\Craig\LOCALS~1\Temp\~PIECE~2\App_GlobalResources\strings.txt'  
Writing resource file...  Done.  
  
=======================================  
Build finished  
Publish Project - 0 critical error(s), 0 error(s), 0 warning(s)  

Is this normal behavior. My site doens' t work when compiled for 2.0. I make sure the Path points to the correct Microsoft.NET directory before I compile.

Thanks,
Craig
View profile  Send private message
chucha

Posts: 4
Posted: 05/18/2007, 12:08 AM

Yes, this is correct behavior. ASP.NET 2.0 uses dynamic compiling, so there is no need to call compiler during publishing. But what the error is shown for your site after publishing?
View profile  Send private message
cvboucher

Posts: 191
Posted: 05/18/2007, 2:29 PM

I'm running IIS 5.1 and made sure the virtual directory was set to ASP.NET 2.0

Here is the error:

  
Server Error in '/webapp' Application.  
--------------------------------------------------------------------------------  
  
Compilation Error   
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.   
  
Compiler Error Message: BC30560: 'TextField' is ambiguous in the namespace 'PieceCounter.Data'.  
  
Source Error:  
  
   
  
Line 19:     Public errors As NameValueCollection = New NameValueCollection()  
Line 20:   
Line 21:     Public lblCustomerName As TextField  
Line 22:     Public lblUserName As TextField  
Line 23:     Public WorkSessions As TextField  
   
  
Source File: C:\Inetpub\wwwroot\webapp\App_Code\HeaderDataProvider.vb    Line: 21   
  
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.210   
[\code] 
                   
View profile  Send private message
chucha

Posts: 4
Posted: 05/21/2007, 4:19 AM

Looks like problem is caused by the bin subfolder of publishing folder, which left from the previous version of application. Try to remove it (if it is exists).
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.