473,419 Members | 1,842 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,419 software developers and data experts.

Error when running site remotely

Hi

I have a perfectly fine running webform on the local server. When I upload
the webform to a remote shared server I get the below error. Any idea what
is causing this?

Thanks

Regards
Parser Error Message: Could not load type 'Staff_Application.WebForm1'.

Line 1: <%@ Page Language="vb" AutoEventWireup="false"
Codebehind="Application.aspx.vb" Inherits="Staff_Application.WebForm1"%>
Line 2: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
Line 3: <HTML>

Source File: D:\Webs\...\Staff_Application\Application.aspx Line: 1
Nov 18 '05 #1
8 1232
Hi John,

Just checking that you copied Staff_Application.dll into the /bin folder.

"John" wrote:
Hi

I have a perfectly fine running webform on the local server. When I upload
the webform to a remote shared server I get the below error. Any idea what
is causing this?

Thanks

Regards
Parser Error Message: Could not load type 'Staff_Application.WebForm1'.

Line 1: <%@ Page Language="vb" AutoEventWireup="false"
Codebehind="Application.aspx.vb" Inherits="Staff_Application.WebForm1"%>
Line 2: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
Line 3: <HTML>

Source File: D:\Webs\...\Staff_Application\Application.aspx Line: 1

Nov 18 '05 #2
Did you upload the bin directory with the compiled dlls to the new server?
"John" <Jo**@nospam.infovis.co.uk> wrote in message
news:ut**************@TK2MSFTNGP09.phx.gbl...
Hi

I have a perfectly fine running webform on the local server. When I upload
the webform to a remote shared server I get the below error. Any idea what
is causing this?

Thanks

Regards
Parser Error Message: Could not load type 'Staff_Application.WebForm1'.

Line 1: <%@ Page Language="vb" AutoEventWireup="false"
Codebehind="Application.aspx.vb" Inherits="Staff_Application.WebForm1"%>
Line 2: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
Line 3: <HTML>

Source File: D:\Webs\...\Staff_Application\Application.aspx Line: 1

Nov 18 '05 #3
Are you placing the associated .dll file in the bin directory of the
application that WebForm1.aspx resides in?

Upload both:
-----------------------------
[AppRoot]
bin\Staff_Application.dll
WebForm1.aspx
-----------------------------

Or, if you are not using CodeBehind, use JIT compilation by changing the
CodeBehind attribute of your Page directive to a Src attribute:
-----------------------------
<%@ Page Language="vb" AutoEventWireup="false" Src="Application.aspx.vb"
Inherits="Staff_Application.WebForm1"%>
-----------------------------

Then, upload both files to the Application root
-----------------------------
[AppRoot]
WebForm1.aspx
WebForm1.aspx.vb
-----------------------------

Grant

"John" <Jo**@nospam.infovis.co.uk> wrote in message
news:ut**************@TK2MSFTNGP09.phx.gbl...
Hi

I have a perfectly fine running webform on the local server. When I upload
the webform to a remote shared server I get the below error. Any idea what
is causing this?

Thanks

Regards
Parser Error Message: Could not load type 'Staff_Application.WebForm1'.

Line 1: <%@ Page Language="vb" AutoEventWireup="false"
Codebehind="Application.aspx.vb" Inherits="Staff_Application.WebForm1"%>
Line 2: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
Line 3: <HTML>

Source File: D:\Webs\...\Staff_Application\Application.aspx Line: 1

Nov 18 '05 #4
yep.

"ESPN Lover" <es**@lover.com> wrote in message
news:em**************@TK2MSFTNGP12.phx.gbl...
Did you upload the bin directory with the compiled dlls to the new server?
"John" <Jo**@nospam.infovis.co.uk> wrote in message
news:ut**************@TK2MSFTNGP09.phx.gbl...
Hi

I have a perfectly fine running webform on the local server. When I upload the webform to a remote shared server I get the below error. Any idea what is causing this?

Thanks

Regards
Parser Error Message: Could not load type 'Staff_Application.WebForm1'.

Line 1: <%@ Page Language="vb" AutoEventWireup="false"
Codebehind="Application.aspx.vb" Inherits="Staff_Application.WebForm1"%>
Line 2: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
Line 3: <HTML>

Source File: D:\Webs\...\Staff_Application\Application.aspx Line: 1


Nov 18 '05 #5
yep.

"Ken Cox [Microsoft MVP]" <BA************@sympatico.ca> wrote in message
news:B6**********************************@microsof t.com...
Hi John,

Just checking that you copied Staff_Application.dll into the /bin folder.

"John" wrote:
Hi

