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 3:17 PM
 
After I install DNN 3.2.2 on my webhost I then get the error:

"Unable to generate a temporary class (result=1). error CS2001: Source file..."

I even get this when I run a simple version script or asp.net test script. However, If I delete all the DNN files in the website, then asp.net works again. My webhost says my asp.net user does have permissions in the c:\windows\temp directory so I am assuming something else in DNN is not working. Something that changes how asp.net pages are processed. I have even given write permissions to anonymous users but still get the same problem.

Anyone have any ideas?
Thanks in advance
/hass
 
New Post
3/22/2006 4:24 PM
 

the only time I've seen that issue is when the user account that the site is running under has insufficent permissions (e.g. http://support.microsoft.com/?kbid=908158 ). Please check that you have list, read and write permissions on the %temp% folder

Cathal


Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
3/22/2006 4:32 PM
 
I thought that too (after doing a search) but my provider assures me that my asp.net account has sufficient permissions - I guess I could write a test script to see...
 
New Post
3/22/2006 5:05 PM
 

perhaps this script will help.

Cathal


Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
3/22/2006 5:56 PM
 
Thanks - but I had already made a script to check my settings. It checks which dir is used to create asp.net classes and tries to crate a directory there. It gave good results:

C:\WINDOWS\TEMP\
Directory create successfully at 3/22/2006 2:53:02 PM

As all my dmains are the same these settings are the same for my site until I add the DNN files. Somehow they change things (but I cant see this as I cant run any asp.net scripts).

Listing:

<%@ 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)
        {
            Response.Write("ASP.NET version: " + System.Environment.Version.ToString() + "<br>");
string filePath =Path.GetTempPath ();
Response.Write (filePath + "<br>");
TimeSpan t = (DateTime.UtcNow - new DateTime(1970, 1, 1));
int timestamp  = (int) t.TotalSeconds;
string path = @"c:\temp\" + timestamp;
try
{
     // Determine whether the directory exists.
     if (Directory.Exists(path))
     {
          Response.Write ("That path exists already.");
          return;
     }
     // Try to create the directory.
     DirectoryInfo di = Directory.CreateDirectory(path);
     Response.Write("Directory create successfully at " + Directory.GetCreationTime(path));
}
catch(Exception ex)
{
     Response.Write (ex.Message );
}
        }
    </SCRIPT>
</HEAD>
<BODY>
</BODY>
</HTML>


 
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