StrataFrame Forum
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      



XML file name is not a supported file nameExpand / Collapse
Author
Message
Posted 01/15/2008 8:59:19 AM
StrataFrame Beginner

StrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame Beginner

Group: StrataFrame Users
Last Login: 01/16/2008 4:45:24 AM
Posts: 7, Visits: 28
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()

Post #13451
Posted 01/15/2008 1:05:32 PM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: 09/26/2008 8:30:36 AM
Posts: 2,685, Visits: 1,886
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.


www.bungie.net
Post #13468
Posted 01/15/2008 2:32:10 PM
StrataFrame Beginner

StrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame Beginner

Group: StrataFrame Users
Last Login: 01/16/2008 4:45:24 AM
Posts: 7, Visits: 28
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?

Post #13471
Posted 01/15/2008 3:05:18 PM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Today @ 4:52:53 AM
Posts: 4,586, Visits: 4,571
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?
Post #13474
Posted 01/16/2008 4:51:45 AM
StrataFrame Beginner

StrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame Beginner

Group: StrataFrame Users
Last Login: 01/16/2008 4:45:24 AM
Posts: 7, Visits: 28
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.
Post #13484
Posted 01/16/2008 7:11:05 AM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Today @ 4:52:53 AM
Posts: 4,586, Visits: 4,571
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.

Post #13487
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Ben Chase, Trent L. Taylor, Steve L. Taylor

PermissionsExpand / Collapse

All times are GMT -6:00, Time now is 8:00am

Powered by InstantForum.NET v4.1.4 © 2008
Execution: 0.109. 10 queries. Compression Enabled.
Site Map - Home - My Account - Forum - About Us - Contact Us - Try It - Buy It

Microsoft, Visual Studio, and the Visual Studio logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries.