Error - The method has no body.
3 posts • Page 1 of 1
Error - The method has no body.
I get this "The method has no body" error when compiling. The code line below is the culprit. If i comment it out it works but I need this so my DownloadFile class can send events. Is there a way to exclude this or is this a bug?
Error Message and Stack Trace
Thanks
Reg
- Code: Select all
public delegate void DownloadProgressHandler(object sender, DownloadEventArgs e);
Error Message and Stack Trace
- Code: Select all
Error 1 The method has no body.
Server stack trace:
at PostSharp.ExceptionHelper.AssertValidOperation(Boolean condition, String messageKey, Object[] arguments) in p:\branches\1.0\Core\PostSharp.Core\ExceptionHelper.cs:line 127
at PostSharp.CodeModel.MethodDefDeclaration.get_MethodBody() in p:\branches\1.0\Core\PostSharp.Core\CodeModel\MethodDefDeclaration.cs:line 387
at PostSharp.Laos.Weaver.OnMethodInvocationAspectWeaver.ImplementOnSiteWeaving(MethodDefDeclaration originalMethod) in p:\branches\1.0\Laos\PostSharp.Laos.Weaver\OnMethodInvocationAspectWeaver.cs:line 783
at PostSharp.Laos.Weaver.OnMethodInvocationAspectWeaver.Implement() in p:\branches\1.0\Laos\PostSharp.Laos.Weaver\OnMethodInvocationAspectWeaver.cs:line 68
at PostSharp.Laos.Weaver.LaosTask.Execute() in p:\branches\1.0\Laos\PostSharp.Laos.Weaver\LaosTask.cs:line 536
at PostSharp.Extensibility.Project.ExecutePhase(String phase) in p:\branches\1.0\Core\PostSharp.Core\Extensibility\Project.cs:line 1044
at PostSharp.Extensibility.Project.Execute() in p:\branches\1.0\Core\PostSharp.Core\Extensibility\Project.cs:line 1082
at PostSharp.Extensibility.PostSharpObject.ExecuteProjects() in p:\branches\1.0\Core\PostSharp.Core\Extensibility\PostSharpObject.cs:line 581
at PostSharp.Extensibility.PostSharpObject.InvokeProjects(ProjectInvocation[] projectInvocations) in p:\branches\1.0\Core\PostSharp.Core\Extensibility\PostSharpObject.cs:line 564
at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs)
at System.Runtime.Remoting.Messaging.StackBuilderSink.PrivateProcessMessage(RuntimeMethodHandle md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs)
at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg, Int32 methodPtr, Boolean fExecuteInContext)
Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at PostSharp.Extensibility.IPostSharpObject.InvokeProjects(ProjectInvocation[] projectInvocations)
at PostSharp.Extensibility.PostSharpObjectAccessor.InvokeProjects(ProjectInvocation[] projectInvocations) in p:\branches\1.0\Core\PostSharp.Core\Extensibility\PostSharpObjectAccessor.cs:line 41
at PostSharp.MSBuild.PostSharp.Execute() in p:\branches\1.0\Core\PostSharp.MSBuild\PostSharp.cs:line 169 FileDownloader
Thanks
Reg
- rhenderson
- Posts: 9
- Joined: Sat Apr 12, 2008 9:18 pm
- Full Name: Reginald Henderson
- Company: Platinum Xun Solutions
Re: Error - The method has no body.
Hi,
This is a symptom of the Issue 193, which has been solved.
You can download a newer build from http://download.postsharp.org/builds/1.0.
Please confirm it solves your problem or reopen that bug.
Thank you,
Gael
This is a symptom of the Issue 193, which has been solved.
You can download a newer build from http://download.postsharp.org/builds/1.0.
Please confirm it solves your problem or reopen that bug.
Thank you,
Gael
Gael Fraiteur, project leader
got good support? consider donating to the project.
got good support? consider donating to the project.
- gfraiteur
- Site Admin
- Posts: 674
- Joined: Tue Dec 18, 2007 3:09 pm
- Full Name: Gael Fraiteur
- Company: postsharp.org
Re: Error - The method has no body.
Yep. That fixed it!
Thanks!
Thanks!
- rhenderson
- Posts: 9
- Joined: Sat Apr 12, 2008 9:18 pm
- Full Name: Reginald Henderson
- Company: Platinum Xun Solutions
3 posts • Page 1 of 1