Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
ASP.NET 2.0 Professional If you are an experienced ASP.NET programmer, this is the forum for your 2.0 questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old March 6th, 2007, 01:09 AM
Registered User
 
Join Date: Mar 2007
Location: , , .
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to mazhiguo_1219
Default publish web site error

I develop the web site with .net 2.0 , every thing is fine before I publish it.
but after I publish it, it shows an error, hope anyone help me.
I use VS2005 deploy tool to publish and and select the "Allow this precompiled site to be updatable" mode.

  #2 (permalink)  
Old March 6th, 2007, 01:11 AM
Registered User
 
Join Date: Mar 2007
Location: , , .
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to mazhiguo_1219
Default

the error description is as follows:

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: CS0030: Cannot convert type 'ASP.login_aspx' to 'System.Web.UI.WebControls.Login'

Source Error:



Line 120: public login_aspx() {
Line 121: string[] dependencies;
Line 122: ((Login)(this)).AppRelativeVirtualPath = "~/Login.aspx";
Line 123: if ((global::ASP.login_aspx.@__initialized == false)) {
Line 124: global::ASP.login_aspx.@__stringResource = this.ReadStringResource();


Source File: c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temp orary ASP.NET Files\eshop\61b0be26\e5e619a7\App_Web_login.aspx.c dcab7d2.m2hyv0cu.0.cs Line: 122

  #3 (permalink)  
Old June 6th, 2007, 09:53 AM
Registered User
 
Join Date: Jun 2007
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Got the same error. Also needing help.
Can it be because some kind of mess using the Login control in a page called Login.aspx??

  #4 (permalink)  
Old June 6th, 2007, 10:05 AM
Registered User
 
Join Date: Jun 2007
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Solved the problem...

Rename the Login.aspx page, and be sure that is doesn's inherits from Login object. If it does, rename the (public partial class Login) to (public partial class Login1) and in the page change the Inherits data to Login1




Similar Threads
Thread Thread Starter Forum Replies Last Post
UNABLE TO PUBLISH WEB SITE JORGEMAL Visual Studio 2005 0 April 2nd, 2008 06:09 PM
Publish Web Site & Copy Web Site angshujit ASP.NET 2.0 Basics 1 June 15th, 2007 09:21 AM
Web site administration tool (publish) swifty_programmer ASP.NET 2.0 Professional 1 May 9th, 2007 06:31 AM
publish .NET 2.0 web site Error mazhiguo_1219 ASP.NET 1.0 and 1.1 Basics 0 March 6th, 2007 01:08 AM
How to publish my web site online? johnsonlim026 ASP.NET 1.0 and 1.1 Professional 5 October 28th, 2005 05:49 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.