SQL CE Azure连接 [英] SQL CE azure connection

查看:212
本文介绍了SQL CE Azure连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用azure来发布asp.net应用程序,当我在本地发布它工作正常,但在Azure所有与数据库相关的事情显示和获取该页面无法显示,因为发生内部服务器错误。



想知道我的连接字符串是否有错误。



http://webly.azurewebsites.net/



使用webly_data的App_Data文件夹。 sdf
Bin:webly.dll ... Simple.Data.SqlCe40.dll

 < connectionStrings& 
< add name =weblyconnectionString =Data Source = | DataDirectory | \webly_data.sdfproviderName =System.Data.SqlServerCe.4.0/>
< / connectionStrings>

我使用sdf,不知道azure如何导致...



------问题解决-------





我做了以下操作:


  1. 配置网站(在Azure管理中心)

  2. 将连接字符串作为自定义
  3. 放置

不知道为什么这是必需的,也许是在我的web.config ....忽略我的连接字符串。
感谢谁在这里回答。

解决方案



我做了以下操作:


  1. 配置网站(在Azure管理)

  2. 将连接字符串作为自定义

  3. 不知道为什么这是必需的,也许是忽略了我的连接字符串web.config ....


    I am using azure to publish an asp.net application, when I publish locally it works fine, but on Azure all things related with database isnt showing up and getting "The page cannot be displayed because an internal server error has occurred."

    Wondering if it could be somthing wrong with my connection string.

    http://webly.azurewebsites.net/

    App_Data folder with webly_data.sdf Bin: webly.dll ... Simple.Data.SqlCe40.dll

    <connectionStrings>
        <add name="webly" connectionString="Data Source=|DataDirectory|\webly_data.sdf" providerName="System.Data.SqlServerCe.4.0" />
    </connectionStrings>
    

    I am using sdf, and dont know how azure leads with that...

    ------ PROBLEM SOLVED -------

    I did the following:

    1. Configure the website (at Azure Management)
    2. Put the connection string there as Custom

    Dont know exactly why this is required, maybe it was ignoring my connection strings in my web.config.... Thanks to who answered here.

    解决方案

    I did the following:

    1. Configure the website (at Azure Management)
    2. Put the connection string there as Custom

    Dont know exactly why this is required, maybe it was ignoring my connection strings in my web.config....

    这篇关于SQL CE Azure连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