DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Thu, 9 Aug 2007 13:01:15 +0200,    posted on: microsoft.public.dotnet.framework.aspnet        back       

Thread Index
  1    Mark
          2    csharper
          3    Chris
          4    Mick Walker
                 5    Jan j@sss


question about compiling application   
Hi,

i want to compile my application with this code:
cd \windows\microsoft.net\framework\v2.0.50727
aspnet_compiler -p "c:\inetpub\wwwroot\myapp" -v / c:\compiled\myapp -f

But the problem is that this application creates at runtime an asp.file 
(test.aspx).

When a user tries to start that aspx file, he gets the error:
"The file '/myapp/test.aspx' has not been pre-compiled, and cannot be 
requested".

So my question is: is the choice about compiling: the whole application or 
nothing at all?
Is it not possible to compile the application and to start after compilation 
file test.aspx?

Thanks
Marc
Date:Thu, 9 Aug 2007 13:01:15 +0200   Author:  

RE: question about compiling application   
The reason may be missing/incorrect/versions of dll's or the beta version of 
..Net 2.0 framework.
Date:Thu, 9 Aug 2007 14:26:09 -0700   Author:  

Re: question about compiling application   
Do you suggest that the new page tes.aspx should run and not generates tat 
error?

"csharper"  schreef in bericht 
news:38A07C63-05D0-4C1A-AD06-32FE47B2F417@microsoft.com...

> The reason may be missing/incorrect/versions of dll's or the beta version 
> of
> .Net 2.0 framework. 
Date:Fri, 10 Aug 2007 15:20:22 +0200   Author:  

Re: question about compiling application   
Mark wrote:

> Hi,
> 
> i want to compile my application with this code:
> cd \windows\microsoft.net\framework\v2.0.50727
> aspnet_compiler -p "c:\inetpub\wwwroot\myapp" -v / c:\compiled\myapp -f
> 
> But the problem is that this application creates at runtime an asp.file 
> (test.aspx).
> 
> When a user tries to start that aspx file, he gets the error:
> "The file '/myapp/test.aspx' has not been pre-compiled, and cannot be 
> requested".
> 
> So my question is: is the choice about compiling: the whole application or 
> nothing at all?
> Is it not possible to compile the application and to start after compilation 
> file test.aspx?
> 
> Thanks
> Marc 
> 
> 

I may be wrong about this, but I dont think after you precompile a 
application, you can add new 'resources' which will be processed by the 
ASPNET process. As basically the file created 'on demand' is not part of 
the current applications code base.

I encountered this situation a couple of years ago, using web services, 
and could not find a work around for it. So I had to opt for on demand 
compilation.

If you find a way to get round this, I'd like to hear about it.

Regards
Date:Fri, 10 Aug 2007 14:58:28 +0100   Author:  

Re: question about compiling application   
I found it.

I have to add -u in the code (updatable).

"Mick Walker"  schreef in bericht 
news:5i3984F3leh6eU1@mid.individual.net...

> Mark wrote:
>> Hi,
>>
>> i want to compile my application with this code:
>> cd \windows\microsoft.net\framework\v2.0.50727
>> aspnet_compiler -p "c:\inetpub\wwwroot\myapp" -v / c:\compiled\myapp -f
>>
>> But the problem is that this application creates at runtime an asp.file 
>> (test.aspx).
>>
>> When a user tries to start that aspx file, he gets the error:
>> "The file '/myapp/test.aspx' has not been pre-compiled, and cannot be 
>> requested".
>>
>> So my question is: is the choice about compiling: the whole application 
>> or nothing at all?
>> Is it not possible to compile the application and to start after 
>> compilation file test.aspx?
>>
>> Thanks
>> Marc
> I may be wrong about this, but I dont think after you precompile a 
> application, you can add new 'resources' which will be processed by the 
> ASPNET process. As basically the file created 'on demand' is not part of 
> the current applications code base.
>
> I encountered this situation a couple of years ago, using web services, 
> and could not find a work around for it. So I had to opt for on demand 
> compilation.
>
> If you find a way to get round this, I'd like to hear about it.
>
> Regards
>
> 
Date:Sat, 11 Aug 2007 00:52:27 +0200   Author:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us