I am trying to test an application on GoDaddy and keep getting the following error when I try to open a document. I tried the physical path and using mappath. Any ideas?
Thanks,
Bernie
Server Error in ‘/’ Application.
Operation could destabilize the runtime.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Security.VerificationException: Operation could destabilize the runtime.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[VerificationException: Operation could destabilize the runtime.]
〡.な.(〠 ܨ) +25
〡.〠.() +13
Aspose.Words.Document.ᅑ(Stream , LoadFormat ᅒ, String ᅓ) +368
Aspose.Words.Document…ctor(String fileName, LoadFormat loadFormat, String password) +126
Aspose.Words.Document…ctor(String fileName) +9
WebApplication7._Default.Page_Load(Object sender, EventArgs e) in Default.aspx.vb:19
System.Web.UI.Control.OnLoad(EventArgs e) +99
System.Web.UI.Control.LoadRecursive() +50
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627
Here is my code
Imports System
Imports System.IO
Imports Aspose.Words
Partial Public Class _Default
Inherits System.Web.UI.Page
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
'Dim license As Aspose.Words.License = New Aspose.Words.License()
'license.SetLicense("Aspose.Words.lic")
'Dim doc As Document = New Document("d:\hosting\bernieferencak\reports\temp.docx")
Dim doc As Document = New Document(Server.MapPath("/reports/temp.docx"))
Response.Write("Success")
End Sub
End Class
Version Information: Microsoft .NET Framework Version:2.0.50727.3053; ASP.NET Version:2.0.50727.3053