Showing posts with label receive. Show all posts
Showing posts with label receive. Show all posts

Wednesday, March 28, 2012

Strange compilation error

Hi,

From time to time, I receive following error message when trying to access
my website.
When the error occurs, I have to recompile my dll until the error disappears
(this without changing anything in my code).
Where does this error come from ? What can I do to solve the problem ?
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
'System.Web.HttpApplication' to 'ASP.Global_asax'

Source Error:

Line 438: protected ASP.Global_asax ApplicationInstance {
Line 439: get {
Line 440: return
((ASP.Global_asax)(this.Context.ApplicationInstanc e));
Line 441: }
Line 442: }

Source File: c:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Tempo rary ASP.NET
Files\emagic.net.website\1a713704\55d0ac6a\5rffbzu b.0.cs Line: 440Hi,

As you can figure out its a prpblem with dynamic compilation of pages
(and asax). do you write any code in your application asax file? if so
can you post it or at least tell what you are doing ? usually those
errors ate outcome of code being write in asax code behind.

Natty Gur[MVP]

blog : http://weblogs.asp.net/ngur
Mobile: +972-(0)58-888377

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Strange compilation error

Hi,
From time to time, I receive following error message when trying to access
my website.
When the error occurs, I have to recompile my dll until the error disappears
(this without changing anything in my code).
Where does this error come from ? What can I do to solve the problem ?
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
'System.Web.HttpApplication' to 'ASP.Global_asax'
Source Error:
Line 438: protected ASP.Global_asax ApplicationInstance {
Line 439: get {
Line 440: return
((ASP.Global_asax)(this.Context.ApplicationInstance));
Line 441: }
Line 442: }
Source File: c:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET
Files\emagic.net.website\1a713704\55d0ac6a\5rffbzub.0.cs Line: 440Hi,
As you can figure out its a prpblem with dynamic compilation of pages
(and asax). do you write any code in your application asax file? if so
can you post it or at least tell what you are doing ? usually those
errors ate outcome of code being write in asax code behind.
Natty Gur[MVP]
blog : http://weblogs.asp.net/ngur
Mobile: +972-(0)58-888377
*** Sent via Developersdex http://www.examnotes.net ***
Don't just participate in USENET...get rewarded for it!

Thursday, March 22, 2012

Strange parse error calling ASP.Net WebService

By making a call to a webservice I receive the following error page, we did a
complete new build but the error still exist:

The installation of the webservice is on an win 2003 standard service pack 1
server.

Server Error in '/BackupAgentServices' Application.

------------------------

Parser Error

Description: An error occurred during the parsing of a resource required to
service this request. Please review the following specific parse error
details and modify your source file appropriately.

Parser Error Message: The check of the module's hash failed for file
'System.EnterpriseServices.Thunk.dll'.

Source Error:

Line 1: <%@dotnet.itags.org. Application Codebehind="Global.asax.cs"
Inherits="BAWebService2.Global" %>

Source File: C:\Program Files\BackupAgent Server
2006\BackupAgentServices\global.asax Line: 1

------------------------

Version Information: Microsoft .NET Framework Version:1.1.4322.2300; ASP.NET
Version:1.1.4322.2300 --. For more information, see Help and Support Center
at http://go.microsoft.com/fwlink/events.asp.

--
rvangeldropHello Rvangeldrop,

From your description, you have an ASP.NET web service project which is
reporting the following exception at startup time on a windows 2003
server/sp1 box, correct?

====================
Parser Error Message: The check of the module's hash failed for file
'System.EnterpriseServices.Thunk.dll'.
====================

Based on my experience, since the project is built without problem and the
error occurs at very begining of the appilcation's startup time(intialize
global.asax), it is likely an environment specific issue. Before we perform
detailed troubleshooting, I'd like to confirm the following things:

** Is the webservice project developed upon .net framework 1.1/vs2003 or
..net framework 2.0/vs 2005

** Before deploying on the windows 2003 server/sp1, is it being developed
on another box and works without any problem on it?

** Though the problem is specific to the windows 2003 server machine, you
can still create a very simple webservcie project and test it on the
problem server to see whether the problems also ocurs.

I've also searched some former issues with similar symtom, however, seems
the cause are not quite matching your case. So we need to do some general
problem isolation tests first.

Please feel free to let me know if there is any new finding or any question
you wonder.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead

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

Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscript...ault.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscript...rt/default.aspx.

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

This posting is provided "AS IS" with no warranties, and confers no rights.
Hello Rvangeldrop,

How are you doing on this issue, have you got any progress or does the
suggestion in my last reply helps some?

If there is anything else we can help, please feel free to let me know.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead

This posting is provided "AS IS" with no warranties, and confers no rights.
the solution was to completely reinstall the server. Appearently some HP
server went bad and this was one of them.

So the problem was at HP for some reason... At least that was what the
customer told me.

--
rvangeldrop

"Steven Cheng[MSFT]" wrote:

Quote:

Originally Posted by

Hello Rvangeldrop,
>
How are you doing on this issue, have you got any progress or does the
suggestion in my last reply helps some?
>
If there is anything else we can help, please feel free to let me know.
>
Sincerely,
>
Steven Cheng
>
Microsoft MSDN Online Support Lead
>
>
This posting is provided "AS IS" with no warranties, and confers no rights.
>
>
>
>

Tuesday, March 13, 2012

Strange problem in sending emails by asp.net

I use the following code to send email, and strange thing that I received the message at hotmail mail, and failed to receive it at yahoo mail , can you help me and explain what this happen and how to overcome this.


Regards
Serag Farag
PrivateSub Button1_Click(ByVal senderAs System.Object,ByVal eAs System.EventArgs)Handles Button1.Click

Dim msgmailAs System.Web.Mail.MailMessage

Dim SmtpMailAs System.Web.Mail.SmtpMail

msgmail =New System.Web.Mail.MailMessage

' SmtpMail =

msgmail.To = "elomah@dotnet.itags.org.yahoo.com"

msgmail.Cc = "ahmed_serageldin@dotnet.itags.org.hotmail.com"

msgmail.From = "ahmed_serageldin@dotnet.itags.org.hotmail.com"

msgmail.Subject = "subject of ggggggggggggggmsg"

msgmail.BodyFormat = System.Web.Mail.MailFormat.Html

msgmail.Body = " what u send mail ofgh ghgf ghr msgs"

SmtpMail.SmtpServer = "serag-0ivd22eow"

smtpmail.send(msgmail)

Response.Write("msg recived")

EndSub

Hello Serag and welcome to the forums.
First of all, if your email is received by Hotmail, then I don't thinkthere is a problem with your code. Maybe some wrong happened on its wayto Yahoo. Try to upload your script to a live server and then send theemail again.
Regards,


i saw the same problem in a diffirent thread i will check if i can find it for you but any way try what bilal suggest

try one of those links it might helps
http://forums.asp.net/916696/ShowPost.aspx
http://forums.asp.net/ShowPost.aspx?PageIndex=2&PostID=719622#719622
http://forums.asp.net/846879/ShowPost.aspx
and let me know if you solve it
good luck !!!