CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums




Can Reply:  No Members Can Edit: No Online: Yes
Zone: > NEWSGROUP > Asp.Net Forum > visual_studio.visual_studio_2005 Tags:
Item Type: NewsGroup Date Entered: 1/12/2006 1:23:59 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
NR
XPoints: N/A Replies: 6 Views: 151 Favorited: 0 Favorite
7 Items, 1 Pages 1 |< << Go >> >|
gmagana
Asp.Net User
Possible aspnet_compiler.exe bug?1/12/2006 1:23:59 AM

0

Hello all,

I have a medium-sized (75 aspx pages or so) ASP.NET 2.0 application which I am trying to deploy.  The application's aspx pages are structured into directories under the web root.  The master pages are in their own directory, all the aspx pages that use those master pages are on other directories.

In case it matters, this project is a file-based project on VS2005.

Now I am trying to deploy the web site and I am running into several problems:

1) If I try to precompile via the command line with aspnet_compiler.exe, then the master pages do not get compiled and are completely missing from the pre-compiled web site.  Also, none of the referenced assemblies are included in the /bin directory.

2) If I try to precompile with the Web Deployment Project tool with the "Merge all outputs to a single assembly" options (my preferred option), then the compilation fails on the merge step. (error MSB6006: "aspnet_merge.exe" exited with code 1.).  No further information is available.

3) If I try to precompile with the Web Deployment Project tool with the "Create a separate assembly..." option turned on, all appears to work well, except the master pages are not compiled or otherwise included at all (same as #1 above).

4) If I try to precompile via the Publish Web Site tool, then everything gets compiled correctly, even the master pages.  Any referenced assemblies (even those references to same-solution projects properly defined/detected) are NOT copied over to the deployment folder and must be copied "by hand".  Any other referenced DLLs/assemblies (ie, 3rd party references listed in the Web.config file, etc...) are not copied either, and must be copied by hand.

