When connecting to the CMS from Template Builder (TB) installed on a 64 bit Windows 7 laptop, we occasionally get the following error:
The underlying connection was closed: An unexpected error occurred on a receive.
at System.Web.Services.Protocols.WebClientProtocol.GetWebResponse(WebRequest request)
at System.Web.Services.Protocols.HttpWebClientProtocol.GetWebResponse(WebRequest request)
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
at Tridion.ContentManager.Templating.CompoundTemplates.DomainModel.Model.Login(Uri contentManager, NetworkCredential credentials)
at Tridion.ContentManager.UI.CompoundTemplateDesigner.DesignerForm.LogonAs(Uri uri, Exception initialError)
This error only seems to occur when accessing from a client machine, and never seems occur when connecting from TB installed on the CMS server itself. This also does not seem to be CMS server specific, as the error also occurs intermittently when connecting to other environments and other client installs. I have tried re-installing TB, but the issue remains.
Has anyone else experienced similar issues, or have suggestions on what may be causing the error?
This can happen if there are too many connections open on the CM Server hosting the Templating Web Service.
Try restarting the server. If still continues add this following config in Templating web service:
<httpRuntime executionTimeout="3600" maxRequestLength="102375" ></httpRuntime>
This will leave the file in ../Tridion/Templating/web.config looking something like the following:
<configuration>
<tridionConfigSections>
<sections>
<clear />
<add filePath="..\config\Tridion.ContentManager.config" />
</sections>
</tridionConfigSections>
<system.web>
<httpRuntime executionTimeout="3600" maxRequestLength="1023750"/>
<authentication mode="Windows" />
<authorization>
<allow users="*" />
<deny users="*" />
</authorization>
<identity impersonate="false" />
</system.web>
<appSettings>
<add key="cmeWebRoot" value="WebUI" />
</appSettings>
</configuration>
Related
HTTP Error 404.7 - Not Found
The request filtering module is configured to deny the file extension.
I am using Visual studio 2013 web express. When I running Defalt.aspx its running fine but when i run materpage.master it throw me this error. I tried a lots of solution and its still not working( i tried to change the web.conf). Anyone know what can I do for this issues>?
code for web.conf
<configuration>
<connectionStrings>
<add name="ConnectionString" connectionString="Provider=MSDAORA;Data Source=XE;Password=1234;User ID=System"
providerName="System.Data.OleDb" />
<add name="databaseString" connectionString="Provider=OraOLEDB.Oracle.1;Data Source=XE;Persist Security Info=True;Password=1234;User ID=system"
providerName="System.Data.OleDb" />
<add name="SOConnectionString" connectionString="Provider=OraOLEDB.Oracle.1;Data Source=XE;Persist Security Info=True;Password=1234;User ID=so"
providerName="System.Data.OleDb" />
</connectionStrings>
<system.web>
<compilation debug="true" targetFramework="4.5.1" />
<httpRuntime targetFramework="4.5.1" />
</system.web>
You don't directly access master pages. You access a content page (.aspx) that references a master page.
All of a sudden i am getting a error 500 on my Asp.Net web application hosted on smarterasp.
I can access the pages but cant access any of the resources (CSS,JS,Images etc)
Here is a CSS File.
The Error : The page cannot be displayed because an internal server
error has occurred.
Even if you try accessing a resource that does not exist, it should through a 404 but instead, you will get a 500. I tried contacting the support and they said everything is fine on their end.
I already have set customErrors=off.
<system.web>
<trace enabled="false" />
<customErrors mode="Off">
</customErrors>
<compilation debug="true" strict="false" explicit="true" targetFramework="4.5" />
<httpRuntime requestValidationMode="2.0" />
<pages controlRenderingCompatibilityVersion="4.0" />
</system.web>
I had defined mimeMap for static contents which was working fine before in web.config but then found out StaticFileModule was already installed on the web server which was causing the problem.
(Probably they recently installed it)
I'm using the freebie plan on somee.com. About one month ago i first upload my asp.net website and it ran without any errors. Now i've made many change to the website with VS2010 and decide to upload a new version. But the server keep showing "Compilation Error" with message:
Compiler Error Message: CS1061: 'pwblog.BusinessObject.ArticleBo' does not contain a definition for 'FormatDate' and no extension method 'FormatDate' accepting a first argument of type 'pwblog.BusinessObject.ArticleBo' could be found (are you missing a using directive or an assembly reference?)
Source Error:
Line 61: pagedDataSource.DataSource = articleBo.FormatDate(Articles);
Here is my FormatDate function:
internal Article[] FormatDate(Article[] source)
{
if (source != null && source.Length > 0)
{
foreach (Article art in source)
{
art.DatePost = DateTime.Parse(art.DatePost).ToShortDateString();
}
}
return source;
}
Actually there's no problem with the function. When I debug with VS2010 it runs well. The only difference I realize between the old one and this newly uploaded one is that I changed my MSSQL from 2008 SP2 to 2008 R2 SP2, due to the fact that I've changed my OS from windows 7 to windows 8.
Also, here's my web.config file:
<?xml version="1.0"?>
<configuration>
<connectionStrings>
<add name="AssignmentsFinalConnectionString" connectionString="workstation id=pwblog01.mssql.somee.com;packet size=4096;user id=pwblog;pwd=Duc123456;data source=pwblog01.mssql.somee.com;persist security info=False;initial catalog=pwblog01"
providerName="System.Data.SqlClient" />
<add name="AssignmentsFinalConnectionString1" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\AssignmentsFinal.mdf;Integrated Security=True;User Instance=True"
providerName="System.Data.SqlClient" />
</connectionStrings>
<system.web>
<authentication mode="Forms">
<forms name="MYWEBAPP.ASPXAUTH" loginUrl="Web\Login.aspx" protection="All" path="/" defaultUrl="Web\"/>
</authentication>
<authorization>
<allow users="*"/>
</authorization>
<compilation debug="true"/>
<globalization uiCulture="vi" culture="vi-VN"/>
<customErrors mode="Off" >
</customErrors>
</system.web>
<system.webServer>
<defaultDocument>
<files>
<add value="index.aspx" />
</files>
</defaultDocument>
</system.webServer>
</configuration>
(pastebin)
Well, I don't believe that the MSSQL cause the problem, but I don't have any other clue. About the error, there's a very long detail messasge attached, so I don't put it here. So, any advice is appreciated. :)
It seems that you're using the function in a wrong way.
you're invoking it as if it was an Articlebo class method; or with an Articlebo instance argument instead of an Article array (I guess Articlebo inherits from Article)
you should post the wrong line anyway
Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file.
Exception Details: System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
My code runs proper in my local server it's create issue when upload it to server.
Have gone through following code but it's not working for me :
Sample 1 :
<system.web>
<securityPolicy>
<trustLevel name="Full" policyFile="internal"/>
</securityPolicy>
</system.web>
Sample 2 :
<location allowOverride="false">
<system.web>
<securityPolicy>
<trustLevel name="Full" policyFile="internal" />
<trustLevel name="High" policyFile="web_hightrust.config" />
<trustLevel name="Medium" policyFile="web_mediumtrust.config" />
<trustLevel name="Low" policyFile="web_lowtrust.config" />
<trustLevel name="Minimal" policyFile="web_minimaltrust.config"/>
</securityPolicy>
</system.web>
</location>
Sample 3 :
<system.web>
<trust level="Full" originUrl="" />
</system.web>
I can't able to access IIS I have only FTP details to upload file. Please suggest me option to solve it from webconfig file.
The approach you used in sample three is similar to my solution, but I did not add the additional attribute that you had. Try this simple approach.
<system.web>
<trust level="Full"/>
</system.web>
This came from an MSDN posting I read.
NOTE: If you are using a shared host, they usually have a web interface to allow read/write access to files.
I don't recommend but you can impersonate a specific account:
<system.web>
<identity impersonate="true" username="user" password="pass" />
</system.web>
Otherwise make sure you have granted proper permission to the file(s) you are trying to access to the Identity being used in your App Pool.
Specify an Identity for an Application Pool (IIS 7)
I have 2 login pages: Login.aspx-for customer login and xlogin.aspx for admin login
i just uploaded my project to the server and all application pages works great
but when i log in the admin xlogin.aspx i'm being forwarded to the admin.aspx page - but i get this error:
Server Error in '/' Application.
Runtime Error
Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.
Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".
<!-- Web.Config Configuration File -->
<configuration>
<system.web>
<customErrors mode="Off"/>
</system.web>
</configuration>
Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.
<!-- Web.Config Configuration File -->
<configuration>
<system.web>
<customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
</system.web>
</configuration>
This is my web.config
<?xml version="1.0"?>
<configuration>
<connectionStrings>
<clear/>
<add name="PROJEntities" connectionString="metadata=res://*/PROJModel.csdl|res://*/PROJModel.ssdl|res://*/PROJModel.msl;provider=System.Data.SqlClient;provider connection string="Data Source=000.000.0.00;Initial Catalog=DBNAME;User ID=MYUSERNAME;Password=MYPASS;MultipleActiveResultSets=True"" providerName="System.Data.EntityClient"/>
</connectionStrings>
<system.web>
<compilation debug="true" targetFramework="4.0" />
<authentication mode="Forms">
<forms loginUrl="~/Login.aspx" timeout="720" slidingExpiration="true" defaultUrl="~/Gateway.ashx"/>
</authentication>
<customErrors mode="Off"/>
<pages enableEventValidation="false" viewStateEncryptionMode="Never"></pages>
</system.web>
<system.webServer>
<modules runAllManagedModulesForAllRequests="true"/>
</system.webServer>
<system.web.extensions>
<scripting>
<webServices>
<jsonSerialization>
<converters>
<add type="PROJ.Presentation.Common.DateTimeConverter" name="DateTimeJavaScriptConverter"/>
</converters>
</jsonSerialization>
</webServices>
</scripting>
</system.web.extensions>
</configuration>
Dear olga is clear what the message says. Turn off the custom errors to see the details about this error for fix it, and then you close them back. So add mode="off" as:
<configuration>
<system.web>
<customErrors mode="Off"/>
</system.web>
</configuration>
Relative answer:
Deploying website: 500 - Internal server error
By the way: The error message declare that the web.config is not the one you type it here. Maybe you have forget to upload your web.config ? And remember to close the debug flag on the web.config that you use for online pages.
Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.
Details: To enable the details of this specific error message to be viewable on remote machines, please create a tag within a "web.config" configuration file located in the root directory of the current web application. This tag should then have its "mode" attribute set to "Off".
This can be the message you receive even when custom errors is turned off in web.config file. It can mean you have run out of free space on the drive that hosts the application. Clean your log files if you have no other space to gain on the drive.
In my case I got this message because there's a special char (&) in my connectionstring, remove it then everything's good.
Cheers