Solved

.aspx runs on localhost but not on real server?

Posted on 2003-11-28
6
379 Views
Last Modified: 2010-04-16
hi all,
following problem:
I work with VisualStudio.NET. I have some code here (several *.aspx + *.aspx.cs files) which works perfect ;) on localhost.
But if I copy the files to a different directory on localhost it does not work any more.

" Parser Error Message: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS."

Ok, so I deleted "Web.config", then I get the following error:
" Parser Error Message: Could not load type 'test1.multiLanguageEditVariable'."
in line:
"<%@ Page language="c#" Codebehind="multiLanguageEditVariable.aspx.cs" AutoEventWireup="false" Inherits="test1.multiLanguageEditVariable" %>"

But both files files exist (apsx and aspx.cs) and a apsx.resx ios beeing generated.

The problem:
I can only upload (FTP) files to the real server, I can't configure folders to become an application.

What can I do to get my files working online?

Thank you, regards
0
Comment
Question by:Smoerble
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
6 Comments
 
LVL 4

Expert Comment

by:MrGhost
ID: 9837072
Go to the IIS and check your folder (Properties) if under application name CREATE button is enabled then click it!
If not check the path!
0
 

Author Comment

by:Smoerble
ID: 9837096
As I said:
I cannot do anything like this on the server, I only have FTP access.
I already have some working *.aspx scripts there, but I created them without VisualStudio.
0
 
LVL 4

Expert Comment

by:MrGhost
ID: 9837441
where is your bin folder located? It can be just anywhere
0
Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

 
LVL 4

Accepted Solution

by:
MrGhost earned 500 total points
ID: 9837473
Or maybe you just need to rebuild your app after you deleted web.config

or maybe this will help(copy/paste):

These errors can be frustrating.  Usually "Could not load type" exceptions
result from the DDL not being found, incorrect file permissions on the DLL,
or version mismatch between the assembly that needs to be loaded and the
one that was discovered.  

Is the bin directory you are using c:\inetpub\wwwroot\dotnetforms\bin?  If
so, then it wouldn't hurt to go into the MMC and verify that there is a web
application that corresponds to c:\inetpub\wwwroot\dotnetforms.  Only the
<WebAppRoot>\bin directory and the Global Assembly Cache (GAC) are searched
for assemblies.

Next, check the file permissions on the DLL to ensure that read and execute
rights have been granted to the user the request will be executing as.  An
easy way to verify that this is not permissions-related is to grant
everyone full control, OR disable anonymous authentication and authenticate
as an administrator.

Next, if the DLL is there and the permissions look correct, check for a
version mismatch.  You can see the version number of the assembly that is
trying to be loaded in the error (1.0.785.42706).  To determine the version
of the assembly in the bin directory, you can use ildasm.exe or just view
Properties->Version of the file in Windows Explorer.  These versions should
match.  You can also use ildasm to verify the name of the assembly.


If you still are getting an error after these steps, please let me know
what you found and we can go from there.  You might also want to check out
the information below:

How the Runtime Locates Assemblies
http://msdn.microsoft.com/library/en-us/cpguide/html/cpconhowruntimelocatesa
ssemblies.asp

Assembly Binding Log Viewer (Fuslogvw.exe)
http://msdn.microsoft.com/library/en-us/cptools/html/cpgrffusionlogviewerfus
0
 

Author Comment

by:Smoerble
ID: 9837529
thx for the copy paste, that helped.
the dll was in test2/bin, not in wwwroot/bin ;)

Points granted for the copyPaster ;)
0
 
LVL 4

Expert Comment

by:MrGhost
ID: 9837695
:)
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
JQuery Detecting page post back 6 33
.NET Enums [Flags] & Bitwise Design Question 6 51
asp.net, radiobuttonlist, c# 3 67
asp.net repeater server posting 5 36
Introduction This article series is supposed to shed some light on the use of IDisposable and objects that inherit from it. In essence, a more apt title for this article would be: using (IDisposable) {}. I’m just not sure how many people would ge…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

737 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question