T
TK
Hi,
I have an ASP.NET web application and almost everything is working fine
excepting failing to make an XML file be secure. There is an XML file which
includes meta-data for both of server-side .NET application and client-side
javascript application. And the meta-data in the XML file shoud be hidden
for unauthenticated clients.
I know ASP.NET doesn't care for .xml files in default setting, so I added a
file extention-application mapping as ".xml" to
"C:\Winnt\Microsoft.NET\Framework\v1.1.4322\aspnet_isapi.dll" for all verbs.
Yes, it works for client-side script. I succeeded to hide such meta-data
from unauthenticated users. But server side, now I have a problem not only
for unauthenticated users but also authenticated users.
I have a server-side code such as following.
XmlDocument doc = new XmlDocument();
doc.Load("http://......../metadata.xml");
Now the 2nd line always throw an XML exception as "This is an unexpected
token, The expected token is 'QUOTE'. line 2 position 64"
Ofcourse, the XML file has correct tag structure, and everything was OK
until I added an application mapping for ".xml" files in IIS admin tool.
What's happen here?
Does anyone have experienced something like this? or any idea?
best regards,
TK
I have an ASP.NET web application and almost everything is working fine
excepting failing to make an XML file be secure. There is an XML file which
includes meta-data for both of server-side .NET application and client-side
javascript application. And the meta-data in the XML file shoud be hidden
for unauthenticated clients.
I know ASP.NET doesn't care for .xml files in default setting, so I added a
file extention-application mapping as ".xml" to
"C:\Winnt\Microsoft.NET\Framework\v1.1.4322\aspnet_isapi.dll" for all verbs.
Yes, it works for client-side script. I succeeded to hide such meta-data
from unauthenticated users. But server side, now I have a problem not only
for unauthenticated users but also authenticated users.
I have a server-side code such as following.
XmlDocument doc = new XmlDocument();
doc.Load("http://......../metadata.xml");
Now the 2nd line always throw an XML exception as "This is an unexpected
token, The expected token is 'QUOTE'. line 2 position 64"
Ofcourse, the XML file has correct tag structure, and everything was OK
until I added an application mapping for ".xml" files in IIS admin tool.
What's happen here?
Does anyone have experienced something like this? or any idea?
best regards,
TK