do i need to install visual studio to fix this?

S

Sam

we are running windows 2003 server. it has NET framework installed, but
doesn't have Visual Studio etc. installed on it. i created a new
sulotion/project on my development pc and FTP'd it up to our server with all
of the files from my dev. pc. i also created a \bin directory and copied
tthose files as well.

now i'm getting this error. do i need to install visual studio on the server
and build it there?
=====================

Parser Error Message: Could not load type 'EmailServer.AspEmail'.

Source Error:

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

Source File: D:\WWW\domain\myappfolder\myapp.aspx Line: 1
 
S

scorpion53061

Sam,

Remove and then add again the reference to your project for AspEmail
with from the location on that computer.

In addition, if this control is not registered on this machine you will
still have problems even if you copy and paste the control over to the
new machine.

IN that case you'll need gacutil.exe which can be found in the .NET SDK

IN the future, cross posting is generally not nice.
 
S

Scott M.

No, you don't install VS.NET on the production machine. It seems, by the
error, that the problem is that the EmailServer.AspEmail component is either
not present on the target machine or not registered.
 
C

Cor Ligthert

Kelly,

I am propaganding crossposting and you tell it is not nice.

Crossposting is in my opininion very good you get opinions from different
newsgroups.

Bad in my opinion is multiposting; sending post to all kind of different
newsgroups and not in one time. I find this a nice sample from a correct
crosspost.

More than 4 newsgroups start to look as well in my opinion to look to spam

However just my idea of course.

Cor
 
S

scorpion53061

Hey you have the right to your opinion. You know what they say about
opinions right?

The way I was raised was to find the closest group I can see to match my
issue, post and if the problem was not solved to go to another group and
request help there.

Of course, I may have been "raised" wrong. In that case a thousand
apologies.

In any event, I tried to be nice about expressing my opinion.

If I see something in a post that conflicts with what I perceive as
proper posting etiquette, such as incorrect dates, off topic subjects
and the like I don't post soley to reprimand the poster but only if I
have something positive to contribute to their question because I don't
see myself as the guardian of the newsgroup gate unlike others who may
do so.

Just trying to be helpful if I thought a user may not know something.

Well, have a nice day.
 
P

Patrice

You miss a DLL and the application is then enable to find out what is this
EmailServer.AspMail type...

About crossposting the point is that when you crosspost you tend to post in
irrelevant newsgroups. For example it has nothing to do with the VB.NET
language and even perhaps with the "general" group.

Patrice
 
S

Sam

AspEmail is the main class within the aspx. there is no external component.
thanks for the note about cross postings.

==================================

Imports System
Imports System.Threading

Public Class AspEmail
Inherits System.Web.UI.Page
 
N

Nick Malik

Hi Sam,

If that's the component I suspect that it is, then it is a COM component.
It needs to be installed on the destination machine. You cannot use "xcopy
deployment" for COM components.

You may be able to use a .NET Installer project. I haven't tried to copy
and register a COM component using an installer coded from within the Visual
Studio environment, but I'm sure that it can be done.

HTH,
--- Nick
 
P

Patrice

And EmailServer is ?

Also make sure your ASPX page is not out of sync with the code behind DLL...

Patrice
 
C

Cor Ligthert

Kelly,

No problems at all, I see you are pretty active the last days and that is
great.

However I see often messages multiposted to more newsgroups, and in this
case the OP probably would not have knowed what was the best newsgroup for
his question.

When I had not told you this than you never would have knowed.

However nothing personal of course to tell you that you are doing things
wrong or something like that.

Cor
 
S

Sam

Emailserver is the ASPX file with code behind in emailserver.aspx.vb. i
rebuilt the solution and aspx then copied the bin files to /bin and copied
the aspx file.

Here is the code for the whole thing.

===================================
emailserver.aspx.vb
Imports System
Imports System.Threading

Public Class AspEmail
Inherits System.Web.UI.Page

#Region " Web Form Designer Generated Code "

<System.Diagnostics.DebuggerStepThrough()>
Private Sub InitializeComponent()
End Sub



Private designerPlaceholderDeclaration As System.Object
Private Sub Page_Init(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Init

InitializeComponent()

End Sub
#End Region

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load

Dim Buffer As String
Dim FromURL As String

Body = Request("body")
Subject = Request("Subject")
FromURL = Request.UrlReferrer.ToString()
Response.Write("Emails Sent!<br><br>")
Response.Write("<a href=" & FromURL & ">Click here to return.</a>")
End Sub
End Class


And EmailServer is ?

Also make sure your ASPX page is not out of sync with the code behind DLL...

Patrice
 
P

Patrice

What if you use Inherits="AspEmail" instead of "EmailServer.AspEmail" ?

"EmailServer" used in inherits should be a class (or more likely a
namespace) in which your AspEmail class is (the codebehind file has its own
directive, the inherits one only deals with types and has nothing to do with
file names).

Have you tried to run this on your dev machine before sending the update yo
your server ?

Patrice

--
 
S

Sam

i just tried changing it (Inherits="AspEmail") on my dev machine and got the
same error. but, when i change it back it ran fine. i then copied it up the
the server and i got the same error again using the aspEmail.

it works on my local machine, but not on the server.

..
What if you use Inherits="AspEmail" instead of "EmailServer.AspEmail" ?

"EmailServer" used in inherits should be a class (or more likely a
namespace) in which your AspEmail class is (the codebehind file has its own
directive, the inherits one only deals with types and has nothing to do with
file names).

Have you tried to run this on your dev machine before sending the update yo
your server ?

Patrice

--
 
G

Guest

Sam,

I am fairly certain that AspEmail is a third party COM dll (not part of the
..NET famework). What you will need to do is ensure that the dll is copied
onto the target machine, and registered....
Also, since it is a COM component, there should also be an interop assembly
generated as well. Make sure this also gets copied across.

Have you thought about using the built in email stuff in .NET?? This would
save you a few deployment problems..

Hope this helps..

Eddie de Bear
 
A

Aquila Deus

Sam said:
we are running windows 2003 server. it has NET framework installed, but
doesn't have Visual Studio etc. installed on it. i created a new
sulotion/project on my development pc and FTP'd it up to our server with all
of the files from my dev. pc. i also created a \bin directory and copied
tthose files as well.

now i'm getting this error. do i need to install visual studio on the server
and build it there?

no.

There should be an EmailServer.dll in your VirtualRootT\bin... (the
\bin is under the VirtualRoot, not under the directory where you put
myapp.aspx)

The second solution is to change the "Codebehind" attribute to "Src",
then ASP.NET will load the source file directly. In this case you need
to have EmailServer.aspx.vb and myapp.aspx on the same directory.
 

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

Forum statistics

Threads
473,774
Messages
2,569,599
Members
45,175
Latest member
Vinay Kumar_ Nevatia
Top