After visual studio 2008

E

Eray

Hello. I have been using infopath 2007 for a long time without problem. Last
week i installed visual studio web 2008 expres edition and after that i
started getting a security error regardless what kind of code that i write
with infopath forms. I create a form and put some really simple codes behind
that form such as messagebox.show however as soon as i run the code by
clicking a button on the form i get the error below. I uninstalled visual st
web 2008, i uninstalled .net 3 but still i have exactly same thing. I tried
to reinstall office but doesnt solve the problem. I am thinking that .net 3.0
did something which infopath doesnt like. i really do not want to reinstall
everyting included windows but right now it seems that there is no option.
Do you have any ideas about that or have you seen anything like that before?
Thank You

ERROR
----------------------------------
System.Security.SecurityException was unhandled by user code
Message="Request failed."
Source="Microsoft.Office.InfoPath.Client.Internal.Host"
StackTrace:
at Microsoft.Office.InfoPath.MsxmlNavigator.IsValidNode(MsxmlNode test)
at Microsoft.Office.InfoPath.MsxmlNavigator.MoveToFirstChild()
at MS.Internal.Xml.XPath.XPathChildIterator.MoveNext()
at MS.Internal.Xml.XPath.ChildrenQuery.Advance()
at MS.Internal.Xml.XPath.ChildrenQuery.Advance()
at MS.Internal.Xml.XPath.XPathSelectionIterator.MoveNext()
at System.Xml.XPath.XPathNavigator.SelectSingleNode(XPathExpression
expression)
at System.Xml.XPath.XPathNavigator.SelectSingleNode(String xpath,
IXmlNamespaceResolver resolver)
at Template1.FormCode.CTRL2_5_Clicked(Object sender, ClickedEventArgs
e)
at
Microsoft.Office.InfoPath.Internal.ButtonEventHost.OnButtonClick(DocActionEvent pEvent)
at
Microsoft.Office.Interop.InfoPath.SemiTrust._ButtonEventSink_SinkHelper.OnClick(DocActionEvent pEvent)
 
B

BobCh

I would put try catch blocks around your code, and debug where the
error is coming from.

/bac
 
E

Eray

my code is not wrong.Basicly whatever code i type there, i get same security
error. even if i write some try catch blocks, at the very first line of code
i get security berror.
 

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