|
Hi, I have downloaded a gridview eg from this site..
when iam executing Iam gettign an error as below
Error 1 C:\Inetpub\wwwroot\Grid view color change\WebSite1\Default.aspx: ASP.NET runtime error: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS. (C:\Inetpub\wwwroot\Grid view color change\website1\web.config line 51) C:\Inetpub\wwwroot\Grid view color change\WebSite1\Default.aspx 1 1 C:\...\Grid view color change\
Can u please suggest me how to handle this error step by step
|
|
|
|
|
If any of the subfolder of your website under iis has web.config files, then error might be occured.
Copy the files in the folder 'WebSite1' to 'C:\Inetpub\wwwroot\WebSite1' instead of 'C:\Inetpub\wwwroot\Grid view color change\WebSite1\' and then configure it as a website in IIS.
Hope this will help you.
|
|
|
|
|
phani25485 wrote: \wwwroot\Grid view color change\website1\web.config
Website1 should be specified as a website. Use the ConvertToApplication menu option in the IIS on this folder.
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
hi guys i want to know about .net3.5 features...,
i need its advanced controls and how to use it...,
and i need its clear documentation..,
where i will get..,plz send me the urls
Thanks & Regards,
Member 3879881,
please don't forget to vote on the post
|
|
|
|
|
|
One of my friend can tell this[^]
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
I just recently started messing with ASP.NET, and when I wanted to move my website to an IIS server I have It copies fine.
The webpages also seem to functioning properly, but I get an error each time I attempt to log in.
It works exactly the way I want it when I debug but breaks when I copy.
Server Error in '/' Application.
User does not have permission to perform this action.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Data.SqlClient.SqlException: User does not have permission to perform this action.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[SqlException (0x80131904): User does not have permission to perform this action.]
System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) +6243961
System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) +245
System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) +2811
System.Data.SqlClient.SqlInternalConnectionTds.CompleteLogin(Boolean enlistOK) +53
System.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo serverInfo, String newPassword, Boolean ignoreSniOpenTimeout, Int64 timerExpire, SqlConnection owningObject) +248
System.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(String host, String newPassword, Boolean redirectedUserInstance, SqlConnection owningObject, SqlConnectionString connectionOptions, Int64 timerStart) +6259898
System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(SqlConnection owningObject, SqlConnectionString connectionOptions, String newPassword, Boolean redirectedUserInstance) +6259864
System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, Object providerInfo, String newPassword, SqlConnection owningObject, Boolean redirectedUserInstance) +354
System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection) +300
System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnection owningConnection, DbConnectionPool pool, DbConnectionOptions options) +54
System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject) +6261128
System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject) +81
System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject) +1657
System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) +88
System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +6264567
System.Data.SqlClient.SqlConnection.Open() +258
System.Web.DataAccess.SqlConnectionHolder.Open(HttpContext context, Boolean revertImpersonate) +82
System.Web.DataAccess.SqlConnectionHelper.GetConnection(String connectionString, Boolean revertImpersonation) +3983674
System.Web.Security.SqlMembershipProvider.GetPasswordWithFormat(String username, Boolean updateLastLoginActivityDate, Int32& status, String& password, Int32& passwordFormat, String& passwordSalt, Int32& failedPasswordAttemptCount, Int32& failedPasswordAnswerAttemptCount, Boolean& isApproved, DateTime& lastLoginDate, DateTime& lastActivityDate) +3052628
System.Web.Security.SqlMembershipProvider.CheckPassword(String username, String password, Boolean updateLastLoginActivityDate, Boolean failIfNotApproved, String& salt, Int32& passwordFormat) +213
System.Web.Security.SqlMembershipProvider.ValidateUser(String username, String password) +164
System.Web.UI.WebControls.Login.AuthenticateUsingMembershipProvider(AuthenticateEventArgs e) +75
System.Web.UI.WebControls.Login.AttemptLogin() +152
System.Web.UI.WebControls.Login.OnBubbleEvent(Object source, EventArgs e) +124
System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +70
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +29
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2981
Version Information: Microsoft .NET Framework Version:2.0.50727.4918; ASP.NET Version:2.0.50727.4918
|
|
|
|
|
It seems that the asp.net web application in the server does not able to connect to the SQL server.
Generally the asp.net web application run under NETWORK SERVICE account if deployed in Windows 2003.
Threfore if you are using windows authentication to connect to the SQL Server(check connection string in web.config), then check whether the network service account has access to your SQL database. Alternatively you can use SQL authentication to connect from your asp.net application to SQL Server.
|
|
|
|
|
The IIS server is installed on the same system that I'm using for the creation of the pages. Its also a windows 7 system, I'll post a copy of my web.config file, because I never really worked with any DB system. I'm also accessing my website folder as myself and I'm a domain admin.
My connection string is data source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|aspnetdb.mdf;User Instance=true
<?xml version="1.0"?>
<!--
Note: As an alternative to hand editing this file you can use the
web admin tool to configure settings for your application. Use
the Website->Asp.Net Configuration option in Visual Studio.
A full list of settings and comments can be found in
machine.config.comments usually located in
\Windows\Microsoft.Net\Framework\v2.x\Config
-->
<configuration>
<configSections>
<sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
<sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
<section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
<sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
<section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="Everywhere"/>
<section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
<section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
<section name="roleService" type="System.Web.Configuration.ScriptingRoleServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
</sectionGroup>
</sectionGroup>
</sectionGroup>
</configSections>
<appSettings/>
<connectionStrings>
</connectionStrings>
<system.web>
<!--
Set compilation debug="true" to insert debugging
symbols into the compiled page. Because this
affects performance, set this value to true only
during development.
Visual Basic options:
Set strict="true" to disallow all data type conversions
where data loss can occur.
Set explicit="true" to force declaration of all variables.
-->
<roleManager enabled="true" />
<compilation debug="true" strict="false" explicit="true">
<assemblies>
<add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
</assemblies>
</compilation>
<pages>
<namespaces>
<clear/>
<add namespace="System"/>
<add namespace="System.Collections"/>
<add namespace="System.Collections.Generic"/>
<add namespace="System.Collections.Specialized"/>
<add namespace="System.Configuration"/>
<add namespace="System.Text"/>
<add namespace="System.Text.RegularExpressions"/>
<add namespace="System.Linq"/>
<add namespace="System.Xml.Linq"/>
<add namespace="System.Web"/>
<add namespace="System.Web.Caching"/>
<add namespace="System.Web.SessionState"/>
<add namespace="System.Web.Security"/>
<add namespace="System.Web.Profile"/>
<add namespace="System.Web.UI"/>
<add namespace="System.Web.UI.WebControls"/>
<add namespace="System.Web.UI.WebControls.WebParts"/>
<add namespace="System.Web.UI.HtmlControls"/>
</namespaces>
<controls>
<add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
</controls>
</pages>
<!--
The <authentication> section enables configuration
of the security authentication mode used by
ASP.NET to identify an incoming user.
-->
<authentication mode="Forms" />
<!--
The <customErrors> section enables configuration
of what to do if/when an unhandled error occurs
during the execution of a request. Specifically,
it enables developers to configure html error pages
to be displayed in place of a error stack trace.
<customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
<error statusCode="403" redirect="NoAccess.htm" />
<error statusCode="404" redirect="FileNotFound.htm" />
</customErrors>
-->
<httpHandlers>
<remove verb="*" path="*.asmx"/>
<add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false"/>
</httpHandlers>
<httpModules>
<add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
</httpModules>
</system.web>
<system.codedom>
<compilers>
<compiler language="c#;cs;csharp" extension=".cs" warningLevel="4" type="Microsoft.CSharp.CSharpCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<providerOption name="CompilerVersion" value="v3.5"/>
<providerOption name="WarnAsError" value="false"/>
</compiler>
<compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" warningLevel="4" type="Microsoft.VisualBasic.VBCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<providerOption name="CompilerVersion" value="v3.5"/>
<providerOption name="OptionInfer" value="true"/>
<providerOption name="WarnAsError" value="false"/>
</compiler>
</compilers>
</system.codedom>
<!--
The system.webServer section is required for running ASP.NET AJAX under Internet
Information Services 7.0. It is not necessary for previous version of IIS.
-->
<system.webServer>
<validation validateIntegratedModeConfiguration="false"/>
<modules>
<remove name="ScriptModule"/>
<add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
</modules>
<handlers>
<remove name="WebServiceHandlerFactory-Integrated"/>
<remove name="ScriptHandlerFactory"/>
<remove name="ScriptHandlerFactoryAppServices"/>
<remove name="ScriptResource"/>
<add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
</handlers>
</system.webServer>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35"/>
<bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/>
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35"/>
<bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/>
</dependentAssembly>
</assemblyBinding>
</runtime>
<system.net>
<mailSettings>
<smtp from="webmaster@freefbo.com">
<network host="EmailComputer" password="MyPassword"
userName="ACcountName" />
</smtp>
</mailSettings>
</system.net>
</configuration>
|
|
|
|
|
|DataDirectory|\aspnetdb.mdf;
A DATAPOST COMPUTER CENTRE
(K.V Prajapati)
|
|
|
|
|
i needed to get the free disk space on a shared remote drive.
my shared-name goes something like this -- \\RemoteServer\ADrive$
ConnectionOptions oConn = new ConnectionOptions();
oConn.Username = "xUser";
oConn.Password = "xxxx";
string sSrvName = @" \\RemoteServer\ADrive$";
ManagementScope oMS = new ManagementScope(sSrvName, oConn);
I get the error - "Invalid Parameter".
If i remove the $ sign from the end of the server name and make it something like \\RemoteServer\ADrive
it goes past the above statement and fails at
ManagementObjectSearcher oSearcher = new ManagementObjectSearcher(oMS, oQuery) ;
ManagementObjectCollection oReturnCollection = oSearcher.Get() ;
with the error - "RPC server is unavailable"
but when trying to map the above mentioned share drive - \\RemoteServer\ADrive$, via Windows Explorer it works.
any kind of help is appreciated.
thanks to all
|
|
|
|
|
in services.msc (via start-> run) you can see all your service. Make shure your 'Remote Procedure Call (RPC)' is started.
In Word you can only store 2 bytes. That is why I use Writer.
|
|
|
|
|
I updated my profile information and saved profile by invoking Profile.Save.
Immediately after calling Profile.Save, when control excutes page_load in master page,
I observe that this.Profile gives me old/original data.
I updated my profile a second time, and now in the page_load of master page, i get
the 1st updated profile information.
Is there any refreshing that I should perform to have this.Profile provide
latest information immediately after updating the profile?
|
|
|
|
|
Due to the sequence of event you got such result.
A DATAPOST COMPUTER CENTRE
(K.V Prajapati)
|
|
|
|
|
hi Kanu,
how can I correct the sequence of events? My master page will get loaded all the time, isn't?
NetQuestions
|
|
|
|
|
But you are saving profile after that and the new value of profile will not available to you until postback. Isn't it?
A DATAPOST COMPUTER CENTRE
(K.V Prajapati)
|
|
|
|
|
you are correct Kanu ... i put break point and observed that update was the last operation performed.
so now after update i execute response.redirect(profile.aspx).
thanks,
netquestions
|
|
|
|
|
I'm having a problem with my asp.net page(Internet Explorer Progress Bar Showing Incorrect Status or I'm doing something wrong?) and found a similar issue in http://support.microsoft.com/kb/293373. I don't know if I'm doing wrong in my page but I hope not. What my page does is, During page load I will bind my grid to a table of job and I have a column for status. I will check all the record status if there is a job with status "Executing" so its either true or false. I will save that to a hidden field named IsExecuting. In the Javascript I have this 3 functions (1)startcoundown (2)countdown(3)AJAX prm_endRequest.
startcoundown will be called during window.load and prm_endRequest
countdown will be called if If IsExecuting=True
prm_endRequest will be called after AJAX endRequest
In AJAX prm_endRequest call function startcoundown
In startcoundown If IsExecuting=True then do countdown and Trigger btnRefresh.Click after 5 seconds( btnRefresh.Click will bind my grid again/refresh my grid)
Repeat until all status=Completed.
It's all working fine its just that IE progres bar still indicating page is loading eventhough page is already loaded. Am I missing something? I already tried many things and nothings work to fix this issue. It's working in Firefox. Thanks
modified on Tuesday, May 26, 2009 7:49 PM
|
|
|
|
|
I have a problem in asp.net
i wanted to call my windows app exe from web app with paramters.
its working with process.start(). but i can t see UI of windows app on clients machine.
so i wrote javascripr function and its working fine , i can use windows UI on clients side. but now i dont know how to send arguments with that and how to fetch arguments in windows app.
Please let me know asap.
here is code.
<
SCRIPT Language="JScript">
function
runcmd() {
File="C:\\TestParamFromAsp.exe";
WSH=new ActiveXObject("WScript.Shell");
WSH.run(File);
//document.getElementById('<%=btnSendMail.ClientID%>').click();
//sInfo=new System.Diagnostics.ProcessStartInfo("C:\\TestParamFromAsp.exe");
//p=new System.Diagnostics.Process;
//sInfo.Arguments="12345";
//p.StartInfo=sInfo;
//p.Start();
}
</
SCRIPT>
Codebehind is working independently.
Protected
Sub btnSendMail_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnSendMail.Click
'Dim sInfo As New Diagnostics.ProcessStartInfo("C:\\CGS_NEWDESIGN_UPDATED\\ContractAutomation\\bin\\ContractAutomation.exe") '("C:\\TestParamFromAsp.exe")
Dim sInfo As New Diagnostics.ProcessStartInfo("C:\\Documents and Settings\\hkacholi\\My Documents\\Visual Studio 2005\\Projects\\TestParamFromAsp\\TestParamFromAsp\\bin\\Debug\\TestParamFromAsp.exe")
'Dim sInfo As New Diagnostics.ProcessStartInfo("//vsapps/cgs/ContractAutomation.exe") 'C:\\Documents and Settings\\hkacholi\\My Documents\\Visual Studio 2005\\Projects\\TestParamFromAsp\\TestParamFromAsp\\bin\\Debug\\TestParamFromAsp.exe")
'Dim sInfo As New Diagnostics.ProcessStartInfo("C:\\TestParamFromAsp.exe")
' startInfo.WindowStyle = Diagnostics.ProcessWindowStyle.Maximized
Dim p As New Diagnostics.Process
'Diagnostics.Process.Start(sInfo)
sInfo.Arguments =
"12345"
'Diagnostics.Process.Start(sInfo)
sInfo.RedirectStandardOutput =
True
sInfo.RedirectStandardInput =
True
sInfo.RedirectStandardError =
True
sInfo.CreateNoWindow =
True
sInfo.UseShellExecute =
False
p.StartInfo = sInfo
p.Start()
End Sub
hemaxi
|
|
|
|
|
You cant invoke client exe from your web site.
Sorry
Web sites dont have access to C:\ which you are using.
If you call this using Diagonistic.Process.Start, it will run in the server, not in the client.
|
|
|
|
|
my exe is not on c:\. its on server.
besides that its not the question of running. its running from the server but my question is how to pass parameter ?
|
|
|
|
|
Then create an object of System.Diagonistic.Process (say p) and p.StartInfo= new ProcessStartInfo("filename","args")
Now call start method.
|
|
|
|
|
I have a textbox that can represent different things and need to use diffferent validator controls based on Radio buttons. As a newbie I'm not familiar with how to accomplish this. Can someone provide some much appreciated guidance.
|
|
|
|
|
You need to change the regular expression based on the selection of radio button.
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
That is correct, I need to change ValidatorControl on a Radio click
but like i said, i'm not familiar with how to do this.
An example code snippet would be nice.
|
|
|
|
|