Can run after publish

A

ad

I have finished develop my WebApplication.
When I publish my WebApplication by Publish Web Site to a web server, it can
not run on the web server, with
error message below.
But if I copy my whole web application to server, it can run.

How can I do?

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

Source Error:



Line 118: public login_aspx() {
Line 119: string[] dependencies;
Line 120: ((Login)(this)).AppRelativeVirtualPath =
"~/Login.aspx";
Line 121: if ((global::ASP.login_aspx.@__initialized == false)) {
Line 122: dependencies = new string[3];
 
G

Guest

I'm finding that I'm having a similar problem. It seems to me that the dll
that will house all the code is not being built and placed on the remote
server (in the bin directory). Copy files isn't such a clean solution
because the pages are compiled on the fly (slower), and it needs all your
code-behind files on the server to run (not exactly secure).

Until I figure out what is going on wrong I plan on either using the command
line pre-compile, or perhaps the web deployement project.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,776
Messages
2,569,603
Members
45,190
Latest member
Martindap

Latest Threads

Top