So is this a bug, or is there yet another deployment option I am missing that would allow me to create an installable set of files that would not need manual work to get running?  I would love to use the Web Deployment Project tool to create a minimal number of files and then put those files in an installer MSI or EXE file for deployment on the server (ah the good ol' vs2003 days!), but right now I would settle for not having to determine by hand which GAC 3rd party DLLs I have to put into my deployment target machine and hope I don't get anythig wrong!


gabriel maga?a
ScottGu
Asp.Net User
Re: Possible aspnet_compiler.exe bug?1/12/2006 6:45:03 AM

0

Hi gmagana,

You can get more detailed output on #2 by going into Tools->Options and selecting the Project and Solutions->Build and Run tab.  Within that change the MSBuild output from "minimal" to Detailed, and then try building again.  This will show you more detailed output on what is failing.

My guess is that you might have a duplicate class name somewhere within the project which is causing the problem.  If you can output the error here we can help figure out what the problem is.

Thanks!

- Scott

gmagana
Asp.Net User
Re: Possible aspnet_compiler.exe bug?1/13/2006 12:24:36 AM

0

Thank you!

That was it, as soon as I saw the actual error it was easy to fix.  I had many, many duplicated class names, I guess every time you create a content page from a master page it names the content class the same.  No one complains about it except aspnet_merge.exe, I suppose!

Now everything works as it should!

PS - I don't really want to mention the obvious, but probably this should be fixed no?  Why does the VS2005 compiler not detect or care about this?  It should not really generate the same class name every time either...  Anyway, thanks, I am very happy to get this site deployed the right way!


gabriel maga?a
ScottGu
Asp.Net User
Re: Possible aspnet_compiler.exe bug?1/13/2006 1:44:22 AM

0

Cool stuff!  I'm glad that fixed it!

The new refresh drop of the VS 2005 Web Deployment Project will avoid you having to change the MSBuild verbosity level -- and output the error messages directly.  That should make it much easier to find these errors.

Hope this helps,

Scott

gmagana
Asp.Net User
Re: Possible aspnet_compiler.exe bug?1/13/2006 5:55:37 AM

0

Great to hear about the update, I'm lovin' vs2005/.net2 so far, like a kid in a candy store!

May I ask why is it that no vs2005 component complains about duplicate class names except for aspnet_merge.exe?  Is it because VS generates a separate assembly for each aspx page (at least that's what aspnet_compiler.exe does)?  Why is this not an error that would prevent a web site from even running?


gabriel maga?a
ScottGu
Asp.Net User
Re: Possible aspnet_compiler.exe bug?1/13/2006 3:54:36 PM

0

The web-site project model is pretty flexible, and can actually handle cases where there are duplicate class names (one scenario where people find this useful: importing a lot of content from another site).  Because the web-site project model has the option to compile things into separate assemblies, this ends up working.

Where you run into problems is if you try and merge these pages with duplicate names into a single assembly -- which is not supported by the CLR.  That is why an error occurs with the VS 2005 Web Deployment Project.

Hope this helps,

Scott

gmagana
Asp.Net User
Re: Possible aspnet_compiler.exe bug?1/13/2006 10:30:02 PM

0

Thanks for the explanation, and thank you very much for all your help!
gabriel maga?a
7 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Beginning ASP.NET 3.5 in VB 2008: From Novice to Professional Authors: Matthew MacDonald, Pages: 956, Published: 2007
Beginning ASP.NET 3.5 in C# 2008: from novice to professional Authors: Matthew MacDonald, Pages: 954, Published: 2007
Pro ASP.NET 3.5 in C# 2008 Authors: Matthew MacDonald, Mario Szpuszta, Pages: 1498, Published: 2007
PROFESSIONAL ASP.NET 2.0, SPECIAL EDITION Authors: Bill Evjen, Scott Hanselman, Devin Rader, Farhan Muha, Pages: 1586, Published: 2006
Beginning ASP.NET 3.5 VB in 2008: From Novice to Professional Second Edition Authors: Matthew Macdonald, Pages: 992, Published: 2008

Web:
Possible aspnet_compiler.exe bug? - ASP.NET Forums 1) If I try to precompile via the command line with aspnet_compiler.exe, then the master pages do not get compiled and are completely ...
aspnet_compiler.exe: error ASPPARSE: Could not load type - ASP.NET ... Why can't the aspnet_compiler.exe work the same or at least give ... It might be possible that there was a bug in the retail version of ASP. ...
Feedback: Unable to deploy, no useful info given from ... Type, Bug, ID, 214832. Status, Closed (Other), Access Restriction, Public ... '" aspnet_compiler.exe" exited with code 1.' with no more information. ... (It is possible to use the aspnet_compiler for examle to pre-compile in-place). ...
[SOLVED] aspnet_compiler.exe problems - ProgrammingTalk [SOLVED] aspnet_compiler.exe problems ASP.NET. ... HotScripts.com Discussion, General HotScripts.com Discussion, HotScripts.com Bug Reports ...
Can't compile site with MSBuild.exe - Community Server If I run aspnet_compiler.exe with the -errorstack switch I get this: ... How is it possible for this stuff to compile in Visual Studio and not MSBuild! ... So I do not know if its a problem or a bug on the msbuild. ...

Possible aspnet_compiler.exe bug? - ng.asp-net-forum ... Possible aspnet_compiler.exe bug?, > ROOT > NEWSGROUP > Asp.Net Forum > visual_studio.visual_studio_2005, Date: 1/12/2006 1:23:59 AM, ...
aspnet_compiler.exe" exited with code 1 - ng.asp-net-forum ... Possible aspnet_compiler.exe bug? - ng.asp-net-forum ... Possible aspnet_compiler.exe bug?, > ROOT > NEWSGROUP > Asp.Net Forum . ...
aspnet_compiler vs. VS Publish for Web Application Projects - ng ... Possible aspnet_compiler.exe bug? - ng.asp-net-forum ... The new refresh drop of the VS 2005 Web Deployment Project will avoid you .... css ...
error ASPPARSE: Could not load type Global - ng.asp-net-forum ... Possible aspnet_compiler.exe bug? - ng.asp-net-forum ... error ASPPARSE: Could not load type Global - ng.asp-net-forum . ...






development environment help

asp.net development server

toolbar locations and opening start page after closing it

snaptogrid not working

cannot use controls

visual studio & css files

cant open dataset editor.

support to serial port communication

visual studio 2005 request / option available

debugging error "com+ registry database detected a system error" solved

questions about writing program to send data to serial port

trouble connecting to database asp.net 2.0

arabic in aspx pages vs 2005

visual studio has to shut down - when starting up.

problem in define error page

help: can't see line number

install queation

viewing a variable's value in debug mode?

vs2005 locks up when trying to 'compare' source

which vs editions support uml generation (export)

help - can't create http web sites

vsts 2005 branching issues

why there are no dll files in the website's bin folder when using vs2005?

listview in tabpage, margin trouble

source control for stored procedures in vs2005?

modifying someone's solution

gridview not showing?

asp.net development server (webdev.webserver2.exe) shuts down after debugging

customize precompilation (add post-build event)

database connection within a class file

   
  Privacy | Contact Us
All Times Are GMT