I have a perfectly fine running webform on the local server. When I upload the webform to a remote shared server I get the below error. Any idea what is causing this?

Thanks

Regards
Parser Error Message: Could not load type 'Staff_Application.WebForm1'.

Line 1: <%@ Page Language="vb" AutoEventWireup="false"
Codebehind="Application.aspx.vb" Inherits="Staff_Application.WebForm1"%>
Line 2: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
Line 3: <HTML>

Source File: D:\Webs\...\Staff_Application\Application.aspx Line: 1

Nov 18 '05 #6
Using code behind and uploaded the bin folder. When I got this error on the
local server, I had to go to 'my default web' under 'Internet Information
Services', right click on the relevant asp.net app folder, select properties
and create application. Because remote server is with a hosting company I
don't have control over it to check this.

Regards
"Grant Harmeyer" <ne*@internetapollo.com> wrote in message
news:eV*************@TK2MSFTNGP11.phx.gbl...
Are you placing the associated .dll file in the bin directory of the
application that WebForm1.aspx resides in?

Upload both:
-----------------------------
[AppRoot]
bin\Staff_Application.dll
WebForm1.aspx
-----------------------------

Or, if you are not using CodeBehind, use JIT compilation by changing the
CodeBehind attribute of your Page directive to a Src attribute:
-----------------------------
<%@ Page Language="vb" AutoEventWireup="false" Src="Application.aspx.vb"
Inherits="Staff_Application.WebForm1"%>
-----------------------------

Then, upload both files to the Application root
-----------------------------
[AppRoot]
WebForm1.aspx
WebForm1.aspx.vb
-----------------------------

Grant

"John" <Jo**@nospam.infovis.co.uk> wrote in message
news:ut**************@TK2MSFTNGP09.phx.gbl...
Hi

I have a perfectly fine running webform on the local server. When I upload the webform to a remote shared server I get the below error. Any idea what is causing this?

Thanks

Regards
Parser Error Message: Could not load type 'Staff_Application.WebForm1'.

Line 1: <%@ Page Language="vb" AutoEventWireup="false"
Codebehind="Application.aspx.vb" Inherits="Staff_Application.WebForm1"%>
Line 2: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
Line 3: <HTML>

Source File: D:\Webs\...\Staff_Application\Application.aspx Line: 1


Nov 18 '05 #7
John:

Upload the .dll file to the bin at the root of your website and place the
..aspx file wherever you need it to be. Some hosts only allow a single
application in IIS, check the following documentation for ways to code for
this:
http://msdn.microsoft.com/library/de...plications.asp

The page may load properly after that, but if it does not, try to modify the
Web.Config file at the root of your site to add the assembly to that
location

<location path="VirtualDirectoryName">
<system.web>
<authorization>
<allow users="?"/>
</authorization>
<compilation defaultLanguage="VB">
<assemblies>
<add assembly="Staff_Application" />
</assemblies>
</configuration>
</system.web>
</location>

<location /> Documentation:
http://msdn.microsoft.com/library/de...ionelement.asp
HTH,

Grant

"John" <Jo**@nospam.infovis.co.uk> wrote in message
news:O3**************@TK2MSFTNGP14.phx.gbl...
Using code behind and uploaded the bin folder. When I got this error on
the
local server, I had to go to 'my default web' under 'Internet Information
Services', right click on the relevant asp.net app folder, select
properties
and create application. Because remote server is with a hosting company I
don't have control over it to check this.

Regards
"Grant Harmeyer" <ne*@internetapollo.com> wrote in message
news:eV*************@TK2MSFTNGP11.phx.gbl...
Are you placing the associated .dll file in the bin directory of the
application that WebForm1.aspx resides in?

Upload both:
-----------------------------
[AppRoot]
bin\Staff_Application.dll
WebForm1.aspx
-----------------------------

Or, if you are not using CodeBehind, use JIT compilation by changing the
CodeBehind attribute of your Page directive to a Src attribute:
-----------------------------
<%@ Page Language="vb" AutoEventWireup="false" Src="Application.aspx.vb"
Inherits="Staff_Application.WebForm1"%>
-----------------------------

Then, upload both files to the Application root
-----------------------------
[AppRoot]
WebForm1.aspx
WebForm1.aspx.vb
-----------------------------

Grant

