0
<configuration>

<system.net>

<mailsettings>

<smtp deliverymethod="Network" from="gdkpavan@gmail.com">

<network defaultcredentials="true" host="smtp.gmail.com" password="nprao@1111" port="587" username="pranayn5@gmail.com">

</network></smtp>

</mailsettings>

</system.net>

<appsettings>

<add key="con" value="Data Source=moviemaster.db.10502677.hostedresource.com; Initial Catalog=picketmaster; User ID=picketmaster; Password=Picket@500;">

</add></appsettings>

<connectionstrings>

<system.webserver>

<httperrors errormode="Detailed">

<asp scripterrorsenttobrowser="true">

</asp></httperrors></system.webserver>

<system.web>

<compilation debug="true" targetframework="4.0">

<assemblies>

<add assembly="System.Web.Extensions.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">

<add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A">

<add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089">

</add></add></add></assemblies>

</compilation>

<authentication mode="Windows">

<customerrors mode="Off">

<compilation debug="true">

</compilation></customerrors>

<pages clientidmode="AutoID" controlrenderingcompatibilityversion="4.0">

</pages></authentication></system.web>

<system.web>

<sessionstate mode="InProc" timeout="15">

</sessionstate></system.web>

</connectionstrings></configuration>

ローカルシステムからこの文字列を使用してデータベースに接続しようとすると、接続文字列にエラーがあります。

カスタムエラーの内容をオフに変更しようとしましたが、詳細エラーを追加してもエラーは解決しません。そして、私はasp.netの初心者です。私は、Webサイトを開発し、テスト目的でアップロードしました。エラーの詳細を、そのWebページで行う必要のある変更を明確に確認したいと思います。

ウェブサイトを公開した後、フォルダ内のアプリコードが表示されません。理由は、エラーの理由です。

このリンクを確認してくださいhttp://www.ticket65.com/test

前もって感謝します

4

2 に答える 2

0
<?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\vx.x\Config 
-->
<configuration>
    <system.net>
        <mailSettings>
           <smtp deliveryMethod="Network" from="contactus@XXXXXXX">
               <network host="XXXXXXXXX" port="25"    userName="noreply@XXXXXXX password="XXXXXX" defaultCredentials="true"/>
        </smtp>

        </mailSettings>
    </system.net>
    <appSettings>
    <add key="con" value="Data Source=XXXXXXX; Initial Catalog=XXXXXXX; User ID=XXXXXXXX; Password=XXXXXXX;"/>

    <!--<add key="SentMail" value="smtp.gmail.com"/>-->
</appSettings>
<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.
    -->
    <compilation debug="true" targetFramework="4.0">
        <assemblies>
            <add assembly="System.Web.Extensions.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
            <add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
            <add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
        </assemblies>
    </compilation>
    <!--
        The <authentication> section enables configuration 
        of the security authentication mode used by 
        ASP.NET to identify an incoming user. 
    -->
    <authentication mode="Windows"/>
    <!--
        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.

-->

        <pages controlRenderingCompatibilityVersion="4.0" clientIDMode="AutoID"/>
    </system.web>
    <system.webServer>
        <httpErrors errorMode="Detailed" />
        <asp scriptErrorSentToBrowser="true"/>
     </system.webServer>
    <!-- 
        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.web>
        <customErrors mode="Off"/>
        <sessionState mode="InProc" timeout="15"/>
    </system.web>
   </configuration>
于 2014-01-22T05:11:34.293 に答える