Link to home
Start Free TrialLog in
Avatar of Smoerble
SmoerbleFlag for Germany

asked on

.aspx runs on localhost but not on real server?

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
Avatar of MrGhost
MrGhost

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!
Avatar of Smoerble

ASKER

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.
where is your bin folder located? It can be just anywhere
ASKER CERTIFIED SOLUTION
Avatar of MrGhost
MrGhost

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
thx for the copy paste, that helped.
the dll was in test2/bin, not in wwwroot/bin ;)

Points granted for the copyPaster ;)