DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Jun 2005
    Posts
    2

    Opening a blank Infopath form from ASP.NET

    Hi Everyone,

    I am new to ASP.NET and I have to open a blank Infopath form from an ASP.NET page.

    I have written the following code:


    XmlDocument infoPathForm = new XmlDocument();
    infoPathForm.Load(Server.MapPath("template.xml"));
    Response.Clear();
    Response.ContentType = "application/ms-infopath.xml";
    Response.Write(infoPathForm);

    By doing this, I am able to get a message box which prompts for me to either open or save the infopath form. But Infopath itself doesn't allow me to open the form any further. It says that the "the form has been given domain security level but it is just allowed restricted security level".

    I tried to change the domain security level to full trust but still the form cannot be opened. No message was given this time.

    I think I have to set up some setting in the IIS server if it has to work. But I cannot figure out what. Does anybody know about this problem?

  2. #2
    Join Date
    Jun 2005
    Posts
    2
    I trid using

    infoPathForm.Save(Response.Output);
    instead of
    Response.Write(infoPathForm);

    It still gives the same error.

    Vikram

  3. #3
    Join Date
    Jul 2005
    Posts
    1
    InfoJet Service is a Java class library to publish InfoPath Forms to the web. InfoJet Service can be deployed as Web Services. J2EE and .Net web application with integration of InfoJet Service support the users to edit InfoPath Forms in Internet Explorer and FireFox.

    http://www.infojetsoft.com

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links