Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...DNN 3.2.2. install on hosting site breaks asp.net - need help pleaseDNN 3.2.2. install on hosting site breaks asp.net - need help please
Previous
 
Next
New Post
3/22/2006 6:02 PM
 

it would probably be better to try a test script that utilises the xmlserializer, as the location of the %TEMP% folder may not be c:\temp, and the issue is one of temporary assemplies created there.

Cathal


Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
3/23/2006 3:50 AM
 
cathal wrote

it would probably be better to try a test script that utilises the xmlserializer, as the location of the %TEMP% folder may not be c:\temp, and the issue is one of temporary assemplies created there.

Cathal


That was a mistake in my code. I have now combined your example and mine and I still get a success so i dont think this is a file access issue:

ASP.NET version: 1.1.4322.2300
tempFileAccess=True


<%@ Import Namespace=System %>
<%@ Import Namespace=System.IO %>
<%@ Page language="c#"  %>
<HTML>
<HEAD>
    <TITLE>.NET Framework Version</TITLE>
    <SCRIPT language="C#" runat=server>
        public void Page_Load(object sender, System.EventArgs e)
        {
            bool tempFileAccess = false;

            Response.Write("ASP.NET version: " + System.Environment.Version.ToString() + "<br>");
            TimeSpan t = (DateTime.UtcNow - new DateTime(1970, 1, 1));
            int timestamp  = (int) t.TotalSeconds;
            string tmpFilename = timestamp + ".txt";
            string tempFile = Path.Combine(Path.GetTempPath(), tmpFilename);

            try
            {
            StreamWriter txtFile = File.CreateText(tempFile);
            txtFile.Write("This is a test to see if we can write to this TEMP folder and consequently make XmlSerializer assemblies without trouble.");
            txtFile.Close();
             }
            catch(System.IO.IOException ex)
            {
                Response.Write("Error: <br>" + ex + "<br>");
            }
            catch(UnauthorizedAccessException ex)
            {
                Response.Write("Error: <br>" + ex + "<br>");
            }
           
            if (File.Exists(tempFile))
            {
            File.Delete(tempFile);
            tempFileAccess = true;
            }
           
            Response.Write("tempFileAccess=" + tempFileAccess);

        }



        </SCRIPT>
</HEAD>
<BODY>
</BODY>
</HTML>


 
New Post
3/23/2006 3:59 AM
 
I have now tested without the standard web.config and then my test asp.net script works fine. So something in web.config is messing up my asp.net.

Maybe it changes the default test directory or asponet user?
 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...DNN 3.2.2. install on hosting site breaks asp.net - need help pleaseDNN 3.2.2. install on hosting site breaks asp.net - need help please


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out