XML file name is not a supported file name


Author
Message
GRocchi
GRocchi
StrataFrame Beginner (26 reputation)StrataFrame Beginner (26 reputation)StrataFrame Beginner (26 reputation)StrataFrame Beginner (26 reputation)StrataFrame Beginner (26 reputation)StrataFrame Beginner (26 reputation)StrataFrame Beginner (26 reputation)StrataFrame Beginner (26 reputation)StrataFrame Beginner (26 reputation)
Group: Forum Members
Posts: 18, Visits: 56
Hi,
after some editing in the Role Based Security Editor SecurityDialog from within tha applicaton, the following error occurs during Application initialization:

NotSupportedException
  The given XML file name is not a supported file name.

Source     : MicroFour StrataFrame Base

Stack Trace:
   in
MicroFour.StrataFrame.UI.Localization.RegisterEmbeddedXmlFile(Assembly
ContainingAssembly, String FullPath)
   in
MicroFour.StrataFrame.Application.StrataFrameApplication.LoadLocalizatio
nFromAssembly(Assembly LoadedAssembly)
   in
MicroFour.StrataFrame.Application.StrataFrameApplication.RunApplication(
)
   in SPS.Explorer.AppMain.Main() in C:\Documents and
Settings\TitoBrasolin\Documenti\Progetti\SPS\src\SPS.Explorer\AppMain.vb
:riga 26
   in System.AppDomain._nExecuteAssembly(Assembly assembly, String[]
args)
   in System.AppDomain.nExecuteAssembly(Assembly assembly, String[]
args)
   in System.Runtime.Hosting.ManifestRunner.Run(Boolean checkAptModel)
   in System.Runtime.Hosting.ManifestRunner.ExecuteAsAssembly()
   in
System.Runtime.Hosting.ApplicationActivator.CreateInstance(ActivationCon
text activationContext, String[] activationCustomData)
   in
System.Runtime.Hosting.ApplicationActivator.CreateInstance(ActivationCon
text activationContext)
   in
Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssemblyDebugInZo
ne()
   in System.Threading.ThreadHelper.ThreadStart_Context(Object state)
   in System.Threading.ExecutionContext.Run(ExecutionContext
executionContext, ContextCallback callback, Object state)
   in System.Threading.ThreadHelper.ThreadStart()

Gianpaolo Rocchi

StrataFrame Team
S
StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)
Group: StrataFrame Developers
Posts: 3K, Visits: 2.5K
Do you have any .XML files that are embedded in your application?  It looks like the system is trying to load an XML file that was embedded within one of the assemblies and the name is not in the proper format to be one of the XML files.
GRocchi
GRocchi
StrataFrame Beginner (26 reputation)StrataFrame Beginner (26 reputation)StrataFrame Beginner (26 reputation)StrataFrame Beginner (26 reputation)StrataFrame Beginner (26 reputation)StrataFrame Beginner (26 reputation)StrataFrame Beginner (26 reputation)StrataFrame Beginner (26 reputation)StrataFrame Beginner (26 reputation)
Group: Forum Members
Posts: 18, Visits: 56
Hi Ben,

as you cab see on stack trace, it seems that SF is looking for some kind of localization resource. Remember that the application is using ITALIAN language (1040). The application starts correctly the first time in debug mode, then all the next times it presents the error reported and refuses to start.

Any idea?

Gianpaolo Rocchi

Trent Taylor
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
The language should not make a difference.  What is the name of the file that you are including in the application?  Also, did you set the XMl to be embedded instead of Content?  Finally, what is on line 26 of your AppMain.vb file?
GRocchi
GRocchi
StrataFrame Beginner (26 reputation)StrataFrame Beginner (26 reputation)StrataFrame Beginner (26 reputation)StrataFrame Beginner (26 reputation)StrataFrame Beginner (26 reputation)StrataFrame Beginner (26 reputation)StrataFrame Beginner (26 reputation)StrataFrame Beginner (26 reputation)StrataFrame Beginner (26 reputation)
Group: Forum Members
Posts: 18, Visits: 56
We finally set the point. The code that parses the application manifest searches for string containing "message" or "messages" and, if found, try to load the resource. A reference added to the project contains a "MessageType.xml" indication that SF code try to load without success. A NotSupportedException is fired. Maybe the parsing algorithm should be a bit more precise in locating SF resources.

Gianpaolo Rocchi
Trent Taylor
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
A NotSupportedException is fired. Maybe the parsing algorithm should be a bit more precise in locating SF resources.

We can add an underscore to the search.  We look for "message*.xml" ... so I could see how that caused a problem.  Glad you got it figured out.

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search