Unexpected error has occurred while verifying the form template

  • Thread starter Gerben van Erkelens
  • Start date
G

Gerben van Erkelens

Hi there,

I designed a form and made it browser compatible and browser enabled
it. Then I published it to the sharepoint form library. During this
processes you get a message when some things aren't compatible with
the web service of Infopath. However I didnt got any.
Opening the form in Infopath and let the design checker check the
form. I got one message of a language pack that wasn't installed
(which is installed now) and one error (Unexpected error has occurred
while verifying the form template). I don't quite know what is wrong
with the form! Does anybody has an answer?
 
M

Mike

Hi there,

I designed a form and made it browser compatible and browser enabled
it. Then I published it to the sharepoint form library. During this
processes you get a message when some things aren't compatible with
the web service of Infopath. However I didnt got any.
Opening the form in Infopath and let the design checker check the
form. I got one message of a language pack that wasn't installed
(which is installed now) and one error (Unexpected error has occurred
while verifying the form template). I don't quite know what is wrong
with the form! Does anybody has an answer?

Have you saved the form? Try closing infopath and then re-opening it
and see if you are able to verify then. Are you verifying using
infopath or on the server form upload page?

Try and use the server form upload page, I have found that this is
clearer with the problems than infopath actually is, it may help you
get to the bottom of the problem.
 
G

Gerben van Erkelens

Have you saved the form? Try closing infopath and then re-opening it
and see if you are able to verify then. Are you verifying using
infopath or on the server form upload page?

Try and use the server form upload page, I have found that this is
clearer with the problems than infopath actually is, it may help you
get to the bottom of the problem.

I did save the form and restarted InfoPath. The same error persists.
When I tried to upload from the server upload page it didn't stated
any errors at all.

However when clicking on the recently added infopath file it gives me
the error:


Requested registry access is not allowed. at
Microsoft.Win32.RegistryKey.OpenSubKey(String name, Boolean writable)
at Microsoft.Win32.Registry.GetValue(String keyName, String
valueName, Object defaultValue)
at
Microsoft.Office.InfoPath.Server.Runtime.FormServer.<>c__DisplayClass1.<DeterminePremiumSku>b__0
()
at Microsoft.Office.Server.Security.SecurityContext.RunAsProcess
(CodeToRunElevated secureCode)
at
Microsoft.Office.InfoPath.Server.Runtime.FormServer.DeterminePremiumSku
()
at Microsoft.Office.InfoPath.Server.Runtime.FormServer.get_IsPremium
()
at Microsoft.Office.InfoPath.Server.Controls.FormServerPage.OnInit
(EventArgs e)
at System.Web.UI.Control.InitRecursive(Control namingContainer)
at System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest()
at System.Web.UI.Page.ProcessRequest(HttpContext context)
at
Microsoft.Office.InfoPath.Server.Controls.FormServerPage.ProcessRequest
(HttpContext context)
at ASP._layouts_formserver_aspx.ProcessRequest(HttpContext
context)
at
System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute
()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step,
Boolean& completedSynchronously)
 
M

Mike

I did save the form and restarted InfoPath. The same error persists.
When I tried to upload from the server upload page it didn't stated
any errors at all.

However when clicking on the recently added infopath file it gives me
the error:

Requested registry access is not allowed.   at
Microsoft.Win32.RegistryKey.OpenSubKey(String name, Boolean writable)
   at Microsoft.Win32.Registry.GetValue(String keyName, String
valueName, Object defaultValue)
   at
Microsoft.Office.InfoPath.Server.Runtime.FormServer.<>c__DisplayClass1.<DeterminePremiumSku>b__0
()
   at Microsoft.Office.Server.Security.SecurityContext.RunAsProcess
(CodeToRunElevated secureCode)
   at
Microsoft.Office.InfoPath.Server.Runtime.FormServer.DeterminePremiumSku
()
   at Microsoft.Office.InfoPath.Server.Runtime.FormServer.get_IsPremium
()
   at Microsoft.Office.InfoPath.Server.Controls.FormServerPage.OnInit
(EventArgs e)
   at System.Web.UI.Control.InitRecursive(Control namingContainer)
   at System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
   at System.Web.UI.Page.ProcessRequest(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
   at System.Web.UI.Page.ProcessRequest()
   at System.Web.UI.Page.ProcessRequest(HttpContext context)
   at
Microsoft.Office.InfoPath.Server.Controls.FormServerPage.ProcessRequest
(HttpContext context)
   at ASP._layouts_formserver_aspx.ProcessRequest(HttpContext
context)
   at
System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute
()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step,
Boolean& completedSynchronously)

Does the form have any code in it or use any data sources that are not
compatible with infopath services?
 
G

Gerben van Erkelens

Does the form have any code in it or use any data sources that are not
compatible with infopath services?

I have one data connection. Put the problem persists. I even deleted
the data connection and uploaded again. When trying to view it, it
gives the same error.
The key's mentioned in the error do have the right permissions set on
the server! That's why I find it so strange.
 
M

Mike

I have one data connection. Put the problem persists. I even deleted
the data connection and uploaded again. When trying to view it, it
gives the same error.
The key's mentioned in the error do have the right permissions set on
the server! That's why I find it so strange.

Sometimes the form will generate code in the background. Have you
removed the code from the form using the form options?

Tools->Form options->programming->remove code.
 
G

Gerben van Erkelens

Sometimes the form will generate code in the background. Have you
removed the code from the form using the form options?

Tools->Form options->programming->remove code.

I don't have the possibilty to remove code. The button is inactive.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top