I have a usercontrol that works perfectly on my development PC, but when i move it to my server the user control wont load and i get this error (in a nice red box):
Error creating control (/usercontrols/IpEdit.ascx).
Maybe file doesn't exists or the usercontrol has a cache directive,
which is not allowed! See the tracestack for more information!
In the trace i can see this:
Trace Information Category Message From First(s) From Last(s) aspx.page Begin PreInit umbracoInit handling request 4,30222276853622E-05 0,000043
Unhandled Execution Error Guid should contain 32 digits with 4 dashes (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx). at System.Guid..ctor(String g) at umbraco.UmbracoDefault.Page_PreInit(Object sender, EventArgs e) at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) at System.EventHandler.Invoke(Object sender, EventArgs e) at System.Web.UI.Page.OnPreInit(EventArgs e) at System.Web.UI.Page.PerformPreInit() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
I have of course checked that all files are where they should be. Both environments are Umbraco version 4.0.2.1
Can it be you have a scriptmanager in your local install and not in the copy on the server? If you add a scriptmanager to your template, it might help.
Error creating control (usercontrols/DropdownLinkForm.ascx).
Maybe file doesn't exists or the usercontrol has a cache directive,
which is not allowed! See the tracestack for more information!
Using the same information by Slace - i was able to solve my issue - cheers slace
hi - thanks for the suggestion but these cookiecuter solutions are worthless. If there is someone who knows how postbacks and usercontrols work, helpful information would be appreciated.
this is a very simple matter that works perfectly fine in dev envoronmnet (asp.net only) but when moved to umbraco it has been nothing but problems and a waste of over two days time. The issue is with a very very simple usercontrol in an umbraco masterpage like such.
THE PROBLEM: simple -- no postback event occurs when clicking the checkbox; an autopostback should occur and the field should change to either "checked" or "unchecked" yet no postback. I am looking at the get/post request captures in firebug and each time the checkbox is selected no post occurs; simply the page refreshes the state. The page is in secure mode (SSL). Again this is pretty simple and basic and it works fine in asp.net dev testing environment. Oh, yes the page has a "form" with a "runat" equals server tag. Yes i have check the "browse properties" of the macro -- no problems. Does anyone have ideas?
I just encountered the same problems when I deploy some ascx files to the remote server. After I follow slace's advice, I see the following errors.
I have tried to set the permissions for the folders and copied all of the ascx files to the remote folder. Finally, the content of MyMessageControl.ascx shows. But the error still there in macro properties browser
Usercontrol issue
I have a usercontrol that works perfectly on my development PC, but when i move it to my server the user control wont load and i get this error (in a nice red box):
Error creating control (/usercontrols/IpEdit.ascx).
Maybe file doesn't exists or the usercontrol has a cache directive, which is not allowed! See the tracestack for more information!
In the trace i can see this:
Trace Information
Category Message From First(s) From Last(s)
aspx.page Begin PreInit
umbracoInit handling request 4,30222276853622E-05 0,000043
Unhandled Execution Error
Guid should contain 32 digits with 4 dashes (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx).
at System.Guid..ctor(String g)
at umbraco.UmbracoDefault.Page_PreInit(Object sender, EventArgs e)
at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e)
at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)
at System.EventHandler.Invoke(Object sender, EventArgs e)
at System.Web.UI.Page.OnPreInit(EventArgs e)
at System.Web.UI.Page.PerformPreInit()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
I have of course checked that all files are where they should be. Both environments are Umbraco version 4.0.2.1
Does anybody know what the problemcan be?
Thanks
Mikael
The first thing worth checking is your permissions:
http://umbraco.org/documentation/books/important-files-and-folder-structure/permissions
Just in case this is what's causing the issue.
Tim
Can it be you have a scriptmanager in your local install and not in the copy on the server? If you add a scriptmanager to your template, it might help.
Peter
Easiest way to debug problems with a macro usercontrol is to go to Developer -> Macros -> macro name -> Browse Properties
This will show you the full stack trace.
Most likely thoughts are:
Thanks guys.
Using Slace's advice i quickly found out is was a connectionstring issue (diferent connectionstrings in the two environments).
Everything is working fine now.
Mikael
Awesome - I had the following error:
Error creating control (usercontrols/DropdownLinkForm.ascx).
Maybe file doesn't exists or the usercontrol has a cache directive, which is not allowed! See the tracestack for more information!
Using the same information by Slace - i was able to solve my issue - cheers slace
Yep, Slace has a quite good idea :-), it helped solving my problem the same way
hi - thanks for the suggestion but these cookiecuter solutions are worthless. If there is someone who knows how postbacks and usercontrols work, helpful information would be appreciated.
this is a very simple matter that works perfectly fine in dev envoronmnet (asp.net only) but when moved to umbraco it has been nothing but problems and a waste of over two days time. The issue is with a very very simple usercontrol in an umbraco masterpage like such.
usercontrol content:
Username:
Reset
masterpage content
<%@ Master Language="C#" MasterPageFile="~/masterpages/masterpage.master" Inherits="secure_check" AutoEventWireup="true" %>
<asp:content ContentPlaceHolderId="CP2" runat="server">
<ajaxToolkit:ToolkitScriptManager ID="tsm1" runat="server" LoadScriptsBeforeUI="false" CombineScripts="true" EnablePartialRendering="true" ScriptMode="Release" />
<section id="content">
<umbraco:Macro Alias="myMacro1" runat="server">umbraco:Macro>
section>
asp:content>
THE PROBLEM: simple -- no postback event occurs when clicking the checkbox; an autopostback should occur and the field should change to either "checked" or "unchecked" yet no postback. I am looking at the get/post request captures in firebug and each time the checkbox is selected no post occurs; simply the page refreshes the state. The page is in secure mode (SSL). Again this is pretty simple and basic and it works fine in asp.net dev testing environment. Oh, yes the page has a "form" with a "runat" equals server tag. Yes i have check the "browse properties" of the macro -- no problems. Does anyone have ideas?
here is the checkbox:
<p>
<asp:CheckBox ID="chgpwd" EnableViewState="true" runat="Server" AutoPostBack="true" Checked="False" />
Reset
<img id="Image4" runat="server" src="image source path here" />
</p>
I just encountered the same problems when I deploy some ascx files to the remote server. After I follow slace's advice, I see the following errors.
I have tried to set the permissions for the folders and copied all of the ascx files to the remote folder. Finally, the content of MyMessageControl.ascx shows. But the error still there in macro properties browser
My Credits goes here
Thanks to Slace ... it was just a piece of cake to get to the real problem :-)
I see everybody is thanking Slace for the solution ... Where can I find Slace's solution ? as I can't find it on this page.
is working on a reply...