"John" <Jo**@nospam.infovis.co.uk> wrote in message
news:ut**************@TK2MSFTNGP09.phx.gbl...
> Hi
>
> I have a perfectly fine running webform on the local server. When I upload > the webform to a remote shared server I get the below error. Any idea what > is causing this?
>
> Thanks
>
> Regards
>
>
> Parser Error Message: Could not load type 'Staff_Application.WebForm1'.
>
> Line 1: <%@ Page Language="vb" AutoEventWireup="false"
> Codebehind="Application.aspx.vb"
> Inherits="Staff_Application.WebForm1"%>
> Line 2: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
> Line 3: <HTML>
>
> Source File: D:\Webs\...\Staff_Application\Application.aspx Line: 1
>
>



Nov 18 '05 #8
That did it. Thanks Grant.

Regards

"Grant Harmeyer" <ne*@internetapollo.com> wrote in message
news:ed****************@TK2MSFTNGP10.phx.gbl...
John:

Upload the .dll file to the bin at the root of your website and place the
.aspx file wherever you need it to be. Some hosts only allow a single
application in IIS, check the following documentation for ways to code for
this:
http://msdn.microsoft.com/library/de...plications.asp
The page may load properly after that, but if it does not, try to modify the Web.Config file at the root of your site to add the assembly to that
location

<location path="VirtualDirectoryName">
<system.web>
<authorization>
<allow users="?"/>
</authorization>
<compilation defaultLanguage="VB">
<assemblies>
<add assembly="Staff_Application" />
</assemblies>
</configuration>
</system.web>
</location>

<location /> Documentation:
http://msdn.microsoft.com/library/de...ionelement.asp

HTH,

Grant

"John" <Jo**@nospam.infovis.co.uk> wrote in message
news:O3**************@TK2MSFTNGP14.phx.gbl...
Using code behind and uploaded the bin folder. When I got this error on
the
local server, I had to go to 'my default web' under 'Internet Information Services', right click on the relevant asp.net app folder, select
properties
and create application. Because remote server is with a hosting company I don't have control over it to check this.

Regards
"Grant Harmeyer" <ne*@internetapollo.com> wrote in message
news:eV*************@TK2MSFTNGP11.phx.gbl...
Are you placing the associated .dll file in the bin directory of the
application that WebForm1.aspx resides in?

Upload both:
-----------------------------
[AppRoot]
bin\Staff_Application.dll
WebForm1.aspx
-----------------------------

Or, if you are not using CodeBehind, use JIT compilation by changing the CodeBehind attribute of your Page directive to a Src attribute:
-----------------------------
<%@ Page Language="vb" AutoEventWireup="false" Src="Application.aspx.vb" Inherits="Staff_Application.WebForm1"%>
-----------------------------

Then, upload both files to the Application root
-----------------------------
[AppRoot]
WebForm1.aspx
WebForm1.aspx.vb
-----------------------------

Grant

"John" <Jo**@nospam.infovis.co.uk> wrote in message
news:ut**************@TK2MSFTNGP09.phx.gbl...
> Hi
>
> I have a perfectly fine running webform on the local server. When I

upload
> the webform to a remote shared server I get the below error. Any idea

what
> is causing this?
>
> Thanks
>
> Regards
>
>
> Parser Error Message: Could not load type 'Staff_Application.WebForm1'. >
> Line 1: <%@ Page Language="vb" AutoEventWireup="false"
> Codebehind="Application.aspx.vb"
> Inherits="Staff_Application.WebForm1"%>
> Line 2: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> > Line 3: <HTML>
>
> Source File: D:\Webs\...\Staff_Application\Application.aspx Line: 1 >
>



Nov 18 '05 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Marina Anufreichik | last post by:
Hi, After deploymnet web application on web server I can access page on local machine and login fine but when I'm trying to access web site from remote machine I can see login page, but when I'm...
3
by: abcd | last post by:
I get following error. I have 2 simple text boxes and requiresValidator control attached to them. When run on development machine is works when deployed on production server I get following errors....
3
by: | last post by:
Just deployed a new application, and am receiving an "Cannot find server or DNS Error" error for every aspx page. All other ASP.NET apps are working fine, as are both asp and html, as does a small...
3
by: Wayne Gibson | last post by:
Hi, Is it possible to determine what web server is running a website, if so how? Also is it possible to determine if the web site is running locally or remotely. Thanks Wayne
5
by: Lara | last post by:
Hi, I am getting the following error. All the files are stored in a directory named 'web' as told by the Server Administrtor can anyone help me Server Error in '/' Application....
4
by: news.citenet.net | last post by:
I keep getting the following error message after my web site running 2 or 3 days I share one folder with about 200 domain names Any one can help? ...
1
by: moondaddy | last post by:
running vs2005 I have a small test website called TestPublish which has default.aspx, ErrorPage.aspx and testpage.htm. The default page just says hello world and no other code and the errorpage...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.