Click here to Skip to main content
15,914,111 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questionasp textbox inside a table Pin
DanB198320-Dec-06 12:32
DanB198320-Dec-06 12:32 
AnswerRe: asp textbox inside a table Pin
minhpc_bk20-Dec-06 14:11
minhpc_bk20-Dec-06 14:11 
GeneralRe: asp textbox inside a table Pin
prolibertine20-Dec-06 22:57
prolibertine20-Dec-06 22:57 
QuestionHow to Update Gridview with callback Pin
ben220-Dec-06 11:52
ben220-Dec-06 11:52 
AnswerRe: How to Update Gridview with callback Pin
minhpc_bk20-Dec-06 14:14
minhpc_bk20-Dec-06 14:14 
GeneralRe: How to Update Gridview with callback Pin
ben220-Dec-06 15:32
ben220-Dec-06 15:32 
GeneralRe: How to Update Gridview with callback Pin
prolibertine20-Dec-06 23:00
prolibertine20-Dec-06 23:00 
Questionsecurity and SMTP [modified] Pin
whatever10120-Dec-06 10:21
whatever10120-Dec-06 10:21 
I am using Visual Studio 2005 / .Net 2.0 / WinXP SP2 / IIS 5.x on Win 2000 server w/ SP3

It works fine on unsecured/public servers

I am writing a browser hosted image viewing application/control for viewing waaay oversized images (usually ~4000X4000 at 300dpi) that should work in both browser pages, secured or not, and in applications. It has the ability to scale/rotate/move the image around as well as the ability to email/fax one or more loaded images. When the user allows full unrestricted trust, it can interact with Outlook to email images. When the trust is below that, it uses SMTP to direct send the email with attachments.

The component works fine on all servers on which I have tested, including all email options, except when run from a secure (https) site.

On an https/secure site, when I set the policy below full trust, and I attempt to email, it uses SMTP as it should. However, when it tries to create the SmtpClient object (obj = SmtpClient(<host>)), I get the following exception during the call:

System.Xml.XmlException: '>' is an unexpected token. The expected token is '"' or '''. Line 2, position 63.

Originally, it complained the error was coming from a file called "iexplore.exe.config", however this file does not exist anywhere. I followed MS MSDN configuration suggestion and added a configuration link to the ASP.NET page and creating a "config" for my application. Now I am still getting the same error, but from the apps' config file, which only has an empty "configuration" tag at this point. I cannot seem to find anything else useful online about this (most google searches give me mostly useless unrelated junk).

If it helps, here is the exact error message I get:

--------------------------------------------
Configuration system failed to initialize
System.Configuration.ConfigurationErrorsException: '>' is an unexpected token. The expected token is '"' or '''. Line 2, position 63. (https://[host]/x/[assembly].config line 2) ---> System.Xml.XmlException: '>' is an unexpected token. The expected token is '"' or '''. Line 2, position 63.
at System.Xml.XmlTextReaderImpl.Throw(Exception e)
at System.Xml.XmlTextReaderImpl.DtdParserProxy.System.Xml.IDtdParserAdapter.Throw(Exception e)
at System.Xml.DtdParser.Throw(Int32 curPos, String res, String[] args)
at System.Xml.DtdParser.ThrowUnexpectedToken(Int32 pos, String expectedToken1, String expectedToken2)
at System.Xml.DtdParser.ParseExternalId(Token idTokenType, Token declType, String& publicId, String& systemId)
at System.Xml.DtdParser.ParseInDocumentDtd(Boolean saveInternalSubset)
at System.Xml.DtdParser.Parse(Boolean saveInternalSubset)
at System.Xml.XmlTextReaderImpl.ParseDoctypeDecl()
at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
at System.Xml.XmlTextReaderImpl.Read()
at System.Xml.XmlTextReader.Read()
at System.Configuration.XmlUtil..ctor(Stream stream, String name, Boolean readToFirstElement, ConfigurationSchemaErrors schemaErrors)
at System.Configuration.BaseConfigurationRecord.InitConfigFromFile()
--- End of inner exception stack trace ---
at System.Configuration.ConfigurationSchemaErrors.ThrowIfErrors(Boolean ignoreLocal)
at System.Configuration.BaseConfigurationRecord.ThrowIfParseErrors(ConfigurationSchemaErrors schemaErrors)
at System.Configuration.BaseConfigurationRecord.ThrowIfInitErrors()
at System.Configuration.ClientConfigurationSystem.EnsureInit(String configKey)
Additional:Configuration system failed to initialize

-------------------------------------
Here is additional info from the exception I am outputing as well...

Data:System.Collections.ListDictionaryInternal
@ System.Configuration,System.Object GetSection(System.String),,0






-- modified at 19:56 Wednesday 20th December, 2006
QuestionWhat's wrong with my asp:Literal??? [modified] Pin
code-frog20-Dec-06 10:15
professionalcode-frog20-Dec-06 10:15 
AnswerRe: What's wrong with my asp:Literal??? Pin
code-frog20-Dec-06 10:19
professionalcode-frog20-Dec-06 10:19 
GeneralRe: What's wrong with my asp:Literal??? Pin
minhpc_bk20-Dec-06 14:07
minhpc_bk20-Dec-06 14:07 
GeneralRe: What's wrong with my asp:Literal??? Pin
code-frog20-Dec-06 16:25
professionalcode-frog20-Dec-06 16:25 
GeneralRe: What's wrong with my asp:Literal??? Pin
minhpc_bk20-Dec-06 17:29
minhpc_bk20-Dec-06 17:29 
QuestionDisable root node collapse on treeview with databind? Pin
walkeraj20-Dec-06 9:59
walkeraj20-Dec-06 9:59 
Questionsending data from child gridview to parent gridview Pin
srishree20-Dec-06 9:45
srishree20-Dec-06 9:45 
QuestionEmitting simple plain text rather than HTML Pin
Nadia Monalisa20-Dec-06 9:31
Nadia Monalisa20-Dec-06 9:31 
AnswerRe: Emitting simple plain text rather than HTML Pin
Netricity20-Dec-06 11:58
Netricity20-Dec-06 11:58 
GeneralRe: Emitting simple plain text rather than HTML Pin
Nadia Monalisa21-Dec-06 8:01
Nadia Monalisa21-Dec-06 8:01 
QuestionCSV file - How to Pin
alexfromto20-Dec-06 9:15
alexfromto20-Dec-06 9:15 
AnswerRe: CSV file - How to Pin
ToddHileHoffer20-Dec-06 9:23
ToddHileHoffer20-Dec-06 9:23 
QuestionModifing web gridview control Pin
Quecumber25620-Dec-06 8:52
Quecumber25620-Dec-06 8:52 
AnswerRe: Modifing web gridview control Pin
ToddHileHoffer20-Dec-06 9:07
ToddHileHoffer20-Dec-06 9:07 
GeneralRe: Modifing web gridview control Pin
Quecumber25620-Dec-06 9:29
Quecumber25620-Dec-06 9:29 
GeneralRe: Modifing web gridview control Pin
ToddHileHoffer20-Dec-06 9:51
ToddHileHoffer20-Dec-06 9:51 
GeneralRe: Modifing web gridview control Pin
Quecumber25620-Dec-06 10:26
Quecumber25620-Dec-06 10:26 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.