Custom ASP.NET file error

Hi,

We are developping a custom ASP.NET page to upload an excel file. Once this fileis uploaded, we're using the webservice interface to import/update those "excel records" into a custom entity. That part works perfectly !

We created a buttongroup that invokes a customdotnetfile. Here is the only line from that customdonetfile: AddUrlButton("Upload File", "Upload.gif", Url("../ExcelImports/Upload.aspx"));

Once we are clicking on the buttongroup, we are able to click on the second button : "Upload File" that invokes the Upload.aspx file.

We have tested this on a development machine and it worked. Now we are moving the asp.net file to the main server and boom :

404 - File or directory not found.
The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable.

What are we doing wrong ?! This thing is driving me crazy....

Thanks for your help !

  • 0

    And how do the paths differ?

    The customdotnet assembly correctly loads the asp.net file from the button.

    AddUrlButton("Upload File", "Upload.gif", Url("../ExcelImports/Upload.aspx"));

    Have you echoed out in the aspx path the Request path that is resolved? If the page is found I assmue you can enter the path in a browser address field straight away.

    You need to consider the Requested URL and the Physical Path. See: msdn.microsoft.com/.../ms524602(v=vs.90).aspx

    What about the non-working production server? What is the Request path that is resolved? The 404 error (if full reporting is enabled) will return the Requested URL and the Physical Path.

  • 0

    Hello Jeff,

    Thanks for your answer.

    The Visual Studio Machine I'am working works perfectly....in debug mode. So I've never deploy the files to an IIS server. I'm trying to install my ASPX page on the IIS/SageCRM server but I've several error messages like

    "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."

    I'm kinda lost here and here are all the questions I've for you :

    1. Which framework I've to use ? The one on the "database name" app pool ?
    2. Where do I have to copy the aspx file and the "bin" folder containing the dll file?
    3. Do I have to create a virtual directory or SageCRM will handle this part ?
    4. Is there an article who describes how to create and deploy a simple asp.net webapplication for SageCRM ?

    Thanks in advance for your help !

    Regards,

    Stephen

  • 0

    Stephen

    I am not sure how to advise you. I don't work with ASP.NET pages very often. I either work with classic ASP pages or the actual Sage CRM .NET custom assemblies or with the different web service interfaces.

    Both the soap web services and .NET API were originally developed for the .NET Framework 2.0 but I don't think you are asking that.

    As for location of an ASP.NET page then if you are linking it to the Sage CRM interface from a Tab or from a list hyperlink (customjump) then you would need to put the file under the CustomPages folder within the Sage CRM wwwroot folder. You would probably put that in its own subfolder within CustomPages. I don't know whether you would need to create virtual directory as the path to that folder as the properties for the CustomPages support execution of files.

    I have written only a few articles in the past about ASP.NET and this is the one which may help the most (including the comments)

    community.sagecrm.com/.../combining-crm-webservices-and-asp-net.aspx

    I don hope this is of some help.

  • 0

    Jeff,

    The solution was so simple : in IIS, I'd just had to convert the folder I created in WWWRoot to Application !

    Thanks for your help.